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 void onShowPress(MotionEvent arg0) { }
{ "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 onScroll(MotionEvent arg0, MotionEvent arg1, float arg2, float arg3) { return false; }
{ "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 void onLongPress(MotionEvent arg0) { }
{ "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 onFling(MotionEvent arg0, MotionEvent arg1, float arg2, float arg3) { if(arg1.getX()-arg0.getX()<0) { //×óß…»¬„Ó System.out.println("LEFT ---------->"); x-=speed; if(x<=0) { x=0; } } else if(arg1.getX()-arg0.getX()>0) { //ÓÒß…»¬„Ó System.out.println("RIGHT <----------"); x+=speed; if(x+bmpplayer.getWidth()>=MySurfaceView.screenW) { x=MySurfaceView.screenW-bmpplayer.getWidth(); } } return false; }
{ "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 onDown(MotionEvent arg0) { return false; }
{ "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
sends a message to the handled client
public void answer(Message response) throws IOException { out.writeObject(response); out.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}", "private void sendMessageToClient(String message) {\n try {\n outputStream.writeObject(message);\n outputStream.flush();\n } catch (IOException e) {\n System.out.println(\"Erreur lors de l'envoi du message au client\");\n }\n }", "public void send(Message message) {\r\n channel.writeAndFlush(message);\r\n }", "@Override\n public void sendMessage(Message<JsonPayload> message) throws IOException {\n System.out.println(\"Trying to send a message...\");\n outputMessageStream.write(message.getContent().getJson());\n outputMessageStream.newLine();\n outputMessageStream.flush();\n socket.shutdownOutput();\n }", "public void send(Message msg);", "public void sendMessage(NetMessage message) {\n ClientDirector.getDataManager().sendMessage(message);\n }", "@Override\n public void send(String message) {\n\n out.println(message);\n out.flush();\n\n }", "void sendMessage(String msg) {\n\t\ttry {\n\t\t\tout.writeObject(msg);\n\t\t\tout.flush();\n\t\t\tSystem.out.println(\"Sending to client => \" + msg);\n\t\t} catch (IOException ioException) {\n\t\t\tioException.printStackTrace();\n\t\t}\n\t}", "private void sendMessageToClient(String messageToClient){\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n output.println(\"\\n\" + \"Server: \" + messageToClient);\n output.flush();\n }\n });\n }", "protected void sendMessage(final String message) {\n\n logger.debug(LOG_TAG + \".sendMessage()\");\n\n // send message to client\n printWriter.println(message);\n\n }", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}", "private void sendMessage(WeakReference<Messenger> client, int msgCode, int requestCode, String message){\n \tLog.v(TAG,\"sendMessage: The message was: \" + message + \" (\" + msgCode + \")\" + \" requestCode was \" + requestCode);\n try {\n \t\tclient.get().send(Message.obtain(null, msgCode, requestCode, mState.ordinal(), message));\n } catch (RemoteException e) {\n // The client is dead. \n \t\tLog.e(TAG,\"sendMessage: The client is dead. Message was: \" + message + \" (\" + msgCode + \")\");\n } catch (NullPointerException e) {\n // The reply to client is does not exist. \n \t\tLog.e(TAG,\"sendMessage: client was null. Message was: \" + message + \" (\" + msgCode + \")\");\n }\n }", "public void sendMsgToClient() {\n\n try {\n\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\n\n Log.d(TAG, \"The transmitted data:\" + msg);\n\n writer.println(msg);\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }", "private void sendMsgToClient(String msg) {\n controlOutWriter.println(msg);\n }", "public void sendMessage(String message) {\n\t\tsocketTextOut.println(message);\n\t\tsocketTextOut.flush();\n\t}", "private synchronized void sendToClient(PrintWriter pw, String message)\n {\n pw.write(message + \"\\n\");\n pw.flush();\n }", "public void sendMessageToClient(String msg) throws IOException {\r\n\t\tif (this.clientSocket == null || this.out == null)\r\n\t\t\tthrow new SocketException(\"socket does not exist\");\r\n\t\t\r\n\t\tthis.out.writeObject(msg);\r\n\t}", "public void write(String message) {\n System.out.println(\"Sent \" + message + \" to client \" + client + \".\");\n out.println(message);\n }", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "public void sendMessage(Message message) {\r\n\t\tObjectOutputStream out;\r\n\t\ttry {\r\n\t\t\tout = new ObjectOutputStream(client.getSocket().getOutputStream());\r\n\t\t\tout.writeObject(message);\r\n\t\t\tout.flush();\r\n\t\t} catch (IOException e) {\r\n\t\t\texceptionLogger.writeException(Level.SEVERE,\r\n\t\t\t\t\tMessages.getString(\"Controller.IOExceptionNachricht\")); //$NON-NLS-1$\r\n\t\t}\r\n\t}", "public void handleMessageFromClient(Object msg) {\n\n }", "@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}", "public synchronized void send(String message) {\n writer.println(message);\n writer.flush();\n }", "@Override\n\tpublic void send(String msg) {\n\t}", "public void sendMessage(String message) {\n\t\tSystem.out.println(\"DEBUG : response sent by server = \" + message);\n\t\tprinter.println(message);\n\t}", "public void sendMessage(String message){\n\t if (mOut != null && !mOut.checkError()) {\n\t mOut.println(message+\"\\n\");\n\t mOut.flush();\n\t }\n\t }", "public void send(String msg) {\n CompletableFuture.runAsync(() -> serverCon.send(msg));\n }", "public void sendMessage(String message) {}", "void send(String message);", "private void send(byte[] message)\n\t\t\tthrows IOException\n\t{\n\t\tchannel.basicPublish(BUNGEECORD_QUEUE, \"\", null, message);\n\t}", "public void sendMessage(common.messages.KVMessage msg) throws IOException {\r\n\t\tbyte[] msgBytes = msg.getMsgBytes();\r\n\t\toutput.write(msgBytes, 0, msgBytes.length);\r\n\t\toutput.flush();\r\n\t\tlogger.debug(\"SEND \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg() +\"'\");\r\n }", "public void send(ECPacket message)\n\t{\n\t\tif (FMLCommonHandler.instance().getEffectiveSide().isClient())\n\t\t{\n\t\t\tthis.sendToServer(message);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.sendToAll(message);\n\t\t}\n\t}", "public void sendMessage(Message msg) {\n network.sendAsync(msg);\n }", "public void sendMessage(String message) {\n\t\ttry {\n\t\t\tout.writeUTF(message);\n\t\t\tserver.CommunicationLog.info(\"Sent:\" + message + \" to \" + clientSocket.getInetAddress().toString());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sendMessage(Message message) {\n if (accepted || !ended || message.type.equals(\"register\") || message.type.equals(\"lobby\")) {\n message.packetNum = packetNum;\n ByteBuffer buffer = ByteBuffer.wrap(SerializationUtils.serialize(message));\n SocketAddress addr = null;\n try {\n addr = client.getLocalAddress();\n log(\"sending [\" + message + \"] to \" + addr);\n client.write(buffer);\n reconciliation.add(message);\n packetNum++;\n } catch (IOException e) {\n error(\"Failed to send message to:\" + addr);\n e.printStackTrace();\n }\n }\n }", "void send(IMessage message, IChannel channel);", "public void sendMessage(String message) {\n try {\n bos.write(message);\n bos.newLine();\n bos.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void sendMessage ( String message ) {\n\t\texecute ( handle -> handle.sendMessage ( message ) );\n\t}", "@Override\n public void sendMessage(Message m) {\n commSender.sendMessage(m);\n }", "public void sendMessage(String message);", "void sendMessage(String msg) {\n\t\ttry {\n\t\t\tout.writeObject(msg);\n\t\t\tout.flush();\n\t\t\tSystem.out.println(\"Sending to server => \" + msg);\n\t\t} catch (IOException ioException) {\n\t\t\tioException.printStackTrace();\n\t\t}\n\t}", "public static void Send(Message message)\n\t{\n\t\ttry\n\t\t{\n\t\t\t_sendBuf = toByteArray(message);\n\n\t\t\t//dc message\n\t\t\tif (message.getRecipient().equalsIgnoreCase(\"\") &&\n\t\t\t\tmessage.getMessage().equalsIgnoreCase(\"%BYE%\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent BYE\");\n\t\t\t\t_socket.getOutputStream().write(Message.BYE);\n\t\t\t}\n\t\t\t//lobby message\n\t\t\telse if (message.getRecipient().equalsIgnoreCase(\"\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent LOBBY\");\n\t\t\t\t_socket.getOutputStream().write(Message.LOBBY);\n\t\t\t}\n\t\t\t//search request\n\t\t\telse if (message.getRecipient().equalsIgnoreCase(\"all\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent SEARCH\");\n\t\t\t\t_socket.getOutputStream().write(Message.SEARCH);\n\t\t\t}\n\t\t\t//answer request\n\t\t\telse if (message.getRecipient().equalsIgnoreCase(\"server\") &&\n\t\t\t\t\t message.getOrigin().equalsIgnoreCase(\"none\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent CHOICE\");\n\t\t\t\t_socket.getOutputStream().write(Message.CHOICE);\n\t\t\t}\n\t\t\t//whisper message\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent WHISPER\");\n\t\t\t\t_socket.getOutputStream().write(Message.WHISPER);\n\t\t\t}\n\t\t\t_socket.getOutputStream().write(_sendBuf);\n\t\t\t_socket.getOutputStream().flush();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "synchronized void sendMessage(Message message) throws IOException {\n socketOutput.reset();\n socketOutput.writeObject(message);\n socketOutput.flush();\n }", "public void send() {\n\t}", "public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }", "void sendMessage(String message) {\n writer.println(message);\n }", "public void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Exception writing to server: \" + e);\n\t\t}\n\t}", "public void sendMessage(String message)\n\t\t{\n\t\t\twriter.println(message);\n\t\t\twriter.flush();\n\t\t}", "void messageSent();", "public void sendClientMsg(Client client, String message){\n\t\tsendMsg(message, client.getIPaddr(), client.getPort());\n\t}", "private void sendMessage() throws Exception {\n\t\tGetTimestamp(\"Sending Message: \");\n\t\tString inputMessage;\n\t\tinputMessage = input.nextLine();\n\t\tString tosend = encrypt(clientkey, inputMessage);\n\t\t\n\t\tJSONObject RESPONSE = new JSONObject();\n\t\tRESPONSE.put(\"payload\",tosend);\n\t\tSystem.out.println(RESPONSE);\n\t\t\n\t\tpw.println(tosend);\n\t\tpw.flush();\n\t\tSystem.out.println(\"Message sent to the client : \" + inputMessage);\n\t\tif (inputMessage.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"sending close command\");\n\t\t\tcloseConnection();\n\t\t} else {\n\t\t\tgetMessage();\n\t\t}\n\t}", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\tmediator.send(message, this);\r\n\t}", "public void sendMessage(String msg, int client) throws Exception{\n \tlastMessageSent = new String(msg);\n \tif(client == Constants.ROBOT){\n \t\trobotHandler.sendMessage(msg);\n \t} else {\n \t\tHumanClientHandler.sendMessage(msg);\n \t}\n }", "public void sendMessageToClient(Object message, String username) {\n\n }", "public void sendMessage(String msg) {\n try {\n out.write(msg);\n out.newLine();\n out.flush();\n \n } catch (IOException e) {\n \tshutdown();\n e.printStackTrace();\n }\n }", "public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n public void run() {\n if (this.clientInterfaceTCP.getConnected())\n this.clientInterfaceTCP.sendString(this.messageToSend);\n }", "public void sendMessage(String message) {\r\n\r\n synchronized (this) {\r\n //count++;\r\n if (mBufferOut != null && !mBufferOut.checkError()) {\r\n Log.i(TAG, \"message: \" + message);\r\n mBufferOut.print(message);\r\n mBufferOut.flush();\r\n }\r\n }\r\n }", "public abstract void send(String message) throws IOException;", "@Override public final void message(RequestBody message) throws IOException {\n if (message == null) throw new NullPointerException(\"message == null\");\n if (senderSentClose) throw new IllegalStateException(\"closed\");\n if (senderWantsClose) throw new IllegalStateException(\"must call close()\");\n if (Thread.currentThread() == looperThread) {\n throw new IllegalStateException(\"attempting to write from reader thread\");\n }\n\n MediaType contentType = message.contentType();\n if (contentType == null) {\n throw new IllegalArgumentException(\n \"Message content type was null. Must use WebSocket.TEXT or WebSocket.BINARY.\");\n }\n String contentSubtype = contentType.subtype();\n\n int formatOpcode;\n if (WebSocket.TEXT.subtype().equals(contentSubtype)) {\n formatOpcode = WebSocketProtocol.OPCODE_TEXT;\n } else if (WebSocket.BINARY.subtype().equals(contentSubtype)) {\n formatOpcode = WebSocketProtocol.OPCODE_BINARY;\n } else {\n throw new IllegalArgumentException(\"Unknown message content type: \"\n + contentType.type() + \"/\" + contentType.subtype() // Omit any implicitly added charset.\n + \". Must use WebSocket.TEXT or WebSocket.BINARY.\");\n }\n\n BufferedSink sink = Okio.buffer(writer.newMessageSink(formatOpcode, message.contentLength()));\n try {\n message.writeTo(sink);\n sink.close();\n } catch (IOException e) {\n senderWantsClose = true;\n throw e;\n }\n }", "public void send(String message) throws IOException {\r\n OutputStream stream = socket.getOutputStream();\r\n PrintWriter writer = new PrintWriter(stream);\r\n writer.println(message);\r\n writer.flush();\r\n }", "void sendMessageToClient(long clientId, byte[] content, int prio) throws IOException, MlmqException;", "void sendMessage(String msg);", "private void sendClientMessage() throws IOException {\n ArrayList<ByteString> blindedFriends = Crypto.byteArraysToStrings(mClientPSI.encodeBlindedItems());\n ClientMessage cm = new ClientMessage.Builder()\n .messages(getMessages())\n .blindedFriends(blindedFriends)\n .build();\n boolean success = lengthValueWrite(out, cm);\n if (!success) {\n setExchangeStatus(Status.ERROR);\n setErrorMessage(\"Length/value write of client message failed.\");\n throw new IOException(\"Length/value write of client message failed, but exception is hidden (see Exchange.java)\");\n }\n }", "private void sendMsg()\n {\n try {\n spauldingApp.println(\"AckRequest.sendMsg() - sending request to nodeID= \" + node.getNodeID() + \" ...\");\n this.nbrTransmits++;\n //spauldingApp.eventLogger.writeMsgSentPing(fetchReqMsg);\n spauldingApp.getMoteIF().send(node.getNodeID(), requestMsg);\n } catch (Exception e) {\n spauldingApp.println(\"ERROR: Can't send message: \" + e);\n e.printStackTrace();\n }\n }", "void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}", "public abstract void message(String channel, String message);", "private void sendData(String message) {\n\t\t\ttry {\n\t\t\t\toutput.writeObject(message);\n\t\t\t\toutput.flush(); // flush output to client\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"\\nError writing object\");\n\t\t\t}\n\t\t}", "@Override\n\tpublic void send() {\n\t\tSystem.out.println(\"this is send\");\n\t}", "public void clientToServerChatMessage(String message){\n String chatMessage = message;\n System.out.println(\"chatmessage\" + chatID + \" \" + chatMessage);\n toServer.println(\"chatmessage\" + chatID + \" \" + chatMessage);\n toServer.flush();\n }", "public void sendMessage2Client(String msg){\n\t\t\t\n\t\t\toutPrintStream.println(msg);\n\t\t\t\n\t\t}", "public void send(int id, Object o){\r\n\t\tclients[findClient(id)].send(o);\r\n\t}", "public void sendMessage(String message) {\n printWriter.append(message);\n printWriter.flush();\n }", "private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}", "void sendMessage(ZMQ.Socket socket);", "public void tellServer(String message)\n\t{\n\t\ttoServer.println(message);\n\t\ttoServer.flush();\n\t}", "@Override\n\tpublic void sendMsg(String msg) {\n\n\t}", "public void send(String msg) throws CcException\n {\n commWriter.send(msg);\n }", "private void sendMessage(ChatMessage msg) {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void sendMessageToServer(String message) {\n if (outputStream != null) {\n outputStream.println(message);\n } else {\n System.out.println(\"No OutputStream!\");\n }\n }", "void send();", "protected void sendMessage(String msg) {\n message = msg; \n newMessage = true;\n }", "public void send(String message){\n\t\ttry {\n\t\t\tSystem.out.println(\"Sende Nachricht \" + message);\n\t\t\tout.reset();\n\t\t\tout.writeObject(message);\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }", "protected abstract void send(final IMessageWrapper message, final ISender sender);", "public void messageSent(Message m) {\n\t\t\r\n\t}", "public void writeToClient() throws IOException {\n\t\tclientBuffer.writeTo(clientChannel);\n\t\tif (clientBuffer.isReadyToWrite()) {\n\t\t\tregister();\n\t\t}\n\t}", "public static void sendMessage(String message) throws IOException {\n controllerChannel.basicPublish(\n \"\",\n CONTROLLER_QUEUE_NAME,\n null,\n message.getBytes());\n }", "public synchronized void send(Object obj)\r\n\t{\r\n\t\tclientQueue.offer(obj);\r\n\t}", "public void send(String request){\n try {\n streamOut.writeUTF(request);\n streamOut.flush();\n connected = true;\n System.out.println(clientID+\": send: \"+request);\n } catch (IOException ioe) {\n System.out.println(ioe);\n System.out.println(clientID+\": failedToSend: \"+request+\": IOException: \"+ioe);\n }\n }", "public void sendData(String message) {\n if (asyncClient != null) {\n asyncClient.write(new ByteBufferList(message.getBytes()));\n Timber.d(\"Data sent: %s\", message);\n } else {\n Timber.e(\"cannot send data - socket not yet ready\");\n }\n }", "@Override\n\tpublic void Send(String message) {\n\t\tgetReceiveArea().append(\"我:\"+message + \"\\n\");\n\t\tgetMediator().sendMessage(getName(), message);\n\t}", "@Override\r\n\tpublic boolean send(String msg) {\n \ttry {\r\n \t\tsendMessage(msg);\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\treturn true;\r\n\t}", "public void sendMessage(String message) {\n\n setChanged();\n notifyObservers(message);\n }", "public static void sendMessage(String message) {\r\n\t\tbtService.write(message.getBytes());\r\n\t}", "public void send(Serializable msg) throws IOException;", "public void sendToClient(String serializedMessage){\n sendTo(messageWriter,serializedMessage);\n }", "@Override\n\tpublic void messageSent(IoSession arg0, Object arg1) throws Exception {\n\n\t}", "@Override\n\tpublic void messageSent(IoSession arg0, Object arg1) throws Exception {\n\n\t}", "@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }", "void sendMessage() {\n\n\t}" ]
[ "0.725459", "0.7212641", "0.7187593", "0.71749955", "0.71643734", "0.7067236", "0.7045906", "0.70216423", "0.69973284", "0.6992384", "0.6974133", "0.69625884", "0.69554234", "0.6905936", "0.68721604", "0.68668044", "0.6855302", "0.684421", "0.68217564", "0.6817078", "0.6816469", "0.68078494", "0.68013704", "0.6779486", "0.6770476", "0.6764915", "0.67646694", "0.676208", "0.675781", "0.67538285", "0.6739005", "0.672068", "0.67179453", "0.671602", "0.6693176", "0.66897595", "0.66884726", "0.66840476", "0.6681407", "0.6679257", "0.6664112", "0.6663993", "0.66637564", "0.66402215", "0.6633516", "0.66322416", "0.66230094", "0.66147304", "0.66125995", "0.6599472", "0.65986896", "0.6575794", "0.65720284", "0.6566476", "0.6566287", "0.6552353", "0.6549336", "0.65430534", "0.65351206", "0.6517514", "0.650893", "0.65041256", "0.64926654", "0.6488347", "0.6484113", "0.64771324", "0.6460963", "0.64609265", "0.6450457", "0.643993", "0.6435677", "0.6434209", "0.6433034", "0.6426738", "0.641924", "0.6408534", "0.639504", "0.63919497", "0.63896585", "0.6383489", "0.6378263", "0.6374225", "0.63730156", "0.63722897", "0.63685155", "0.6362807", "0.63615894", "0.63609916", "0.635988", "0.6355374", "0.635273", "0.6336484", "0.6335509", "0.63342863", "0.6333712", "0.6332063", "0.6331521", "0.63287365", "0.63287365", "0.6319852", "0.6313436" ]
0.0
-1
handles a login request
public Message handleLogin(Message loginRequest){ String userNameRequested = loginRequest.getUserName(); String passWordRequested = loginRequest.getPassWord(); Message badResult = new Message(Message.LOGIN_ERROR); // case: non registered user if(!controlServer.containsUserKey(userNameRequested)){ return badResult; } // case: registered user UserData userData = controlServer.getUserData(userNameRequested); // compare userName & passWord with the ones in the user register if(userData.getPassWord().equals(passWordRequested)){ Message goodResult = new Message(Message.LOGIN_OK); goodResult.setUserData(userData); controlServer.showMessage("user '" + userData.getUserName() + "' just logged in \n"); return goodResult; } return badResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "RequestResult loginRequest() throws Exception;", "protected Response login() {\n return login(\"\");\n }", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "protected void login() {\n\t\t\r\n\t}", "protected void doPostLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tout.println(\"Look where we are, it's the login page\");\n\t\t\n\t\t//get parameter Names\n\t\tsetParameters(request);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tKeyspace keyspace = Connection.getKeyspace();\n\t\tStringSerializer se = StringSerializer.get();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// given Keyspace keyspace and StringSerializer se\n\t\t\tSliceQuery<String, String, String> q = HFactory.createSliceQuery(keyspace, se, se, se);\n\t\t\tq.setColumnFamily(\"Users\") .setKey(displayName).setColumnNames(\"fullname\", \"email\", \"password\");\n\t\t\tQueryResult<ColumnSlice<String, String>> r = q.execute();\n\n\t\t\tfullname = r.get().getColumnByName(\"fullname\").getValue();\n\t\t\temail = r.get().getColumnByName(\"email\").getValue();\n\n\t\t\tif(password.equals(r.get().getColumnByName(\"password\").getValue()))\n\t\t\t{\n\t\t\t\t//LOGGED IN CORRECTLY\n\t\t\t\t\n\t\t\t\tmySexySession.setAttribute(\"displayName\", displayName);\n\t\t\t\tmySexySession.setAttribute(\"fullname\", fullname);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmySexySession.setAttribute(\"message\", \"Incorrect Password.\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t//catches happen when the key is not found (i.e. user doesn't exist)\n\t\t\tmySexySession.setAttribute(\"message\", \"User does not exist.\");\n\t\t}\n\t\tresponse.sendRedirect(\"/quotes/home\");\n\t}", "public void handleLogin() {\n\t\tString username = usernameInput.getText();\n\t\tString password = passwordInput.getText();\n\n\t\t// Saves username and password if remember me is ticked\n\t\t// otherwise it deletes the file.\n\t\tif (rememberMeCheckbox.isSelected()) {\n\t\t\twriteRememberMe(username, password);\n\t\t} else {\n\t\t\tclearRememberMe();\n\t\t}\n\n\n\t\ttryUsernamePassword(username, password);\n\t}", "private void handleLogin() {\n // Get the values from the inputs\n final String username = this.mUsernameInput.getText().toString();\n final String password = this.mPasswordInput.getText().toString();\n // Make sure the username and password EditTexts are not empty\n if (this.isValid(username, password)) {\n // Authenticate the user credentials on the background thread\n AuthenticationTask authenticationTask = new AuthenticationTask(this);\n // Retain the AsyncTask in the RetainedTaskFragment\n this.mAuthenticationTaskFragment.setTask(authenticationTask);\n // Execute\n authenticationTask.execute(username, password);\n }\n }", "private void loginHandler(RoutingContext context) {\n JsonObject creds = new JsonObject()\n .put(\"username\", context.getBodyAsJson().getString(\"username\"))\n .put(\"password\", context.getBodyAsJson().getString(\"password\"));\n\n // TODO : Authentication\n context.response().setStatusCode(500).end();\n }", "public void authenticate(LoginRequest loginRequest) {\n\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "protected void login (HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n // invoke userService.login()\n User loginUser = userService.login(new User(null, username, password, null));\n // if null, then fail\n if (loginUser == null) {\n // save information to request domain\n req.setAttribute(\"msg\", \"Username or Password incorrect !\");\n req.setAttribute(\"username\", username);\n // jump to login page dispatcher share the same request information\n req.getRequestDispatcher(\"/pages/user/login.jsp\").forward(req, resp);\n }\n else {\n\n // save user information to Session domain\n req.getSession().setAttribute(\"user\", loginUser);\n req.getRequestDispatcher(\"/pages/user/login_success.jsp\").forward(req, resp);\n }\n\n }", "@Override\n public JsonResponse duringAuthentication(String... params) {\n try {\n final String username = params[0];\n final String password = params[1];\n return RequestHandler.authenticate(this.getApplicationContext(), username, password);\n } catch (IOException e) {\n return null;\n }\n }", "@PostMapping(value = \"/login\", headers = {\"content-type=application/x-www-form-urlencoded\"})\n\tpublic ResponseEntity<UserDTO> login(WebRequest request){\n\t\t\n\t\tString username = request.getParameter(\"username\");\n\t\tString password = request.getParameter(\"password\");\n\t\t\n\t\tUser user = userService.findByUsername(username);\n\t\tif(user == null) {\n\t\t\t//ovo glumi token i ide u session local storage\n\t\t\treturn new ResponseEntity<UserDTO>(HttpStatus.NOT_FOUND);\n\t\t}else if(user.getPassword().equals(password)) {\n\t\t\treturn new ResponseEntity<UserDTO>(new UserDTO(user), HttpStatus.OK);\n\t\t}else {\n\t\t\treturn new ResponseEntity<UserDTO>(HttpStatus.UNAUTHORIZED);\n\t\t}\n\t\t\n\t\t\n\t}", "public static String login(HttpServletRequest request) {\n\t\tif (request.getMethod().equals(FinalUtil.HTTP_GET)) {\n\t\t\treturn \"loginpage.html\";\n\t\t}\n\n\t\t// POST logic\n\t\tEmployee loggedEmployee = EmployeeService.getEmployeeService().login(\n\t\t\t\tnew Employee(\n\t\t\t\t\t\trequest.getParameter(\"email\"), \n\t\t\t\t\t\trequest.getParameter(\"password\")\n\t\t\t\t));\n\t\tSystem.out.println(\"LOGIN CONTROLLER: \" + loggedEmployee);\n\t\t\n\t\trequest.setAttribute(\"loggedEmployee\", loggedEmployee);\n\t\t\n\t\t// Wrong Credentials\n\t\tif (loggedEmployee.getEmailAddress().equals(\"\")) {\n\t\t\treturn \"loginpage.html\";\n\t\t} else {\n\t\t\n\t\t\trequest.getSession().setAttribute(\"loggedEmployee\", loggedEmployee);\n\n\t\t\t\n\t\t\tEmployee logged = (Employee) request.getSession().getAttribute(\"loggedEmployee\");\n\t\t\t\n\t\t\tSystem.out.println(\"Parameters(email and password from form): \" + request.getParameter(\"email\") +\":\" + request.getParameter(\"password\"));\n\t\t\tboolean loggedEmployee1 = EmployeeService.getEmployeeService().isManager(logged);\n\n\t\t\tif (loggedEmployee1 == true) {\n\t\t\t\treturn \"managerHome.jsp\";\n\t\t\t} else\n\t\t\t\treturn \"employeeHome.jsp\";\n\t\t}\n\t\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public void loginRequest(View view){\n\n callLoginServlet();\n }", "private void userLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString id=request.getParameter(\"user\");\r\n\t\tString pwd=request.getParameter(\"pwd\");\r\n\t\tUserFunctions uf=new UserFunctionsImpl();\r\n\t\tString st=uf.login(id, pwd);\r\n\t\tif(!(st.equals(\"incorrect username\")||st.equals(\"incorrect password\")))\r\n\t\t\t\t{\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"successlogin.jsp\");\r\n\t\trequest.setAttribute(\"name\", st); \r\n dispatcher.forward(request, response);\r\n\t\t\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"failurelogin.jsp\");\r\n\t\t\t\trequest.setAttribute(\"name\", st); \r\n\t\t dispatcher.forward(request, response);\r\n\t\t}\r\n\t\t\t\t\t\r\n\t\t\r\n\t}", "Login.Req getLoginReq();", "@Override\r\n\tpublic void login() {\n\r\n\t}", "public static boolean login(Context ctx) {\n\t\t\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\t\n\t\tSystem.out.println(username);\n\t\tSystem.out.println(password);\n\t\t\n\t\tif(username.equals(\"user\") && password.equals(\"pass\")) {\n\t\t\tctx.res.setStatus(204);\n\t\t\tctx.sessionAttribute(\"user\", new User(\"McBobby\",true));\n\t\t\treturn true;\n\t\t}else {\n\t\t\t\n\t\t\tctx.res.setStatus(400);\n\t\t\tctx.sessionAttribute(\"user\", new User(\"fake\",false));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n//\t\tctx.queryParam(password); /authenticate?password=value\n//\t\tctx.pathParam(password); /authenticate/{password}\n\t}", "@Override\n\tpublic void sendLogin() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\tString result = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.login();\n\t\t\t} else {\n\t\t\t\tWebResource loginService = service.path(URI_LOGIN);\n\t\t\t\tresult = loginService.accept(MediaType.TEXT_PLAIN).get(String.class);\n\t\t\t}\n\t\t\t//get the clientId\n\t\t\tclientId = Integer.parseInt(result);\n\t\t\t//set the status\n\t\t\tgui.setStatus(\"Successfully logged in! Obtained client ID: \"+clientId+\" from server!\");\n\t\t\t//immediately send the request for the list of items\n\t\t\tsendItemListRequest();\n\t\t} catch (ClientHandlerException ex){\n\t\t\t//exceptions for REST service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t} catch (WebServiceException ex){\n\t\t\t//exceptions for SOAP-RPC service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void login(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n String nombre = request.getParameter(\"nombreUser\");\r\n String passwd = request.getParameter(\"passwdUser\");\r\n\r\n try {\r\n //COMPRUEBA CREDENCIALES EN BBDD\r\n if (uDao.CompruebaLogin(nombre, passwd)) {\r\n \r\n System.out.println(\"OK LOGIN\");\r\n //LOGIN OK- enviamos el listado a la vista(JSP)\r\n RequestDispatcher miDispatcher = request.getRequestDispatcher(\"/ControllerUsuario\");\r\n miDispatcher.forward(request, response);\r\n } else {\r\n //LOGIN FAILED- recarga vista login(JSP)\r\n RequestDispatcher miDispatcher = request.getRequestDispatcher(\"/Login.jsp\");\r\n miDispatcher.forward(request, response);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "@Override\n\tpublic ResponseEntity<? extends LoginResponse> handle(RequestEntity<? extends LoginRequest> request)\n\t\t\tthrows ApiException, Exception {\n\t\treturn null;\n\t}", "private void login(String username,String password){\n\n }", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public LoginResponse login(LoginRequest request) throws IOException {\n ClientCommunicator loginCommunicator = new ClientCommunicator(new LoginStrategy());\n\n return (LoginResponse) loginCommunicator.doWebRequest(request, null);\n }", "public static String login(HttpServletRequest request) {\n\t\tif(request.getMethod().equals(FinalUtil.HTTP_GET)) {\n\t\t\treturn \"login.jsp\";\n\t\t}\n\t\t\n\t\t//POST logic\n\t\tCustomer loggedCustomer = CustomerService.getCustomerService().login(\n\t\t\t\tnew Customer(\n\t\t\t\t\t\trequest.getParameter(\"username\"),\n\t\t\t\t\t\trequest.getParameter(\"password\")\n\t\t\t\t\t\t));\n\t\t\n\t\t// Wrong Credentials\n\t\tif(loggedCustomer.getUsername().equals(\"\")) {\n\t\t\treturn \"login.jsp\";\n\t\t}\n\t\telse {\n\t\t\t/* Storing loggedCustomer to current session\n\t\t\tSESSION SCOPE IS AVAILABLE ONLY IN THIS REQUEST (CLIENT) */\n\t\t\trequest.getSession().setAttribute(\"loggedCustomer\", loggedCustomer);\n\t\t\t\n\t\t\t//Forward user to hit another controller\n\t\t\treturn \"/home.do\";\n\t\t}\n\t}", "@FXML\n private void handleLoginAttempt() {\n\n if (isInputValid()) {\n String uname = userField.getText();\n if (Model.doesUsernameExist(uname)) {\n User user = Model.verifyLogin(uname, pwField.getText());\n\n if (user == null) {\n // uname exists but incorrect login\n user = UserInfoTable.getUserFromUserName(uname);\n _loginAuthenticated = false;\n user.setLockoutNum(user.getLockoutNum() + 1);\n Model.editUser(user);\n\n // increment incorrect login attempts, check if banned\n if (user.getLockoutNum() >= 3) {\n bannedAlert();\n return;\n }\n } else {\n // uname exists and correct login\n // check if banned\n if (user.getLockoutNum() >= 3) {\n bannedAlert();\n return;\n }\n user.setLockoutNum(0);\n Model.editUser(user);\n Model.setUser(user);\n _loginAuthenticated = true;\n app.showMainPage();\n return;\n }\n }\n // Show the error message if bad data\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.initOwner(_dialogStage);\n alert.setTitle(\"Please Correct Invalid Fields \");\n alert.setHeaderText(\"Incorrect password and/or username\");\n\n alert.showAndWait();\n }\n }", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "private static String doLogin(Request req, Response res) {\n HashMap<String, String> respMap;\n \n res.type(Path.Web.JSON_TYPE);\n \n \n\t String email = Jsoup.parse(req.queryParams(\"email\")).text();\n \n logger.info(\"email from the client = \" + email);\n \n if(email != null && !email.isEmpty()) { \n \n\t server = new SRP6JavascriptServerSessionSHA256(CryptoParams.N_base10, CryptoParams.g_base10);\n\t \t\t\n\t gen = new ChallengeGen(email);\n\t\t\n\t respMap = gen.getChallenge(server);\n \n if(respMap != null) {\n\t\t logger.info(\"JSON RESP SENT TO CLIENT = \" + respMap.toString());\n res.status(200);\n respMap.put(\"code\", \"200\");\n respMap.put(\"status\", \"success\");\n return gson.toJson(respMap);\n }\n }\n respMap = new HashMap<>();\n \n res.status(401);\n respMap.put(\"status\", \"Invalid User Credentials\");\n respMap.put(\"code\", \"401\");\n logger.error(\"getChallenge() return null map most likely due to null B value and Invalid User Credentials\");\n \treturn gson.toJson(respMap);\n}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public abstract void onLogin();", "@Override\n\tpublic boolean managerLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.managerLogIn(username, password);\n\t\treturn result;\n\t}", "private void attemptLogin(){\n //reset error\n et_email.setError(null);\n et_password.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = et_email.getText().toString();\n final String password = et_password.getText().toString();\n final boolean finish = false;\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n et_password.setError(getString(R.string.error_invalid_password));\n focusView = et_password;\n cancel = true;\n }else if (!isEmailValid(email)) {\n et_email.setError(getString(R.string.error_invalid_email));\n focusView = et_email;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n JSONObject json = new JSONObject();\n\n try {\n json.put(\"ctrl\", \"login\");\n json.put(\"email\", email);\n json.put(\"password\", password);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n String requete = json.toString();\n Log.v(\"req\", requete);\n HttpQuery login = new HttpQuery(requete, this);\n login.execute();\n }\n\n\n }", "public boolean login(HttpServletRequest request, HttpServletResponse response, String data) {\n String appCookieValue = getAppCookieValue(request);\n if (!Objects.equals(appCookieValue, \"\")) {\n String[] cookieValues = appCookieValue.split(\"_\");\n String userName = cookieValues[0];\n String password = cookieValues[1];\n return loginUsingCookie(request, response, userName, password);\n }\n else {\n User user = (User)request.getSession().getAttribute(\"user\");\n if(user != null){\n try {\n response.sendRedirect(\"http://localhost:8010/CostsManagerHit/home\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return true;\n }\n }\n return false;\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "void loginAttempt(String email, String password);", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\n\t\tString id = request.getParameter(\"id\");\n\t\tString pw = request.getParameter(\"pw\");\n\n\t\tMemberDao dao = MemberDao.getInstance();\n\t\tint checkNum = dao.login(id, pw);\n\n\t\trequest.setAttribute(\"checkNum\", checkNum);\n\t\trequest.setAttribute(\"id\", id);\n\t\trequest.setAttribute(\"pw\", pw);\n\n\t}", "private void checkLogin(final String em, final String pw) {\n // Tag used to cancel the request\n String tag_string_req = \"req_login\";\n\n pDialog.setMessage(\"Logging in ...\");\n showDialog();\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.URL_LOGIN, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(TAG, \"Login Response: \" + response);\n hideDialog();\n\n if (response.isEmpty() || response.equals(\"\")){\n Toast.makeText(getApplicationContext(), \" Server is currently unavailable. Please try again later!\",\n Toast.LENGTH_LONG).show();\n }else {\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n\n // Check for error node in json\n if (!error) {\n // user successfully logged in\n // Create login session\n session.setLogin(true);\n\n // Now store the user in SQLite\n String uid = jObj.getString(\"uid\");\n\n JSONObject user = jObj.getJSONObject(\"user\");\n String name = user.getString(\"name\");\n String email = user.getString(\"email\");\n String address = user.getString(\"address\");\n String phone = user.getString(\"phone\");\n String created_at = user.getString(\"created_at\");\n\n // Inserting row in users table\n db.addUser(name, email, address, phone, uid, created_at);\n\n // Launch main activity\n Intent intent = new Intent(LoginActivity.this,\n MainActivity_.class);\n startActivity(intent);\n finish();\n } else {\n // Error in login. Get the error message\n String errorMsg = jObj.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(),\n errorMsg, Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Json error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Login Error: \" + error.getMessage());\n Toast.makeText(getApplicationContext(),\n error.getMessage(), Toast.LENGTH_LONG).show();\n hideDialog();\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", em);\n params.put(\"password\", pw);\n\n return params;\n }\n\n };\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n }", "public void login(String username, String password) {\n User user = new User(username, password);\r\n String paramBodyJsonStr = new Gson().toJson(user);\r\n Logger.d(\"paramBodyJsonStr=\" + paramBodyJsonStr);\r\n // handle login\r\n AndroidNetworking.post()\r\n .setContentType(\"application/json; charset=utf-8\")\r\n .setTag(this)\r\n .setUrl(Constants.URL_LOGIN)\r\n .build()\r\n .setApplicationJsonString(paramBodyJsonStr)\r\n .setAnalyticsListener(analyticsListener)\r\n .getAsJSONObject(new JSONObjectRequestListener() {\r\n @Override\r\n public void onResponse(JSONObject result) {\r\n Logger.d(\"response result=\" + result.toString());\r\n Result<LoggedInUser> defultResult = loginRepository.getDataSource().login(username, password);\r\n LoggedInUser data = ((Result.Success<LoggedInUser>) defultResult).getData();\r\n loginResult.setValue(new LoginResult(new LoggedInUserView(data.getDisplayName())));\r\n }\r\n\r\n @Override\r\n public void onError(ANError anError) {\r\n loginResult.setValue(new LoginResult(new Result.Error(anError)));\r\n Logger.d(\"anError=\" + anError.toString());\r\n if (!TextUtils.isEmpty(anError.getErrorDetail())) {\r\n Logger.d(\"getMessage=\" + anError.getMessage() + \" getErrorDetail=\" + anError.getErrorDetail());\r\n }\r\n }\r\n });\r\n\r\n }", "public boolean attemptLogin(HttpServletRequest request, HttpServletResponse response, String data) {\n String userName = request.getParameter(\"userName\");\n String password = request.getParameter(\"password\");\n try {\n IUserDAO iUserDAOHibernate = UserDAOHibernate.getInstance();\n User user = iUserDAOHibernate.validateUserAndPassword(userName, password);\n if (user != null)\n {\n request.getSession().setAttribute(\"user\", user);\n createLoginCookie(response, userName, password);\n response.sendRedirect(\"http://localhost:8010/CostsManagerHit/login/userLogged\");\n return true;\n }\n else\n request.setAttribute(\"isSuccessfullyLoggedIn\",false);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (UserDAOException e) {\n System.out.println(e.getMessage());\n request.setAttribute(\"isSuccessfullyLoggedIn\",false);\n return false;\n }\n return false;\n }", "void login(String user, String password);", "@FXML\n\tvoid login(ActionEvent event) throws IOException {\n\t\tMessage messageToServer = new Message();\n\t\tString userName = txtUserName.getText();\n\t\tString password = txtPassword.getText();\n\t\t// check that user put details\n\t\tif (userName.trim().isEmpty() || password.trim().isEmpty())\n\t\t\tlblErr.setText(\"User Name or Password is missing\");\n\t\telse {\n\t\t\tlblErr.setText(\"\");\n\t\t\t// create new Message object with the request\n\t\t\tmessageToServer.setMsg(userName + \" \" + password);\n\t\t\tmessageToServer.setOperation(\"isUserExists\");\n\t\t\tmessageToServer.setControllerName(\"UserController\");\n\t\t\t// the result User instance\n\t\t\tuser = (User) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\t\t// user isn't exists in DB\n\t\t\tif (user == null) { // create pop up alert\n\t\t\t\tlblErr.setText(\"User Name or Password is incorrect\");\n\t\t\t}\n\t\t\t// user already log in\n\t\t\telse if (user.isLogedIN() == true) { // create pop up alert\n\t\t\t\tlblErr.setText(\"User already logged in\");\n\t\t\t} else { // user logged in successfully\n\t\t\t\tmessageToServer.setMsg(userName);\n\t\t\t\tmessageToServer.setOperation(\"updateConnectionStatus\");\n\t\t\t\tmessageToServer.setControllerName(\"UserController\");\n\t\t\t\t// update the user's connection status\n\t\t\t\tClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\t\t\t// navigate user to the right home page, by his permission\n\t\t\t\tswitch (user.getUserType()) {\n\t\t\t\tcase STUDENT:\n\t\t\t\t\tNavigator.instance().navigate(\"StudentHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase TEACHER:\n\t\t\t\t\tNavigator.instance().navigate(\"TeacherHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase PRINCIPAL:\n\t\t\t\t\tNavigator.instance().navigate(\"PrincipalHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\t} // end switch case\n\t\t\t}\n\t\t}\n\t}", "protected void service(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String login = request.getParameter(\"login\");\n String senha = request.getParameter(\"senha\");\n UsuarioDAO dao = new UsuarioDAO();\n if (dao.checkLogin(login, senha)) {\n HttpSession session = request.getSession(true);\n session.setAttribute(\"login\", login);\n Cookie[] cookies = request.getCookies();\n Cookie cookie = null;\n for (int i = 0; cookies != null && i < cookies.length; i++) {\n Cookie c = cookies[i];\n if (c.getName().equals(\"myapp.login\")) {\n cookie = c;\n cookie.setValue(cookie.getValue().replace(\"@\" + login, \"\"));\n cookie.setValue(cookie.getValue().replace(login + \"@\", \"\"));\n cookie.setValue(login + \"@\" + cookie.getValue());\n break;\n }\n }\n if (cookie == null) {\n cookie = new Cookie(\"myapp.login\", login);\n }\n cookie.setMaxAge(Integer.MAX_VALUE);\n response.addCookie(cookie);\n RequestDispatcher rd = request.getRequestDispatcher(\"WEB-INF/TheGame.jsp\");\n rd.forward(request, response);\n } else {\n request.setAttribute(\"msg\", \"<span class=\\\"alert label\\\">Login ou senha inválida</span>\");\n RequestDispatcher rd = request.getRequestDispatcher(\"index.jsp\");\n rd.forward(request, response);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mPasswordView.setError(null);\n usernameView.setError(null);\n\n // Store values at the time of the login attempt.\n String username = usernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n/*\nTODO: Move this to register area to see if email is a valid email address\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n */\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n //showProgress(true);\n HashMap<String, String> map = new HashMap<>();\n map.put(\"username\", username);\n map.put(\"pass\", password);\n mAuthTask = new httpUrlConn(map, \"http://hive.sewanee.edu/evansdb0/android1/scripts/hotPartyLogin.php\");\n\n mAuthTask.execute();\n\n try {\n if(mAuthTask.get().contains(\"true\")) {\n String r = mAuthTask.get().replace(\"true // \",\"\");\n Log.i(\"response\", r.toString());\n Toast.makeText(getApplicationContext(),r,Toast.LENGTH_SHORT).show();\n Intent i = new Intent(this, chooseEvent.class);\n i.putExtra(\"username\", username);\n startActivity(i);\n\n }\n else {\n String[] resp = response.split(\",\");\n // for(String i: resp)\n //Toast.makeText(getApplicationContext(),i,Toast.LENGTH_SHORT).show();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n\n if (mAuthTask == null || mAuthTask.getStatus().equals(AsyncTask.Status.FINISHED)) {\n mAuthTask = null;\n }\n }\n }", "public F.Promise<Result> handleSignIn() {\n final Form<LogIn> filledForm = logInForm.bindFromRequest();\n if (customerService().isLoggedIn()) {\n return asPromise(redirect(controllers.routes.HomeController.home()));\n } else if (filledForm.hasErrors()) {\n flash(\"error\", \"Login form contains missing or invalid data.\");\n return asPromise(badRequest(loginView.render(data().build(), filledForm)));\n } else {\n return handleSignInWithValidForm(filledForm);\n }\n }", "void loginDone();", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public void login(HttpServletRequest req, HttpServletResponse res) throws IOException {\n\n // Client credentials\n Properties p = GlobalSettings.getNode(\"oauth.password-credentials\");\n String clientId = p.getProperty(\"client\");\n String secret = p.getProperty(\"secret\");\n ClientCredentials clientCredentials = new ClientCredentials(clientId, secret);\n\n // User credentials\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n UsernamePassword userCredentials = new UsernamePassword(username, password);\n\n // Create request\n TokenResponse oauth = TokenRequest.newPassword(userCredentials, clientCredentials).post();\n if (oauth.isSuccessful()) {\n PSToken token = oauth.getAccessToken();\n\n // If open id was defined, we can get the member directly\n PSMember member = oauth.getMember();\n if (member == null) {\n member = OAuthUtils.retrieve(token);\n }\n\n if (member != null) {\n OAuthUser user = new OAuthUser(member, token);\n HttpSession session = req.getSession(false);\n String goToURL = this.defaultTarget;\n if (session != null) {\n ProtectedRequest target = (ProtectedRequest)session.getAttribute(AuthSessions.REQUEST_ATTRIBUTE);\n if (target != null) {\n goToURL = target.url();\n session.invalidate();\n }\n }\n session = req.getSession(true);\n session.setAttribute(AuthSessions.USER_ATTRIBUTE, user);\n res.sendRedirect(goToURL);\n } else {\n LOGGER.error(\"Unable to identify user!\");\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n }\n\n } else {\n LOGGER.error(\"OAuth failed '{}': {}\", oauth.getError(), oauth.getErrorDescription());\n if (oauth.isAvailable()) {\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n } else {\n res.sendError(HttpServletResponse.SC_BAD_GATEWAY);\n }\n }\n\n }", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}", "public void doLogin(String u, String p) {\n final String oldUser = mUser;\n mUser = u;\n LoginRequest request = new LoginRequest(u, p,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String username) {\n //update variables\n mLogin = true;\n //set user to preferences\n mPreferences.setUser(username);\n mSingleton.updateActivityTypes();\n\n //reset drawer to load new user\n restartActivity();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n // Error handling\n //reset current user to previous state\n mUser = oldUser;\n System.out.println(\"Something went wrong!\");\n error.printStackTrace();\n }\n });\n mSingleton.add(request);\n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "@GetMapping(\"/login\")\n\tpublic boolean login(HttpServletRequest request) {\n\t\t//Implement logic to authenticate and set authenticated user object in session , setting \n\t\t\n\t\tUserInfo user = new UserInfo(\"yogesh\", \"admin\");\n\t\tHttpSession session = request.getSession(true);\n\t\tsession.setAttribute(\"authUser\",user);\n\t\treturn true;\n\t\t\n\t}", "public String login(String email, String password, HttpServletRequest req, HttpServletResponse resp) {\r\n log.info(\"login player api service:\" + mso.getId());\r\n log.info(\"login: email=\" + email + \";password=\" + password);\r\n if (!BasicValidator.validateRequired(new String[] {email, password}))\r\n return this.assembleMsgs(NnStatusCode.INPUT_MISSING, null);; \r\n\r\n String result[] = {\"\"};\r\n NnUser user = userMngr.findAuthenticatedUser(email, password, mso.getId(), req);\r\n if (user != null) {\r\n result[0] = this.prepareUserInfo(user, null, req, true);\r\n userMngr.save(user); //change last login time (ie updateTime)\r\n this.setUserCookie(resp, CookieHelper.USER, user.getToken());\r\n } else {\r\n return this.assembleMsgs(NnStatusCode.USER_LOGIN_FAILED, null);\r\n }\r\n return this.assembleMsgs(NnStatusCode.SUCCESS, result);\r\n }", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);", "private void login(final String email, final String password){\n String tag_string_req = \"req_login\";\n progressDialog.setMessage(\"Logging in...\");\n progressDialog.show();\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n Utils.LOGIN_URL, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(TAG, \"Login Response: \" + response.toString());\n\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n\n // Check for error node in json\n if (!error) {\n // Now store the user in SQLite\n JSONObject user = jObj.getJSONObject(\"user\");\n String uName = user.getString(\"username\");\n String email = user.getString(\"name\");\n\n // Inserting row in users table\n userInfo.setEmail(email);\n userInfo.setUsername(uName);\n session.setLoggedin(true);\n\n startActivity(new Intent(Login.this, MainActivity.class));\n finish();\n } else {\n // Error in login. Get the error message\n String errorMsg = jObj.getString(\"error_msg\");\n toast(errorMsg);\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n toast(\"Json error: \" + e.getMessage());\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Login Error: \" + error.getMessage());\n toast(\"Unknown Error occurred\");\n progressDialog.hide();\n }\n\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }\n\n };\n\n // Adding request to request queue\n // AndroidLoginController.getInstance().addToRequestQueue(strReq, tag_string_req);\n Volley.newRequestQueue(getApplicationContext()).add(strReq);\n }", "private void checkLogin(String email, String password) {\n final Context ctx = getApplicationContext();\n\n processor.checkLoginCredentials(email, password, ctx, new FetchDataListener() {\n @Override\n public void onFetchComplete(JSONObject data) {\n Boolean resp = (Boolean) data.get(\"response\");\n if (resp) {\n // go to home page\n Intent goToHome = new Intent(ctx, MainActivity.class);\n goToHome.putExtra(\"user\", etEmail.getText().toString());\n goToHome.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(goToHome);\n\n // finish prevents people from going back to login without logging out\n finish();\n } else {\n displayLoginError(\"Couldn't log in\");\n etEmail.setText(\"\");\n etPassword.setText(\"\");\n }\n }\n\n @Override\n public void onFetchFailure(String msg) {\n Log.d(TAG, msg);\n displayLoginError(\"Error connecting to server\");\n }\n\n @Override\n public void onFetchStart() {\n // do nothing\n }\n });\n\n }", "public void doLogin(final String email, final String password) {\n pDialog.setMessage(\"Logging in ...\");\n showDialog();\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConstants.URL_LOGIN, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(TAG, \"Login Response: \" + response.toString());\n hideDialog();\n\n try {\n JSONObject jObj = new JSONObject(response);\n String token = jObj.getString(\"accessToken\");\n\n if (token != null) {\n // Save login session\n session.saveAccessToken(token);\n\n // Launch main activity\n Intent intent = new Intent(LoginActivity.this,\n MapsActivity.class);\n startActivity(intent);\n finish();\n } else {\n // Error in login. Get the error message\n Toast.makeText(getApplicationContext(),\n \"Login error\", Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Json error: \" + e.getMessage(),\n Toast.LENGTH_LONG).show();\n }\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Login Error: \" + error.getMessage());\n Toast.makeText(getApplicationContext(),\n error.getMessage(), Toast.LENGTH_LONG).show();\n hideDialog();\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }\n };\n\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(strReq);\n }", "com.bingo.server.msg.REQ.LoginRequest getLogin();", "public LoginResponse login(LoginRequest request, String urlPath) throws IOException, TweeterRemoteException {\n LoginResponse response = clientCommunicator.doPost(urlPath, request, null, LoginResponse.class);\n if(response.isSuccess()) {\n return response;\n } else {\n throw new RuntimeException(response.getMessage());\n }\n }", "@FXML\r\n\tpublic void handleLoginButton() throws IOException{\r\n\t\tString username = tfUsernameLogin.getText();\r\n\t\tString password = pfPasswordLogin.getText();\r\n\t\tuserCred = theController.isValidUser(username, password);\r\n\t\tif(userCred.equals(\"manager\")){\r\n\t\t\tloginSuccess = true;\r\n\t\t\tconsoleScreen.setDisable(false);\r\n\t\t\tactionItemsScreen.setDisable(false);\r\n\t\t\tmemberScreen.setDisable(false);\r\n\t\t\tteamScreen.setDisable(false);\r\n\t\t\thandleConsoleButton();\r\n\t\t}\r\n\t\telse if(userCred.equals(\"employee\")){\r\n\t\t\tloginSuccess = true;\r\n\t\t\tconsoleScreen.setDisable(false);\r\n\t\t\tactionItemsScreen.setDisable(false);\r\n\t\t\tmemberScreen.setDisable(true);\r\n\t\t\tteamScreen.setDisable(true);\r\n\t\t\thandleConsoleButton();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tlbAlertLogin.setTextFill(Color.RED);\r\n\t\t\tlbAlertLogin.setText(userCred);\r\n\t\t}\r\n\t}", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "private void login(Conversation conversation) {\n\t\tJsonObject lJsonObjIn = (JsonObject) conversation.getRequestBodyAsJSON();\n\t\t\n\t\tString lGebruikersnaam = lJsonObjIn.getString(\"username\");\t\t\t\t\t\t// Uitlezen van opgestuurde inloggegevens... \n\t\tString lWachtwoord = lJsonObjIn.getString(\"password\");\n\t\tMap<String, String> loginInfo = informatieSysteem.loginDetails(lGebruikersnaam,lWachtwoord);\n\n\t\tif(loginInfo.isEmpty())\n\t\t{\n\t\t\t//LOGIN FAILED !\n\t\t\tconversation.sendJSONMessage(\"{\\\"rol\\\":\\\"undefined\\\"}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t\tlJsonObjectBuilder.add(\"rol\", loginInfo.get(\"rol\"));\n\t\t\tlJsonObjectBuilder.add(\"voornaam\", loginInfo.get(\"voornaam\"));\n\t\t\tlJsonObjectBuilder.add(\"achternaam\", loginInfo.get(\"achternaam\"));\n\t\t\tlJsonObjectBuilder.add(\"identificatienummer\", loginInfo.get(\"identificatienummer\"));\t\t// en teruggekregen gebruikersrol als JSON-object...\n\t\t\tif(loginInfo.containsKey(\"group\")) lJsonObjectBuilder.add(\"group\", loginInfo.get(\"group\"));\n\t\t\tif(loginInfo.containsKey(\"klasnaam\")) lJsonObjectBuilder.add(\"klasnaam\", loginInfo.get(\"klasnaam\"));\n\t\t\tif(loginInfo.containsKey(\"klascode\")) lJsonObjectBuilder.add(\"klascode\", loginInfo.get(\"klascode\"));\n\t\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\tconversation.sendJSONMessage(lJsonOut);\n\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "private static void logedIn(Request req, Response res, CloudService cloud) {\r\n\t\t\tif (cloud.getKorisnici().get(req.cookie(\"userID\")) == null) {\r\n\t\t\t\tString[] params = req.splat();\r\n\t\t\t\tString path;\r\n\t\t\t\tif(params.length == 0)\r\n\t\t\t\t\tpath = \"\";\r\n\t\t\t\telse\r\n\t\t\t\t\tpath = params[0];\r\n\t\t\t\tif(path.equals(\"checkLogin\") || path.equals(\"favicon.ico\"))\r\n\t\t\t\t\treturn;\r\n\t\t\t\tres.redirect(\"/login.html\");\r\n\t\t\t\thalt(302);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(req.session().attribute(\"user\") == null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tKorisnik k = cloud.getKorisnici().get(req.cookie(\"userID\"));\r\n\t\t\t\t\treq.session().attribute(\"user\", k); // postavi mu korisnika za sesiju\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\n public @ResponseBody void login( HttpServletRequest request, HttpServletResponse response) {\n try {\n // Verify if the user is already logged\n String email = (String) request.getSession().getAttribute(\"email\");\n if (email != null) {\n response.getWriter().println(\"already logged: \" + email);\n } else {\n // Generate a random state to verify source in incoming google call\n String state = new BigInteger(130, new SecureRandom()).toString(32);\n request.getSession().setAttribute(\"state\", state);\n response.getWriter().println(\n \"<html><p><a title=\\\"login google\\\" href=\\\"https://accounts.google.com/o/oauth2/v2/auth?client_id=105248247635-270o2p37be66bbmhd7dt7nhshqu6ug2l.apps.googleusercontent.com&amp;response_type=code&amp;scope=openid%20email&amp;redirect_uri=https://openid-testgoogleopenid.wedeploy.io/openId&amp;\" +\n \"state=\" + state + \"&amp;[email protected]&amp;nonce=0394852-3190485-2490001\\\">login with google</a></p></html>\");\n }\n } catch (IOException e) {\n log.log(Level.SEVERE, \"Error: \", e);\n }\n }", "public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);", "@Override\n\tpublic String login_request() {\n\t\treturn null;\n\t}", "private static Object doAuth(Request req, Response res) {\n \n HashMap<String, String> response = new HashMap<>();\n\t\t \n String email = Jsoup.parse(req.queryParams(\"email\")).text();\n\t\t String password = Jsoup.parse(req.queryParams(\"password\")).text();\n\t\t\n res.type(Path.Web.JSON_TYPE);\n \t\t\n\t\t\n\t\tif(email != null && !email.isEmpty() && password != null && !password.isEmpty() ) {\n \n authenticate = new Authenticate(password);\n\t\t\t//note that the server obj has been created during call to login()\n\t\t\tString M2 = authenticate.getM2(server);\n\t\t\t\n if(M2 != null || !M2.isEmpty()) {\n \n \n\t\t\tSession session = req.session(true);\n\t\t\tsession.maxInactiveInterval(Path.Web.SESSION_TIMEOUT);\n\t\t\tUser user = UserController.getUserByEmail(email);\n\t\t\tsession.attribute(Path.Web.ATTR_USER_NAME, user.getUsername());\n session.attribute(Path.Web.ATTR_USER_ID, user.getId().toString()); //saves the id as String\n\t\t\tsession.attribute(Path.Web.AUTH_STATUS, authenticate.authenticated);\n\t\t\tsession.attribute(Path.Web.ATTR_EMAIL, user.getEmail());\n logger.info(user.toString() + \" Has Logged In Successfully\");\n \n response.put(\"M2\", M2);\n response.put(\"code\", \"200\");\n response.put(\"status\", \"success\");\n response.put(\"target\", Path.Web.DASHBOARD);\n \n String respjson = gson.toJson(response);\n logger.info(\"Final response sent By doAuth to client = \" + respjson);\n res.status(200);\n return respjson;\n }\n\t\t\t\t\n\t\t} \n \n res.status(401);\n response.put(\"code\", \"401\");\n response.put(\"status\", \"Error! Invalid Login Credentials\");\n \n return gson.toJson(response);\n }", "private boolean handleLogin(String serverMessage){\r\n\t\t// Separating the message STATUS + TOKEN\r\n\t\tString[] messageParts = serverMessage.split(SEPARATOR);\r\n\r\n\t\t// Get status code from message\r\n\t\tint messageStatus = Integer.parseInt(messageParts[0]);\r\n\r\n\t\t//Process status\r\n\t\tswitch (messageStatus) {\r\n\t\tcase REQUEST_OK:\r\n\r\n\t\t\t// Status OK set TOKEN to Authenticated User\r\n\t\t\tSystem.out.println(\"Login request OK\");\r\n\t\t\tcontroller.getModel().getAuthUser().setToken(messageParts[1]);\r\n\t\t\treturn true;\r\n\r\n\t\tcase INCORRECT_REQUEST_FORMAT:\r\n\r\n\t\t\tSystem.err.println(\"Oups! \\nSomethin went wrong!\\n Request format was invalid\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase INCORRECT_USER_OR_PASSWOROD:\r\n\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Username or password is incorrect!\", \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "@RequestMapping(value = \"/mobile/login\", method = RequestMethod.POST)\r\n\tpublic void login(HttpServletRequest request, HttpServletResponse response, String loginName, String password) {\r\n\t\ttry {\r\n\t\t\tif (loginName != null && !loginName.equals(\"\")) {\r\n\t\t\t\tMap<String, Object> resMap = new HashMap<String, Object>();\r\n\t\t\t\tresMap.put(\"username\", loginName);\r\n\t\t\t\tresMap.put(\"password\", CommonUtils.covertpw(password));\r\n\t\t\t\tUser user = userService.login(resMap);\r\n\t\t\t\tresponse.addHeader(\"Access-Control-Allow-Origin\", \"*\");\r\n\t\t\t\tif (user == null) {\r\n\t\t\t\t\tresponse.getWriter()\r\n\t\t\t\t\t\t\t.print(Utils.getReturnedData(Constants.FAILED, null, Constants.userNotExistOrWrongPwd));\r\n\t\t\t\t} else if (user.getStatus() == 0) {\r\n\t\t\t\t\trequest.getSession().setAttribute(Constants.USER, user);\r\n\t\t\t\t\tresponse.getWriter().print(Utils.getReturnedData(Constants.SUCCESS, user, Constants.loginSuccess));\r\n\t\t\t\t} else if (user.getStatus() == 2) {\r\n\t\t\t\t\tresponse.getWriter().print(Utils.getReturnedData(Constants.FAILED, null, Constants.activateUser));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t}\r\n\t}", "@Override\n String execute(HttpServletRequest request, HttpServletResponse response) throws LegohusException {\n String email = request.getParameter(\"email\");\n String password = request.getParameter(\"password\");\n User user = LogicFacade.login(email, password);\n HttpSession session = request.getSession();\n session.setAttribute(\"user\", user);\n \n return \"WEB-INF/\" + user.getRole() + \"page\";\n }", "@Override\n protected void doPost(HttpServletRequest req,\n HttpServletResponse resp)\n throws ServletException, IOException {\n\n String requestBody = \"\";\n requestBody = IOUtils.toString(req.getReader());\n String[] usernameAndPassword = requestBody.split(\"&\");\n String username = usernameAndPassword[0].substring(9);\n String password = usernameAndPassword[1].substring(9);\n LoginDAO loginDAO = new LoginDAO();\n JsonCredential credential = loginDAO.login(username,password);\n if(credential == null) {\n // send invalid login response\n log.info(\"LoginServlet, Invalid Username/Password\");\n String invalidLoginURL = String.format(\"%s/\", req.getContextPath());\n resp.setStatus(401);\n }\n else{\n // login user, maybe with a redirect\n String credentialAsString = credential.makeJsonString();\n if(!credentialAsString.equals(\"\")) {\n // encoding prevents issue where Tomcat sees Cookie as invalid\n credentialAsString = URLEncoder.encode(credentialAsString,\"UTF-8\");\n Cookie cookie = new Cookie(\"expenseapp_authenticationcookie\",credentialAsString);\n cookie.setMaxAge(1200000); //roughly 2 weeks before expiration\n if(credential.getPermissionName().equals(\"Employee\")) {\n resp.addCookie(cookie);\n String employeeHomeScreen = String.format(\"%s/employeehomescreen.html\", req.getContextPath());\n resp.sendRedirect(employeeHomeScreen);\n }\n else if(credential.getPermissionName().equals(\"Manager\")) {\n resp.addCookie(cookie);\n String managerHomeScreen = String.format(\"%s/managerhomescreen.html\", req.getContextPath());\n resp.sendRedirect(managerHomeScreen);\n }\n else{\n log.error(\"LoginServlet, Invalid Permission Name - 500 error\");\n resp.setStatus(500);\n String errorUrl = String.format(\"%s/500Error.html\", req.getContextPath());\n req.getRequestDispatcher(errorUrl).forward(req,resp);\n }\n }\n }\n\n }", "public String login(Request req, Response res) {\n String body = req.body();\n ServerResponse err = ValidationUtil.validateBody(body);\n\n // Return on error\n if (err != null) {\n res.status(400);\n return JsonUtil.stringify(err);\n }\n\n // parse request body\n JsonObject bodyJson = JsonUtil.parse(body);\n\n // get name from body\n String name = bodyJson.getString(COM_NAME);\n\n // check if user already logged in, if yes, return with error message\n for (User user : model.getAvailableUser()) {\n if (user.getName().equals(name) && user.getStatus()) {\n res.status(400);\n return JsonUtil.stringify(new ServerResponse(FAILURE, \"Already logged in\"));\n }\n }\n\n // set user online and save ip\n User currentUser = editor.haveUser(name, req.ip());\n chatSocket.sendUserJoined(currentUser);\n\n // Save currentUser\n ResourceManager.saveServerUsers(currentUser);\n\n // send response that everything went fine\n res.status(200);\n return JsonUtil.stringify(new ServerResponse(SUCCESS, JsonUtil.buildOkLogin()));\n }", "public static String login(HttpServletRequest request, HttpServletResponse response) {\n String result = LoginWorker.login(request, response);\n if (\"success\".equals(result)) {\n result = setResponse(request, response);\n }\n return result;\n }", "@Action(value = \"userAction_login\", results = {\n\t\t\t@Result(name = \"login-error\", location = \"/login.jsp\"),\n\t\t\t@Result(name = \"login-ok\", type = \"redirect\", location = \"/index.jsp\"),\n\t\t\t@Result(name = \"login-params-error\", location = \"/login.jsp\") })\n\t@InputConfig(resultName = \"login-params-error\")\n\tpublic String login() {\n\t\tremoveSessionAttribute(\"key\");\n\t\ttry {\n\t\t\t// 1.获取subject对象\n\t\t\tSubject subject = SecurityUtils.getSubject();\n\t\t\t// 2.获取令牌对象(封装参数数据)\n\t\t\tUsernamePasswordToken token = new UsernamePasswordToken(\n\t\t\t\t\tmodel.getEmail(), model.getPassword());\n\t\t\tsubject.login(token);\n\t\t\treturn \"login-ok\";\n\t\t} catch (AuthenticationException e) {\n\t\t\te.printStackTrace();\n\t\t\tthis.addActionError(this.getText(\"login.emailorpassword.error\"));\n\t\t\treturn \"login-error\";\n\t\t}\n\t}", "public void login(ActionEvent e) {\n boolean passwordCheck = jf_password.validate();\n boolean emailCheck = jf_email.validate();\n if (passwordCheck && emailCheck) {\n\n\n new LoginRequest(jf_email.getText(), jf_password.getText()) {\n @Override\n protected void success(JSONObject response) {\n Platform.runLater(fxMain::switchToDashboard);\n }\n\n @Override\n protected void fail(String error) {\n Alert alert = new Alert(Alert.AlertType.ERROR, error, ButtonType.OK);\n alert.showAndWait();\n }\n };\n\n\n }\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String login = req.getParameter(\"login\");\n String password = req.getParameter(\"password\");\n if (logic.isExisting(login, password)) {\n HttpSession session = req.getSession();\n session.setAttribute(\"login\", login);\n if (logic.isAdmin(login)) {\n session.setAttribute(\"role\", \"admin\");\n }\n resp.sendRedirect(String.format(\"%s/\", req.getContextPath()));\n } else {\n req.setAttribute(\"error\", \"Credentional is invalid\");\n doGet(req, resp);\n }\n }", "private void loginUser(final String email, final String password){\n String cancel_req_tag = \"login\";\n progressDialog.setMessage(\"Logging you in...\");\n showDialog();\n \n Map<String, String> params = new HashMap<>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n \n JSONObject req = new JSONObject(params);\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, URL_FOR_LOGIN, req,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response){\n try{\n boolean error = response.getBoolean(\"error\");\n if(!error){\n Intent intent = new Intent(LoginActivity.this, UserActivity.class);\n String token = response.getString(\"token\");\n saveToken(getApplicationContext(), token);\n hideDialog();\n \n startActivity(intent);\n finish();\n } else {\n String error_msg = response.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(), error_msg,Toast.LENGTH_LONG).show();\n hideDialog();\n }\n \n } catch (JSONException e){\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener(){\n @Override\n public void onErrorResponse(VolleyError error){\n Toast.makeText(getApplicationContext(), \"An error occurred while logging in, please try again.\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n hideDialog();\n }\n });\n \n AppSingleton.getInstance(getApplicationContext()).addToRequestQueue(jsonObjectRequest, cancel_req_tag);\n }", "public boolean loginUser();", "public UserLoginhandle() {\n\t\tsuper();\n\t}", "public static void userLogin(Context context)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\r\n\t\t\tString username = context.formParam(\"myUsername\");\r\n\t\t\tString password = context.formParam(\"myPassword\");\r\n\t\t\t\r\n\t\t\tif(myAccountServ.attemptLoginServiceLayer(username, password)) //if true then get user account from DB\r\n\t\t\t{\r\n\t//\t\t\tSystem.out.println(myAccountServ.getMyAccountFromDatabase(username, password));\r\n\t\t\t\tcontext.sessionAttribute(\"currentUser\", myAccountServ.getMyAccountFromDatabase(username, password)); //set session to user account info\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1);\r\n\t\t\t\tif(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1)//check user role id if they employeee\r\n\t\t\t\t{\r\n\t\t\t\t\t//take me to the employee page\r\n\t\t\t\t\tcontext.redirect(\"/html/employee-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 0) // or if they manager\r\n\t\t\t\t{\r\n\t\t\t\t\tcontext.redirect(\"/html/manager-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse//if we failed login attempt... send us back to login page aka \"/index.html\"\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"not correct credentials\");\r\n\t\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"username: \" + username);\r\n//\t\tSystem.out.println(\"pssword: \" + password);\r\n\t}", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "public abstract User login(User data);", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\r\n\t\t\tthrows Exception {\n\t\tString uri = request.getRequestURI();\r\n\t\tif (uri.indexOf(\"login\") >= 0 || uri.indexOf(\"index\") >= 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tUser user = (User) request.getSession().getAttribute(\"loginInfo\");\r\n\t\tif (user == null) {\r\n\t\t\trequest.setAttribute(\"errMsg\", \"ÇëÏȵǼ£¡\");\r\n\t\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/user/login.jsp\").forward(request, response);\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t// }\r\n\t}", "private void loginSuccess(String uname) {\n }", "@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\t\t System.err.println(\"URI -- \"+request.getRequestURL());\n\t\t if(request.getRequestURI()!=null &&\n\t\t (request.getRequestURI().contains(\"/self/login\"))) return true;\n\t\t \n\t\t \n\t\t String authHeader = request.getHeader(AUTH_HEADER);\n\t\t \n\t\t if (authHeader == null) { \n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t if (authHeader.contains(\"Basic \")) {\n\t\t \n\t\t String encodedUserNamePassword = authHeader.split(\"Basic \")[1]; String\n\t\t strValue = \"\";\n\t\t try\n\t\t { \n\t\t\t strValue = new String(java.util.Base64.getDecoder().decode(encodedUserNamePassword.getBytes(\n\t\t\t\t\t \t\t)), \"UTF-8\"); \n\t\t }\n\t\t catch (Exception e)\n\t\t { \n\t\t\t e.printStackTrace(); \n\t\t\t // TODO: handle exception return false; \n\t\t }\n\t\t \n\t\t String[] arrayOfString = strValue.split(\"\\\\:\");\n\t\t \n\t\t if (arrayOfString.length > 1) \n\t\t { \n\t\t\t \tString userName = arrayOfString[0]; String\n\t\t\t \tpassword = arrayOfString[1]; System.err.println(userName);\n\t\t\t \tSystem.err.println(password);\n\t\t \n\t\t\t \tpassword = Base64.getEncoder().encodeToString((password + \"\").getBytes(\"utf-8\")); \n\t\t\t \tUsernamePasswordAuthenticationToken\n\t\t\t \tusernamePasswordAuthenticationToken = new\n\t\t\t \tUsernamePasswordAuthenticationToken( userName, password);\n\t\t \n\t\t\t \tAuthentication authentication = null; \n\t\t\t \ttry { authentication =\n\t\t\t \t\t\tautheticationManager.authenticate(usernamePasswordAuthenticationToken);\n\t\t \n\t\t } catch (Exception ex) { \n\t\t\t ex.printStackTrace();\n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes());\n\t\t \n\t\t\t return false; \n\t\t } \n\t\t if (authentication.isAuthenticated()) {\n\t\t\t SecurityContextHolder.getContext().setAuthentication(authentication);\n\t\t\t return true; \n\t\t } else { \n\t\t\t\n\t\t\tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); \n\t\t\t return false; \n\t\t\t } \n\t\t } else { \n\t\t\t String encodedValue = authHeader.split(\"Basic \")[1];\n\t\t \n\t\t\t if (isValidToken(encodedValue)) return true;\n\t\t \n\t\t \tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t \tresponse.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t } \n\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); return\n\t\t false;\n\t\t \n\t\t\n\t}", "@Override\n\tpublic boolean employeeLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.employeeLogIn(username, password);\n\t\treturn result;\n\t}", "private void attemptUsernamePasswordLogin()\n {\n if (mAuthTask != null)\n {\n return;\n }\n\n if(mLogInButton.getText().equals(getResources().getString(R.string.logout)))\n {\n mAuthTask = new RestCallerPostLoginTask(this,mStoredToken,MagazzinoService.getAuthenticationHeader(this),true);\n mAuthTask.execute(MagazzinoService.getLogoutService(this));\n return;\n }\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mUsernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password))\n {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email))\n {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n else if (!isUsernameOrEmailValid(email))\n {\n mUsernameView.setError(getString(R.string.error_invalid_email));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n return;\n }\n\n mAuthTask = new RestCallerPostLoginTask(this,email, password);\n mAuthTask.execute(MagazzinoService.getLoginService(this));\n\n }", "public void loginUser() {\n \tString username = usernameField.getText().toString();\n \tString password = passwordField.getText().toString();\n \n \t// Validation part.\n \tString empty = \"\";\n \t// Check if username is empty.\n \tif(username.isEmpty()) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Please enter a username.\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n \t// Check if username contains othe characters.\n \tif(! Pattern.matches(\"[a-zA-Z]+\", username)) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Username can only contain alphabets\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n \t\n \t// Check if password is empty.\n \tif(password.isEmpty()) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Please enter a password.\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n\n \t\n \tArrayList<NameValuePair> userData = new ArrayList<NameValuePair>();\n \tuserData.add(new BasicNameValuePair(\"username\", username));\n \tuserData.add(new BasicNameValuePair(\"password\", password));\n \t\n \t// Now send the data to the login user task to\n \t// check if they are correct.\n \tnew AuthenticateUserTask(this, userData).execute();\n \t\n }", "Login() { \n }", "public void login(User user);" ]
[ "0.7864219", "0.7802868", "0.7660259", "0.7533063", "0.74389565", "0.7375658", "0.73490226", "0.7343742", "0.73170114", "0.73107255", "0.7159561", "0.71237266", "0.7088998", "0.7006159", "0.6996403", "0.6983312", "0.69802606", "0.69775695", "0.69736224", "0.6967236", "0.6946057", "0.69224083", "0.69162846", "0.6901537", "0.68945366", "0.68913007", "0.6863641", "0.68616605", "0.6843354", "0.6834413", "0.68292946", "0.68075347", "0.68074036", "0.6805641", "0.68050647", "0.6797911", "0.6794415", "0.6791797", "0.67839086", "0.67804706", "0.6772015", "0.67703235", "0.6758021", "0.67355955", "0.6733096", "0.6723331", "0.67229885", "0.67094636", "0.6705719", "0.670012", "0.6694938", "0.66942537", "0.6693087", "0.66927946", "0.6690299", "0.66900414", "0.6688723", "0.66805965", "0.66750914", "0.6672743", "0.6668954", "0.66644704", "0.66634685", "0.6659283", "0.6659237", "0.6658501", "0.66491544", "0.66466403", "0.6644341", "0.6639982", "0.66350937", "0.6622523", "0.66210246", "0.6620829", "0.6620785", "0.66151786", "0.66051173", "0.660118", "0.65953374", "0.6593889", "0.65934324", "0.6593031", "0.65919095", "0.6588926", "0.6581718", "0.65800136", "0.6577532", "0.65763974", "0.6569699", "0.656697", "0.6565593", "0.6562527", "0.65587485", "0.655702", "0.6535696", "0.65336865", "0.6533119", "0.6529183", "0.65278506", "0.6527065" ]
0.75659496
3
handles a userData request
public Message handleGetUserData(Message getUserData){ // update userData on register UserData toMod = controlServer.getUserData(getUserData.getUserName()); // sends answer to client getUserData.setUserData(new UserData(toMod)); getUserData.setId(Message.UPDATE_UD); return getUserData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserData(Object userData) {\n this.userData = userData;\n }", "public Object getUserData() {\n return userData;\n }", "public void setUserData (Object userData) {\n\t\tthis.userData = userData;\n\t}", "abstract public Object getUserData();", "Object getUserData();", "public Object getUserData()\n\t{\n\t\treturn userData;\n\t}", "@Override\n public void setUserData(final Object userData) {\n this.userData = userData;\n }", "public Object getUserData();", "public void setUserData(Object data);", "private void setUserData(){\n }", "@Override\n\tprotected void initData() {\n\t\trequestUserInfo();\n\t}", "@Override\n public Object getUserData() {\n return this.userData;\n }", "public Object getUserData () {\n\t\treturn userData;\n\t}", "public void requestUserData(String userId){\n mFirestore.collection(\"users\")\n .document(localUser.getUID())\n .addSnapshotListener(new EventListener<DocumentSnapshot>() {\n @Override\n public void onEvent(@Nullable DocumentSnapshot snapshot,\n @Nullable FirebaseFirestoreException e) {\n if (e != null) {\n Log.w(TAG, \"Listen failed.\", e);\n return;\n }\n\n String source = snapshot != null && snapshot.getMetadata().hasPendingWrites()\n ? \"Local\" : \"Server\";\n\n if (snapshot != null && snapshot.exists()) {\n Log.d(TAG, \"DocumentSnapshot data: \" + snapshot.getData());\n setLocalUserFields(snapshot);\n\n } else {\n Log.d(TAG, \"No such document\");\n localUser.getIUserDataChangeListener().onUserDataChanged(false);\n }\n }\n });\n }", "abstract public void setUserData(Object data);", "public void setUserData(Object argUserData) {\n userData = argUserData;\n }", "void setUserData(Object userData);", "public void requestUserData() {\r\n\t \tmText.setText(\"Fetching user name, profile pic...\");\r\n\t \tBundle params = new Bundle();\r\n\t \tparams.putString(\"fields\", \"name, picture\");\r\n\t \tUtility.mAsyncRunner.request(\"me\", params, new UserRequestListener());\r\n\t }", "public User getUserData();", "public void setUser(UserData data) {\n user = data;\n }", "@Override\r\n\t\tpublic Object setUserData(String key, Object data, UserDataHandler handler)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private void loadUserData() {\n\t\tuserData = new UserData();\n }", "void requestData();", "public UserData(int userDataId) {\n this.userDataId = userDataId;\n }", "public static void userData(Context context)\r\n\t{\r\n\t\ttry {\r\n\t\t\tcontext.json(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onSetCustomUserDataDone(LiveUserInfoEvent arg0) {\n\t\t\n\t}", "@Override\r\n\t\tpublic Object getUserData(String key)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public int getUserDataId() {\n return userDataId;\n }", "public void updateUser(Bundle userData) {\n Bitmap profilePic = userData.getParcelable(\"userProfilePic\"); //reads in bitmap image\n setProfileImageData(profilePic); //converts bitmap image to byte[]\n firstName = userData.getString(\"userFirstName\");\n lastName = userData.getString(\"userLastName\");\n fullName = firstName + \" \" + lastName;\n sex = userData.getString(\"userSex\");\n activityLevel = userData.getString(\"userActivityLevel\");\n city = userData.getString(\"userCity\");\n country = userData.getString(\"userCountry\");\n\n userID = userData.getInt(\"userID\");\n age = userData.getInt(\"userAge\");\n heightInches = userData.getInt(\"userHeight\");\n weightLBS = userData.getInt(\"userWeight\");\n\n BMR = userData.getDouble(\"userBMR\");\n BMI = userData.getDouble(\"userBMI\");\n weightChangeGoal = userData.getDouble(\"userGoal\");\n recommendedDailyCalorieIntake = userData.getDouble(\"userCalories\");\n }", "public void callForProfileData(){\n socket.emit(\"user\");\n }", "public void getUserData() {\r\n User user = serverView.getUserInfo(username.getText());\r\n username.setText(\"\");\r\n if (user == null) {\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.setTitle(\"Error\");\r\n alert.setHeaderText(\"no User with this username\");\r\n alert.showAndWait();\r\n } else {\r\n\r\n try {\r\n userContent.getChildren().clear();\r\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"UserInfoView.fxml\"));\r\n fxmlLoader.setController(new UserInfoController(user));\r\n Pane pane = fxmlLoader.load();\r\n userContent.getChildren().add(pane);\r\n\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n\t\t\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\t\t\tif (code == MsgKey.KEY_RESULT_SUCCESS) {\n\t\t\t\t\t\t\tSQLiteManager.getInstance().updateFamilyUserInfo(\n\t\t\t\t\t\t\t\t\tfUerInfo.getUserID(), key, mName, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\t\t\tif (code == MsgKey.KEY_RESULT_SUCCESS) {\n\t\t\t\t\t\t\tSQLiteManager.getInstance().updateFamilyUserInfo(\n\t\t\t\t\t\t\t\t\tfUerInfo.getUserID(), key, mName, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public User getResponseUserData()\n {\n return responseUserData;\n }", "public void init(UserData userData) {\n this.userData = userData;\n }", "private void setUser(Map<String, Object> data) {\n this.setUser(ID(), data);\n }", "public com.vidyo.portal.ucclients.GetUserDataResponse getUserData(\n\t\t\tcom.vidyo.portal.ucclients.GetUserDataRequest getUserDataRequest)\n\t\t\tthrows NotLicensedFaultException, InvalidArgumentFaultException,\n\t\t\tGeneralFaultException, SeatLicenseExpiredFaultException {\n\t\tcheckLicenseForAllowUCClients();\n\n\t\tGetUserDataResponse resp = new GetUserDataResponse();\n\t\tUser user = this.user.getLoginUser();\n\n\t\tString EID = getUserDataRequest.getEID().getEID_type0();\n\t\tif (EID.equalsIgnoreCase(\"\")) {\n\t\t\tthrow new InvalidArgumentFaultException(\"Bad EID = \" + EID);\n\t\t}\n\n\t\tMember member = this.member.getMember(user.getMemberID());\n\t\tif (!member.getEndpointGUID().equalsIgnoreCase(EID)) {\n\t\t\tthrow new InvalidArgumentFaultException(\"User '\"\n\t\t\t\t\t+ user.getUsername() + \"' is not linked to EID '\" + EID\n\t\t\t\t\t+ \"'\");\n\t\t}\n\n\t\ttry {\n\t\t\tcom.vidyo.bo.Entity entity = this.member.getContact(user\n\t\t\t\t\t.getMemberID());\n\t\t\tEntity_type0 ws_entity = new Entity_type0();\n\t\t\tEntityID id = new EntityID();\n\t\t\tid.setEntityID(entity.getRoomID());\n\t\t\tws_entity.setEntityID(id);\n\t\t\tws_entity.setEntityType(EntityType_type0.Member);\n\t\t\tws_entity.setDisplayName(entity.getName());\n\t\t\tws_entity.setExtension(entity.getExt());\n\t\t\tws_entity.setDescription(entity.getDescription());\n\t\t\tws_entity.setTenant(entity.getTenantName());\n\n\t\t\tif (user.getLangID() == 1) {\n\t\t\t\tws_entity.setLanguage(Language_type0.en);\n\t\t\t} else if (user.getLangID() == 2) {\n\t\t\t\tws_entity.setLanguage(Language_type0.fr);\n\t\t\t} else if (user.getLangID() == 3) {\n\t\t\t\tws_entity.setLanguage(Language_type0.ja);\n\t\t\t} else if (user.getLangID() == 4) {\n\t\t\t\tws_entity.setLanguage(Language_type0.zh_CN);\n\t\t\t} else if (user.getLangID() == 5) {\n\t\t\t\tws_entity.setLanguage(Language_type0.es);\n\t\t\t} else if (user.getLangID() == 6) {\n\t\t\t\tws_entity.setLanguage(Language_type0.it);\n\t\t\t} else if (user.getLangID() == 7) {\n\t\t\t\tws_entity.setLanguage(Language_type0.de);\n\t\t\t} else if (user.getLangID() == 8) {\n\t\t\t\tws_entity.setLanguage(Language_type0.ko);\n\t\t\t} else if (user.getLangID() == 9) {\n\t\t\t\tws_entity.setLanguage(Language_type0.pt);\n\t\t\t} else if (member.getLangID() == 10) {\n\t\t\t\tws_entity.setLanguage(Language_type0.Factory\n\t\t\t\t\t\t.fromValue(this.system.getSystemLang(\n\t\t\t\t\t\t\t\tmember.getTenantID()).getLangCode()));\n\t\t\t} else if (member.getLangID() == 11) {\n\t\t\t\tws_entity.setLanguage(Language_type0.fi);\n\t\t\t} else if (member.getLangID() == 12) {\n\t\t\t\tws_entity.setLanguage(Language_type0.pl);\n\t\t\t} else if (member.getLangID() == 13) {\n\t\t\t\tws_entity.setLanguage(Language_type0.zh_TW);\n\t\t\t} else if (member.getLangID() == 14) {\n\t\t\t\tws_entity.setLanguage(Language_type0.th);\n\t\t\t}\n\n\t\t\tif (entity.getModeID() == 1) {\n\t\t\t\tws_entity.setMemberMode(MemberMode_type0.Available);\n\t\t\t} else if (entity.getModeID() == 2) {\n\t\t\t\tws_entity.setMemberMode(MemberMode_type0.Away);\n\t\t\t} else if (entity.getModeID() == 3) {\n\t\t\t\tws_entity.setMemberMode(MemberMode_type0.DoNotDisturb);\n\t\t\t}\n\n\t\t\tif (entity.getMemberStatus() == 0) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.Offline);\n\t\t\t} else if (entity.getMemberStatus() == 1) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.Online);\n\t\t\t} else if (entity.getMemberStatus() == 2) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.Busy);\n\t\t\t} else if (entity.getMemberStatus() == 3) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.Ringing);\n\t\t\t} else if (entity.getMemberStatus() == 4) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.RingAccepted);\n\t\t\t} else if (entity.getMemberStatus() == 5) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.RingRejected);\n\t\t\t} else if (entity.getMemberStatus() == 6) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.RingNoAnswer);\n\t\t\t} else if (entity.getMemberStatus() == 7) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.Alerting);\n\t\t\t} else if (entity.getMemberStatus() == 8) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.AlertCancelled);\n\t\t\t} else if (entity.getMemberStatus() == 9) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.BusyInOwnRoom);\n\t\t\t} else if (entity.getMemberStatus() == 12) {\n\t\t\t\tws_entity.setMemberStatus(MemberStatus_type0.Busy); // WaitForConfirm\n\t\t\t}\n\n\t\t\tRoomMode_type0 roomMode = new RoomMode_type0();\n\t\t\troomMode.setIsLocked(entity.getRoomLocked() == 1);\n\t\t\troomMode.setHasPin(entity.getRoomPinned() == 1);\n\t\t\tif (entity.getRoomPIN() != null) {\n\t\t\t\troomMode.setRoomPIN(entity.getRoomPIN());\n\t\t\t}\n\t\t\tif (entity.getRoomKey() != null) {\n\t\t\t\tStringBuffer path = new StringBuffer();\n\t\t\t\tTenant tenant = this.tenantService.getTenant(entity\n\t\t\t\t\t\t.getTenantID());\n\t\t\t\t/*path.append(\"http://\").append(tenant.getTenantURL());\n\t\t\t\tpath.append(\"/flex.html?roomdirect.html&key=\");\n\t\t\t\tpath.append(entity.getRoomKey());*/\n\n\t\t\t\tString joinURL = this.room.getRoomURL(system, \"http\", \n\t\t\t\t\t\ttenant.getTenantURL(), entity.getRoomKey());\n\n\t\t\t\tpath.append(joinURL);\n\t\t\t\tif (tenantService.isTenantNotAllowingGuests()) {\n\t\t\t\t\tpath.append(\"&noguest\");\n\t\t\t\t}\n\n\t\t\t\troomMode.setRoomURL(path.toString());\n\t\t\t}\n\t\t\tws_entity.setRoomMode(roomMode);\n\n\t\t\tif (entity.getRoomStatus() == 0) {\n\t\t\t\tws_entity.setRoomStatus(RoomStatus_type0.Empty);\n\t\t\t} else if (entity.getRoomStatus() == 1) {\n\t\t\t\tws_entity.setRoomStatus(RoomStatus_type0.Occupied);\n\t\t\t} else if (entity.getRoomStatus() == 2) {\n\t\t\t\tws_entity.setRoomStatus(RoomStatus_type0.Full);\n\t\t\t}\n\n\t\t\tws_entity.setVideo(entity.getVideo() == 1);\n\t\t\tws_entity.setAudio(entity.getAudio() == 1);\n\t\t\t// ToDo - share?\n\t\t\tws_entity.setAppshare(true);\n\n\t\t\tresp.setEntity(ws_entity);\n\n\t\t\treturn resp;\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new GeneralFaultException(e.getMessage());\n\t\t}\n\t}", "public T setUserData(Object data)\n\t{\n\t\tuserData = data;\n\t\treturn (T) this;\n\t}", "private void getUserInfo() {\n\t}", "public T getRequestData();", "@Override\n\t\t\t\t\t\t\t\tpublic void onDataCallBack(int code, FamilyUserInfo data) {\n\t\t\t\t\t\t\t\t\tLog.e(\"NewFriendsAdapter\", \"LoadFamilyUserFromServer:\"+code);\n\t\t\t\t\t\t\t\t\tuploadMsg();\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onDataCallBack(int code, FamilyUserInfo data) {\n\t\t\t\t\t\t\t\t\tLog.e(\"NewFriendsAdapter\", \"LoadFamilyUserFromServer:\"+code);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tuploadMsg();\n\t\t\t\t\t\t\t\t}", "@Override\r\n\tpublic User editdata(User usr) {\n\t\treturn null;\r\n\t}", "private void getDataFromIntent() {\n\t\tfinal Intent intent = getIntent();\n\t\tdata.setmUsername(intent.getStringExtra(Constants.PARAM_USERNAME));\n\t\tdata.setmPassword(intent.getStringExtra(Constants.PARAM_PASSWORD));\n\t\tdata.setmHost(intent.getStringExtra(Constants.PARAM_HOST));\n\t\tdata.setmPort(intent.getIntExtra(Constants.PARAM_PORT, 389));\n\t\tdata.setmEncryption(intent.getIntExtra(Constants.PARAM_ENCRYPTION, 0));\n\t\tdata.setmRequestNewAccount((data.getmUsername() == null));\n\t\tdata.setmConfirmCredentials(intent.getBooleanExtra(Constants.PARAM_CONFIRMCREDENTIALS, false));\n\t}", "@Override\n\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\tSQLiteManager.getInstance().updateFamilyUserInfo(\n\t\t\t\t\t\tinfo.getUserID(),\n\t\t\t\t\t\tFamilyUserInfo._FAMILY_USER_NICK_NAME,\n\t\t\t\t\t\tinfo.getNickName(), true);\n\t\t\t\tSQLiteManager.getInstance().updateFamilyInfo(info.getUserID(),\n\t\t\t\t\t\tFamilyInfo._FAMILY_NICKNAME, info.getNickName(), true);\n\t\t\t}", "@Override\n\tpublic void analyzeData(String data) throws Exception {\n\t\tGson gson = new Gson();\n\t\tUserInfo user = gson.fromJson(data, UserInfo.class);\n\t\tNetConst.SESSIONID = user.getSession_id();\n\t\tNetConst.UPTOKEN = user.getImage_token();\n\t\tNetConst.IMTOKEN = user.getMessage_token();\n\t\tRongImUtils.getInstance().connect(NetConst.IMTOKEN);\n\t\tlisntenr.onBaseDataLoaded(user);\n\t}", "void setUserData(KingdomUser user, String path, Object value);", "public Object userDataParameters() {\n return this.userDataParameters;\n }", "private void remplirUtiliseData() {\n\t}", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "void saveUserData(User user);", "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 }", "@Override\n\tpublic void setUser(String sessionId, UserInfo userInfo) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"setUser\");\n//\t\tif (!isCloudChannelLive()) {\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n//\t\t\t\t\t\"User is not online\");\n//\t\t}\n\t\t\n\t\tUserPayload payload = new UserPayload();\n\t\t\n//\t\tUserInfo payload = new UserInfo();\n\t\tpayload.setCellPhone(userInfo.getCellPhone());\n\t\tpayload.setDisplayName(userInfo.getDisplayName());\n\t\tpayload.setEmail(userInfo.getEmail());\n\t\tpayload.setIdNumber(userInfo.getIdNumber());\n\t\t\n\t\t//user name cannot modified in cloud service\n//\t\tpayload.setUserName(userInfo.getUserName());\n\t\t\n\t\tUserSetRequest request = new UserSetRequest();\n\t\trequest.setSessionId(sessionId);\n\t\trequest.setPayload(payload);\n\t\ttry {\n\t\t\tcloudSecurityManager.setUser(request);\n\t\t\t\n\t\t\tUserInfo savedUserInfo = userInfoDao.getUserInfoByToken(sessionId);\n\t\t\tif (savedUserInfo != null) {\n\t\t\t\tsavedUserInfo.setCellPhone(userInfo.getCellPhone());\n\t\t\t\tsavedUserInfo.setDisplayName(userInfo.getDisplayName());\n\t\t\t\tsavedUserInfo.setEmail(userInfo.getEmail());\n\t\t\t\tsavedUserInfo.setIdNumber(userInfo.getIdNumber());\n\t\t\t\tuserInfoDao.saveUserInfo(savedUserInfo);\n\t\t\t}\n\t\t} catch (CloudException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new HFModuleException(e.getErrorCode(), e.getMessage());\n\t\t}\n\t\t\n//\t\tJSONObject req = new JSONObject();\n//\t\tJSONObject pl = new JSONObject();\n//\t\ttry {\n//\n//\t\t\tif (info.getDisplayName() != null)\n//\t\t\t\tpl.put(\"displayName\", info.getDisplayName());\n//\t\t\tif (info.getUserName() != null)\n//\t\t\t\tpl.put(\"userName\", info.getUserName());\n//\t\t\tif (info.getPassword() != null)\n//\t\t\t\tpl.put(\"password\", info.getPassword());\n//\t\t\tif (info.getCellPhone() != null)\n//\t\t\t\tpl.put(\"cellPhone\", info.getCellPhone());\n//\t\t\tif (info.getEmail() != null)\n//\t\t\t\tpl.put(\"email\", info.getEmail());\n//\t\t\tif (info.getIdNumber() != null)\n//\t\t\t\tpl.put(\"idNumber\", info.getIdNumber());\n//\n//\t\t\treq.put(\"CID\", 10221);\n//\t\t\treq.put(\"SID\", getsid());\n//\t\t\treq.put(\"PL\", pl);\n//\t\t\tString rsp = HttpProxy.reqByHttpPost(req.toString());\n//\n//\t\t\tJSONObject jo = new JSONObject(rsp);\n//\t\t\tif (jo.isNull(\"RC\")) {\n//\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_USER,\n//\t\t\t\t\t\t\"can not set user\");\n//\t\t\t}\n//\t\t\tif (jo.getInt(\"RC\") != 1) {\n//\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_USER,\n//\t\t\t\t\t\t\"can not set user\");\n//\t\t\t}\n//\n//\t\t} catch (JSONException e) {\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_USER,\n//\t\t\t\t\t\"can not set user\");\n//\t\t}\n\t}", "public User getUserData(String id);", "@Override\r\n\tpublic void SendInfo(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e( \"SendInfo:\" + _in_data);\r\n\t\ttry {\r\n\t\t\tuserInfo.StringToData(_in_data);\r\n\t\t\t\r\n\t\t\tString extendInfo = new StringBuilder()\r\n\t\t\t.append(\"gameId=\").append(platform.GetData(AttName.APP_ID))\r\n\t\t\t.append(\"&service=\").append(userInfo.GetData(AttName.SERVER_NAME))\r\n\t\t\t.append(\"&role=\").append(userInfo.GetData(AttName.ROLE_ID))\r\n\t\t\t.append(\"&grade=\").append(userInfo.GetData(AttName.ROLE_LEVEL)).toString();\r\n\t\t\tTypeSDKLogger.e( \"extendInfo:\" + extendInfo);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tTypeSDKLogger.e( \"上传用户信息:\" + e.getMessage());\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void SendInfo(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e(\"SendInfo:\" + _in_data);\r\n\t\ttry {\r\n\t\t\tuserInfo.StringToData(_in_data);\r\n\t\t\t\r\n\t\t\tString extendInfo = new StringBuilder()\r\n\t\t\t.append(\"gameId=\").append(platform.GetData(AttName.APP_ID))\r\n\t\t\t.append(\"&service=\").append(userInfo.GetData(AttName.SERVER_NAME))\r\n\t\t\t.append(\"&role=\").append(userInfo.GetData(AttName.ROLE_ID))\r\n\t\t\t.append(\"&grade=\").append(userInfo.GetData(AttName.ROLE_LEVEL)).toString();\r\n\t\t\tTypeSDKLogger.e(\"extendInfo:\" + extendInfo);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tTypeSDKLogger.e(\"上传用户信息:\" + e.getMessage());\r\n\t\t}\r\n\r\n\t}", "public void receiveData(Object[] incomingData) {\n //For each bit of incoming data, parse into locally defined objects.\n for(Object object : incomingData) {\n GetUsersFriendsByUUIDQuery.GetUserFriendsByUUID user = (GetUsersFriendsByUUIDQuery.GetUserFriendsByUUID)object;\n\n Post[] posts = new Post[user.posts.size()];\n\n //Parse posts\n for(int i = 0; i < user.posts().size(); i++) {\n posts[i] = new Post(user.posts().get(i).title(), user.posts().get(i).content());\n }\n //Create new user\n users.add(new User(user.userName(), user.firstName(), user.lastName(), user.description(), user.id(), posts));\n }\n\n //Apply the data to the list view\n ArrayAdapter<User> arrayAdapter = new ArrayAdapter<User>(\n this,\n android.R.layout.simple_list_item_1,\n users);\n //Update the ListView\n listView.setAdapter(arrayAdapter);\n }", "@Override\n public void onPromptAndCollectUserInformationResponse(PromptAndCollectUserInformationResponse arg0) {\n\n }", "@Override\n\tpublic void doUser(UserInfo ui) {\n\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (resultCode != -1 && resultCode !=0) {\n\t\t\tappState.userID = data.getStringExtra(\"uid\");\n\t\t\tappState.userName = data.getStringExtra(\"name\");\n\t\t\tappState.note = data.getStringExtra(\"note\");\t\n\t\t\tif (\"none\".equals(appState.userID)) {\n\t\t\t\tnew AlertDialog.Builder(getActivity())\n\t\t\t\t.setTitle(\"No user found\")\n\t\t\t\t.setMessage(\"There's no user found in your device, please ADD one in User page.\")\n//\t\t\t\t.setNegativeButton(\"Cancel\",\n//\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n//\t\t\t\t\t\t\t@Override\n//\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n//\t\t\t\t\t\t\t\t//this.s = \"Negative\";\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t})\n\t\t\t\t.setPositiveButton(\"Confirm\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\t\t\t\t}\n\t\t\t\t}).show();\n\t\t\t} else {\n\t\t\t\ttv_user1_dianzichen.setTextColor(Color.BLACK);\n\t\t\t\ttv_user2_dianzichen.setTextColor(Color.BLACK);\n\t\t\t\t\n\t\t\t\tupdateUI();\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Pure\n\tpublic Object getUserDataAt(int index) {\n\t\tif (this.userData == null) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\treturn this.userData.get(index);\n\t}", "private void getUserDetailApi() {\n RetrofitService.getOtpData(new Dialog(mContext), retrofitApiClient.getUserDetail(strUserId), new WebResponse() {\n @Override\n public void onResponseSuccess(Response<?> result) {\n UserDataMainModal mainModal = (UserDataMainModal) result.body();\n if (mainModal != null) {\n AppPreference.setBooleanPreference(mContext, Constant.IS_PROFILE_UPDATE, true);\n Gson gson = new GsonBuilder().setLenient().create();\n String data = gson.toJson(mainModal);\n AppPreference.setStringPreference(mContext, Constant.USER_DATA, data);\n User.setUser(mainModal);\n }\n }\n\n @Override\n public void onResponseFailed(String error) {\n Alerts.show(mContext, error);\n }\n });\n }", "DataHandler getDataHandler();", "@POST(\"updateUserData\")\n Call<GeneralResponse> updateUserData(@HeaderMap Map<String, String> headers, @Body Map<String, User> user);", "private void getUserData() {\n TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient();\n AccountService statusesService = twitterApiClient.getAccountService();\n Call<User> call = statusesService.verifyCredentials(true, true, true);\n call.enqueue(new Callback<User>() {\n @Override\n public void success(Result<User> userResult) {\n //Do something with result\n\n //parse the response\n String name = userResult.data.name;\n String email = userResult.data.email;\n String description = userResult.data.description;\n String pictureUrl = userResult.data.profileImageUrl;\n String bannerUrl = userResult.data.profileBannerUrl;\n String language = userResult.data.lang;\n long id = userResult.data.id;\n\n }\n\n public void failure(TwitterException exception) {\n //Do something on failure\n }\n });\n }", "public static UserData parseT4(String in){\n Scanner s = new Scanner(in);\n UserData out = new UserData();\n String firstLine = s.next();\n if(!firstLine.equals(\"d\")){\n //Means the request was a request to add, if the above was true\n // then a null userData will be returned just\n out.userID = Integer.parseInt(firstLine);\n out.userName = s.next();\n }\n return out;\n }", "void updateUserById(String username, User userData);", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data){\n\n\n if (requestCode == SUB_ACTIVITY_CREATE_USER && resultCode == Activity.RESULT_OK){\n Bundle extras = data.getExtras();\n if (extras != null){\n String name = extras.getString(User.USER_NAME);\n boolean gender = extras.getBoolean(User.USER_GENDER);\n\n user = new User(name,gender);\n updateUserInterface();\n }\n }\n\n if(requestCode == SUB_ACTIVITY_LEARN && resultCode == RESULT_OK){\n if(data.hasExtra(\"skillLevel\")){\n //TODO implement what to do with returned data\n skillPointInteger = data.getExtras().getInt(\"skillLevel\");\n user.skillPoints = skillPointInteger;\n Toast.makeText(this,\"New Skill Level: \"+String.valueOf(skillPointInteger),Toast.LENGTH_SHORT).show();\n\n skillPoint.setText(String.valueOf(skillPointInteger));\n }\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tCursor result = null;\n\t\t\t\tUserEmotion rValue = null;\n\n\t\t\t\tString projection[] = dataContract.USER_COLUMNS;\n\t\t\t\tString selection = dataContract.Col._ID + \" LIKE ? AND \"\n\t\t\t\t\t\t+ dataContract.Col._OWNERID + \" LIKE ? \";\n\t\t\t\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tresult = mDB.query(dataContract.TABLE_USER, projection,\n\t\t\t\t\t\t\tselection, args, null, null, null);\n\n\t\t\t\t\tLog.i(tag, \"# of row: \" + result.getCount());\n\t\t\t\t\tif (result != null && result.moveToFirst()) {\n\t\t\t\t\t\trValue = getUserDataFromCursor(result);\n\t\t\t\t\t\tresult.close();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (rValue == null) {\n\t\t\t\t\t\tContentValues values = new ContentValues();\n\n\t\t\t\t\t\tvalues.put(dataContract.Col._ID, giftId);\n\t\t\t\t\t\tvalues.put(dataContract.Col._OWNERID, userId);\n\t\t\t\t\t\tvalues.put(dataContract.Col._TOUCHED, 0);\n\t\t\t\t\t\tvalues.put(dataContract.Col._INPROP, 0);\n\t\t\t\t\t\tvalues.put(dataContract.Col._OBSCENE, 0);\n\t\t\t\t\t\tlong row = mDB.insert(dataContract.TABLE_USER, null, values);\n\n\t\t\t\t\t\tresult = mDB.query(dataContract.TABLE_USER, projection,\n\t\t\t\t\t\t\t\tselection, args, null, null, null);\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.i(tag, \"# of row: \" + row + \" query result: \" + result.getCount());\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (result != null && result.moveToFirst()) {\n\t\t\t\t\t\t\trValue = getUserDataFromCursor(result);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tMessage msg = Message.obtain(handler,\n\t\t\t\t\t\t\tPotlatchMsg.QUERY_USERDATA.getVal());\n\t\t\t\t\tBundle b = new Bundle();\n\t\t\t\t\tb.putSerializable(PotlatchConst.query_user_data,\n\t\t\t\t\t\t\trValue);\n\t\t\t\t\tmsg.setData(b);\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\tresult.close();\n\t\t\t\t}\n\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tLog.d(tag, e.getMessage());\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\tprotected JSONObject doInBackground(String... args) {\n\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n\n\t\t\tuserID = args[2];\n\t\t\tparams.add(new BasicNameValuePair(\"user_id\", \"\" + userID));\n\t\t\tparams.add(new BasicNameValuePair(\"activity\", args[1]));\n\n\t\t\tJSONObject json = new JSONParser().makeHttpRequest2(args[0],\n\t\t\t\t\t\"POST\", params);\n\t\t\tLog.d(\"get user response\", \"\" + json);\n\t\t\treturn json;\n\t\t}", "@PostMapping(\"/user-data\")\n @Timed\n public ResponseEntity<UserData> createUserData(@Valid @RequestBody UserData userData) throws URISyntaxException {\n log.debug(\"REST request to save UserData : {}\", userData);\n if (userData.getId() != null) {\n throw new BadRequestAlertException(\"A new userData cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n UserData result = userDataRepository.save(userData);\n return ResponseEntity.created(new URI(\"/api/user-data/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onDataCallBack(int code, FamilyInfo data) {\n\t\t\t\t\t\t\t\tLog.e(\"NewFriendsAdapter\", \"LoadFamilysFromServer:\"+code);\n\t\t\t\t\t\t\t\tif(code == 0){\n\t\t\t\t\t\t\t\t\tString body = RequestString.getFamilyUsers(SysConfig.dtoken, msg.getDeviceFamilyId());\n\t\t\t\t\t\t\t\t\tLoadAllFamilyUsersFromServer allFamilyUsers = new LoadAllFamilyUsersFromServer(body);\n\t\t\t\t\t\t\t\t\t allFamilyUsers.getAllUserData(new allUserDataCallBack() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onDataCallBack(int code, List<FamilyUserInfo> data) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tLog.e(\"NewFriendsAdapter\", \"LoadAllFamilyUsersFromServer:\"+code);\n\t\t\t\t\t\t\t\t\t\t\tuploadMsg();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void getUserData()\n\t{\n\t\tint count; //Loop counter\n\t\tString pathname = filename;\n\t\t\n\t\tString div = \",\"; //Used to divide info.\n\t\tString [] userArray; //To hold divided info.\n\t\t\n\t\ttry {\n FileReader reader = new FileReader(pathname);\n BufferedReader bufferedReader = new BufferedReader(reader);\n \n String line;\n \n //While getting each line of the data file, BUT stops when USER data found.\n //Loop through each line and determine which user data to choose.\n while ((line = bufferedReader.readLine()) != null) {\n // System.out.println(\"User Data in file: \" + line);\n \n System.out.println(\"Checking User name in line of data ...\");\n \n //This divides the info in the data file into an array.\n userArray = line.split(div); \n \n \n if (User.equals(userArray[0]))\n \t{\n \t\tSystem.out.println(\"User Found: \" + User);\n \t\tuser_line = line;\n \t\t//Assigning data to class variables.\n \t\tUserPassword = userArray[1].trim(); //Assigning the password.\n \t\tDevice_ID = Integer.parseInt(userArray[2].trim()); //Assigning device ID.\n \t\tisLost = (Integer.parseInt(userArray[3].trim()) == 0) ? false : true;\n \t\t\n \t\t//This reads out information.\n \t\tfor (count = 0; count < userArray.length; count++)\n {\n \t\t\tSystem.out.println(\"INFO: \" + userArray[count]);\n }\n \t\tbreak;\n \t}\n System.out.println(\"========================================\");\n }\n reader.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 10 && resultCode == Activity.RESULT_OK) {\n //Bundle extras = data.getExtras();\n //if (extras != null) {\n // String name = extras.getString(User.USER_NAME);\n updateUI();\n }\n }", "private void setUserDataFromJson(JSONObject jsonObject) { \n\t\tlogger.debug(\"creating UserData Object from json file \" + fileName);\n\t\t/* \n\t\t * JSON Structure\n\t\t * {\n\t\t * \t\"objectStatus\":\"fail\",\n\t\t * \t\"domain\":\"null\",\n\t\t * \t\"customer\":\"null\",\n\t\t * \t\"sn_id\":\"CC\",\n\t\t * \t\"user_id\":\"9\",\n\t\t * \t\"userName\":\"Cortal_Consors\",\n\t\t * \t\"nickName\":\"Cortal_Consors\",\n\t\t * \t\"postingsCount\":\"0\",\n\t\t * \t\"favoritesCount\":\"0\",\n\t\t * \t\"friends\":\"0\",\n\t\t * \t\"follower\":\"0\",\n\t\t * \t\"userLang\":null,\n\t\t * \t\"listsAndGroupsCount\":\"0\",\n\t\t * \t\"geoLocation\":\"\"\n\t\t * }\n\t\t */\n\t\tif (jsonObject.get(\"domain\") != null) {\n\t\t\tlogger.trace(\" domain\\t\"+jsonObject.get(\"domain\").toString());\n\t\t\tuData.setDomain((String) jsonObject.get(\"domain\"));\n\t\t}\n\t\tif (jsonObject.get(\"customer\") != null) {\n\t\t\tlogger.trace(\" customer\\t\"+jsonObject.get(\"customer\").toString());\n\t\t\tuData.setCustomer((String) jsonObject.get(\"customer\"));\n\t\t}\n\t\tif (jsonObject.get(\"objectStatus\") != null) {\n\t\t\tlogger.trace(\" objectStatus\\t\"+jsonObject.get(\"objectStatus\").toString());\n\t\t\tuData.setObjectStatus((String) jsonObject.get(\"objectStatus\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"sn_id\") != null) {\n\t\t\tlogger.trace(\" sn_id\\t\"+jsonObject.get(\"sn_id\").toString());\n\t\t\tuData.setSnId((String) jsonObject.get(\"sn_id\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"id\") == null) {\n\t\t\tlogger.trace(\" user_id\\t\"+jsonObject.get(\"user_id\").toString());\n\t\t\tuData.setId((String) jsonObject.get(\"user_id\"));\n\t\t} else {\n\t\t\tlogger.trace(\" id\\t\"+jsonObject.get(\"id\").toString());\n\t\t\tuData.setId((String) jsonObject.get(\"id\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"userName\") != null) {\n\t\t\tlogger.trace(\" userName\\t\"+jsonObject.get(\"userName\").toString());\n\t\t\tuData.setUserName((String) jsonObject.get(\"userName\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"nickName\") != null) {\n\t\t\tlogger.trace(\" nickName\\t\"+jsonObject.get(\"nickName\").toString());\n\t\t\tuData.setScreenName((String) jsonObject.get(\"nickName\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"userLang\") != null) {\n\t\t\tlogger.trace(\" userLang\\t\"+jsonObject.get(\"userLang\").hashCode());\n\t\t\tuData.setLang((String) jsonObject.get(\"userLang\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"follower\") != null) {\n\t\t\tlogger.trace(\" follower\\t\"+Long.parseLong(jsonObject.get(\"follower\").toString()));\n\t\t\tuData.setFollowersCount(Long.parseLong(jsonObject.get(\"follower\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"friends\") != null) {\n\t\t\tlogger.trace(\" friends\\t\"+Long.parseLong(jsonObject.get(\"friends\").toString()));\n\t\t\tuData.setFriendsCount(Long.parseLong(jsonObject.get(\"friends\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"postingsCount\") != null) {\n\t\t\tlogger.trace(\" postingsCount\\t\"+Long.parseLong(jsonObject.get(\"postingsCount\").toString()));\n\t\t\tuData.setPostingsCount(Long.parseLong(jsonObject.get(\"postingsCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"favoritesCount\") != null) {\n\t\t\tlogger.trace(\" favoritesCount\\t\"+Long.parseLong(jsonObject.get(\"favoritesCount\").toString()));\n\t\t\tuData.setFavoritesCount(Long.parseLong(jsonObject.get(\"favoritesCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"listsAndGroupsCount\") != null) {\n\t\t\tlogger.trace(\" listsAndGroupsCount\\t\"+Long.parseLong(jsonObject.get(\"listsAndGroupsCount\").toString()));\n\t\t\tuData.setListsAndGroupsCount(Long.parseLong(jsonObject.get(\"listsAndGroupsCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"geoLocation\") != null) {\n\t\t\tlogger.trace(\" geoLocation\\t\"+jsonObject.get(\"geoLocation\"));\n\t\t\tuData.setGeoLocation((String) jsonObject.get(\"geoLocation\"));\n\t\t}\n\t}", "protected void displayReceivedData(UserInfo userInfo)\n {\n\n }", "public final void testGetUserData() {\n assertEquals(hello.userData, n.getUserData());\n }", "public abstract String getUser() throws DataServiceException;", "public void updateUserData(String login, Map<String, String> userData) throws EOSForbiddenException,\n\t\t\tEOSUnauthorizedException;", "@Override\n public void fromWXRegister(Map<String, Object> data, String token, final IBaseModel.OnCallbackListener listener) {\n RequestBody body = RequestBody.create(MediaType.parse(\"application/json;charset=UTF-8\"),\n GsonUtils.parseToJson(data));\n final Request request = new Request.Builder()\n .url(\"URL\")\n .header(\"Authorization\", token)\n .post(body)//默认就是GET请求,可以不写\n .build();\n HttpProvider.getOkHttpClient().newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.d(\"onFailure: \", e.getMessage());\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n if (response.isSuccessful()) {\n delayedExecuteCallback(response.body().string(), new TypeToken<ResponseEntity<UserInfoEntity>>() {\n }.getType(), listener);\n } else {\n delayedExecuteCallback(null, new TypeToken<ResponseEntity<UserInfoEntity>>() {\n }.getType(), listener);\n }\n }\n });\n\n /* HttpProvider.doPost(URL, data, new HttpProvider.ResponseCallback() {\n @Override\n public void callback(String responseText) {\n delayedExecuteCallback(responseText, new TypeToken<ResponseEntity<UserInfoEntity>>() {\n }.getType(), listener);\n }\n });*/\n }", "private void getFriendData() {\n //Create our query\n final GetUsersFriendsByUUIDQuery getFriends = GetUsersFriendsByUUIDQuery.builder()\n .uuid(SharedPreferencesHelper.getStringValue(\"uuid\"))\n .build();\n\n //Make the call.\n apolloClient\n .query(getFriends)\n .enqueue(\n new ApolloCall.Callback<GetUsersFriendsByUUIDQuery.Data>() {\n MainActivity mainActivity = MainActivity.this;\n\n @Override\n public void onResponse(@NotNull Response<GetUsersFriendsByUUIDQuery.Data> response) {\n Log.d(\"TEST\", \"Got a friend uuid response from the API.\");\n //Get the received data into our models\n //Get all of our data\n Object[] data = response.getData().GetUserFriendsByUUID().toArray();\n\n //Send this back to the main thread.\n mainActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mainActivity.receiveData(data);\n }\n });\n }\n\n @Override\n public void onFailure(@NotNull ApolloException e) {\n mainActivity.runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(mainActivity, \"An error has occurred!\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n );\n }", "public Object \n\tgetData(\n\t\t\tString key) \n\t{\n\t\ttry{\n\t\t\tthis_mon.enter();\n\n\t\t\tif (user_data == null) return null;\n\n\t\t\treturn user_data.get(key);\n\n\t\t}finally{\n\n\t\t\tthis_mon.exit();\n\t\t}\n\t}", "protected void doHandle(HttpServletRequest rq, HttpServletResponse rspn) throws ServletException, IOException {\n\t\tSystem.out.println(\"doHandle 메서드 호출\");\n\t\trq.setCharacterEncoding(\"utf-8\");\n\t\tString user_id = rq.getParameter(\"user_id\");\n\t\tString user_pw = rq.getParameter(\"user_pw\");\n\t\tSystem.out.println(\"아이디: \"+user_id);\n\t\tSystem.out.println(\"비밀번호: \"+user_pw);\n\t}", "public boolean addUserData(Object userData) {\n\t\tif (this.userData == null) {\n\t\t\tthis.userData = new ArrayList<>();\n\t\t}\n\t\treturn this.userData.add(userData);\n\t}", "public void saveUserData(UserData userData){\n userDataRepository.save(userData);\n }", "@Override\n\t\t\tpublic void onDataCallBack(String request,int code) {\n\t\t\t\tString body = null ;\n\t\t\t\tLog.e(\"NewFriendsAdapter\", \"UploadData2Server:\"+request+\":\"+code);\n\t\t\t\tif(code == 0){\n\t\t\t\t\tif(msg.getAction()== MsgKey.BEINVITEED || msg.getAction() == MsgKey.BEINVITEEDBYDV){\n\t\t\t\t\t\t body = RequestString.getFamilyIfo(SysConfig.dtoken, msg.getDeviceFamilyId());\n\t\t\t\t\t\t LoadFamilysFromServer family = new LoadFamilysFromServer(body);\n\t\t\t\t\t\t family.getFamilyData(new familyInfoDataCallBack() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onDataCallBack(int code, FamilyInfo data) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tLog.e(\"NewFriendsAdapter\", \"LoadFamilysFromServer:\"+code);\n\t\t\t\t\t\t\t\tif(code == 0){\n\t\t\t\t\t\t\t\t\tString body = RequestString.getFamilyUsers(SysConfig.dtoken, msg.getDeviceFamilyId());\n\t\t\t\t\t\t\t\t\tLoadAllFamilyUsersFromServer allFamilyUsers = new LoadAllFamilyUsersFromServer(body);\n\t\t\t\t\t\t\t\t\t allFamilyUsers.getAllUserData(new allUserDataCallBack() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onDataCallBack(int code, List<FamilyUserInfo> data) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tLog.e(\"NewFriendsAdapter\", \"LoadAllFamilyUsersFromServer:\"+code);\n\t\t\t\t\t\t\t\t\t\t\tuploadMsg();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\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\t \n\t\t\t\t\t\t \n\t\t\t\t\t}else if(msg.getAction() == MsgKey.BEAPPLYED){\n\t\t\t\t\t\t body = RequestString.getFamilyUserInfo(SysConfig.dtoken, msg.getDeviceFamilyId(), msg.getUserId());\n\t\t\t\t\t\t LoadFamilyUserFromServer familyUser = new LoadFamilyUserFromServer(body);\n\t\t\t\t\t\t\tfamilyUser.getFamilyUserData(new familyUserDataCallBack() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onDataCallBack(int code, FamilyUserInfo data) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tLog.e(\"NewFriendsAdapter\", \"LoadFamilyUserFromServer:\"+code);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tuploadMsg();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t \t}else if(msg.getAction() == MsgKey.BELINK){\n\t\t\t \t\t body = RequestString.getFamilyUserInfo(SysConfig.dtoken, msg.getDeviceFamilyId(), msg.getUserId());\n\t\t\t \t\t LoadFamilyUserFromServer familyUser = new LoadFamilyUserFromServer(body);\n\t\t\t\t\t\t\tfamilyUser.getFamilyUserData(new familyUserDataCallBack() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onDataCallBack(int code, FamilyUserInfo data) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tLog.e(\"NewFriendsAdapter\", \"LoadFamilyUserFromServer:\"+code);\n\t\t\t\t\t\t\t\t\tuploadMsg();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t \t}else if(msg.getAction() == MsgKey.BEMANAGER){\n\t\t\t\t\t\tSQLiteManager.getInstance().updateFamilyAdmin(msg.getDeviceFamilyId(), msg.getManagerId(), msg.getUserId(),true);\n\t\t\t\t\t\tuploadMsg();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic UserFormData loggedIn(final UserFormData userData) {\n\t\tfinal Date now = new Date();\n\t\tLOG.info(new StringBuilder().append(\"User \" + userData.getEmail()).append(\" (login : \" + userData.getLogin())\n\t\t\t\t.append(\") juste logged in, updating stats data\").toString());\n\t\tSQL.insert(SQLs.USER_UPDATE_LAST_LOGIN, userData, new NVPair(\"currentDate\", now));\n\n\t\tthis.dataCache.clearCache(userData.getUserId().getValue());\n\t\treturn userData;\n\t}", "protected abstract ContentValues getDataFromInput();", "public UserData(int userDataId, String firstName, String lastName, String patronymic, String email, String phone, Tariff tariff, BigDecimal balance, int traffic, String photo, int userId) {\n this.userDataId = userDataId;\n this.firstName = firstName;\n this.lastName = lastName;\n this.patronymic = patronymic;\n this.email = email;\n this.phone = phone;\n this.tariff = tariff;\n this.balance = balance;\n this.traffic = traffic;\n this.photo = photo;\n this.userId = userId;\n }", "private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onDataCallBack(int code, List<FamilyUserInfo> data) {\n\t\t\t\t\t\t\t\t\t\t\tLog.e(\"NewFriendsAdapter\", \"LoadAllFamilyUsersFromServer:\"+code);\n\t\t\t\t\t\t\t\t\t\t\tuploadMsg();\n\t\t\t\t\t\t\t\t\t\t}", "public void loadAllUserData(){\n\n }", "@Override\n\tprotected Object handleUserinfoEndpointRequest(String requestId) {\n\t\tif(!receivedRefreshRequest) {\n\t\t\t//we don't want the test to be marked as completed if the client sends a userinfo\n\t\t\t//request before sending a refresh request\n\t\t\t//this is not the userinfo request we are looking for\n\t\t\treceivedUserinfoRequest = false;\n\t\t}\n\t\treturn super.handleUserinfoEndpointRequest(requestId);\n\t}", "public UserData prepareUserData() throws IOException {\n\n String userName = dataGenerator.prepareUserName();\n String firstName = dataGenerator.prepareFirstName();\n String lastName = dataGenerator.prepareLastName() ;\n String email = dataGenerator.prepareEmail();\n String password = dataGenerator.preparePassword();\n\n return new UserData(userName,firstName,lastName,email,password);\n }", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "@Override\r\n\tpublic Node processEvent(Document doc, HttpServletRequest request) {\r\n\t\t//precheck\r\n\t\tElement resp = doc.createElement(\"user\");\r\n\t\tint id_user = -1;\r\n\t\ttry{\r\n\t\t\tid_user = Integer.parseInt(request.getParameter(\"id_user\"));\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex){\r\n\t\t\treturn createDefaultResponse(doc, \"user\", \"status\" , \"ERR\" , \"message\", \"Wrong user id\");\r\n\t\t}\r\n\t\tDBUsers dbu = new DBUsers();\r\n\t\tVector v = dbu.executeQuery(\"id_user = \"+id_user);\r\n\t\tif(v == null){\r\n\t\t\treturn createDefaultResponse(doc, \"user\", \"status\" , \"ERR\" , \"message\", \"Wrong user id\");\r\n\t\t}\r\n\t\tdbu = (DBUsers) v.iterator().next();\r\n\t\r\n\r\n\t\tString name = request.getParameter(\"name\");\r\n\t\tif(name != null){\r\n\t\t\tdbu.set(\"name\", name);\r\n\t\t}\r\n\t\t//check attributes\r\n\t\t/*if(name == null || email == null){\r\n\t\t\treturn createDefaultResponse(doc, \"user\", \"status\" , \"ERR\" , \"message\", \"Request parameters missing\");\r\n\t\t}\r\n\t\t\r\n\t\tString ee = request.getAttribute(\"\");\r\n\t\t*/\r\n\r\n\t\tif(dbu.write()){\r\n\t\t\treturn createDefaultResponse(doc, \"user\", \"status\" , \"OK\" , \"message\", \"Success\");\r\n\t\t}else{\r\n\t\t\treturn createDefaultResponse(doc, \"user\", \"status\" , \"ERR\" , \"message\", \"Database connection error\");\r\n\t\t}\r\n\r\n\t}", "void onDataLoaded(int requestId, Object data);", "@Override\r\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {\n\t\tString token = CookieUtils.getCookieValue(request, \"token\");\r\n\t\tif (token==\"\"||token==null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tE3Result result = tokenService.getUserByToken(token);\r\n\t\tif (result.getStatus()!=200) {\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\t}\r\n\t\tTbUser user=(TbUser) result.getData();\r\n\t\trequest.setAttribute(\"user\", user);\r\n\t\treturn true;\t\r\n\t}", "private void getIncomingData() {\n Bundle bundle = getIntent().getExtras();\n if (bundle.containsKey(\"DOCTOR_ID\")\n && bundle.containsKey(\"DOCTOR_NAME\")\n && bundle.containsKey(\"CLINIC_ID\")\n && bundle.containsKey(\"CLINIC_NAME\")\n && bundle.containsKey(\"CLINIC_LATITUDE\")\n && bundle.containsKey(\"CLINIC_LONGITUDE\")\n && bundle.containsKey(\"CLINIC_ADDRESS\")) {\n DOCTOR_ID = bundle.getString(\"DOCTOR_ID\");\n DOCTOR_NAME = bundle.getString(\"DOCTOR_NAME\");\n CLINIC_ID = bundle.getString(\"CLINIC_ID\");\n CLINIC_NAME = bundle.getString(\"CLINIC_NAME\");\n CLINIC_LATITUDE = bundle.getDouble(\"CLINIC_LATITUDE\");\n CLINIC_LONGITUDE = bundle.getDouble(\"CLINIC_LONGITUDE\");\n CLINIC_ADDRESS = bundle.getString(\"CLINIC_ADDRESS\");\n\n if (DOCTOR_NAME != null) {\n txtDoctorName.setText(DOCTOR_NAME);\n }\n\n if (CLINIC_NAME != null) {\n txtClinicName.setText(CLINIC_NAME);\n }\n\n if (CLINIC_ADDRESS != null) {\n txtClinicAddress.setText(CLINIC_ADDRESS);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Failed to get required info....\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "public void setUserDataAt(int index, Object data) {\n\t\tif (this.userData == null) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\tthis.userData.set(index, data);\n\t}" ]
[ "0.6943967", "0.6830913", "0.67816854", "0.6777588", "0.67070735", "0.6691469", "0.6678111", "0.66084296", "0.6600654", "0.6585331", "0.6565394", "0.65419877", "0.6534018", "0.64528376", "0.6418601", "0.64148813", "0.63856757", "0.63221455", "0.62599844", "0.6199036", "0.61836785", "0.6126288", "0.6108729", "0.60963863", "0.60947704", "0.60764736", "0.59816384", "0.5978527", "0.59502876", "0.59240294", "0.5913323", "0.5871138", "0.5871138", "0.58547956", "0.5850435", "0.5850165", "0.584941", "0.5761606", "0.5750956", "0.57434213", "0.57331747", "0.5730929", "0.5706164", "0.56879306", "0.56876093", "0.5674715", "0.56489223", "0.5645673", "0.56411874", "0.5636843", "0.5627493", "0.5626322", "0.56052786", "0.55967975", "0.55957466", "0.55846244", "0.5571724", "0.5567939", "0.5540623", "0.5528441", "0.5527682", "0.55159795", "0.55130345", "0.5505275", "0.5502456", "0.5500748", "0.54923934", "0.5490773", "0.5490479", "0.5490424", "0.54879975", "0.54708904", "0.54621357", "0.54594076", "0.5452879", "0.5451949", "0.5439074", "0.5434509", "0.54333735", "0.54257655", "0.5417931", "0.5417486", "0.54034275", "0.53971946", "0.53903216", "0.53881043", "0.5386785", "0.53865844", "0.5379403", "0.5374952", "0.53667593", "0.5359884", "0.53548574", "0.53524405", "0.53490365", "0.53309864", "0.5319146", "0.5315965", "0.5311549", "0.5311336" ]
0.67189753
4
handles 'create new document' request
public Message handleCreate(Message createRequest) { Message response = new Message(Message.GENERIC_ERROR); int SectionNumbers = createRequest.getSectionNumbers(); String DocumentName = createRequest.getDocumentName(); String owner = createRequest.getUserName(); // case: clash in register if (controlServer.containsDocumentKey(DocumentName)) { response.setId(Message.INVALID_DOCNAME); } // case: no clash in register else{ DocumentData data = new DocumentData(DocumentName,owner,SectionNumbers); Document nuovoDocumento = new Document(data); // insert document into register controlServer.addDocument(DocumentName,nuovoDocumento); // update relative userData UserData toMod = controlServer.getUserData(owner); toMod.addDocument(DocumentName); controlServer.replaceUser(owner,toMod); // sends response to client response.setUserData(new UserData(toMod)); response.setDocumentName(DocumentName); response.setSectionNumbers(SectionNumbers); response.setId(Message.UPDATE_UD); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newDocument();", "Documento createDocumento();", "@PostMapping(\"/documents\")\r\n\tpublic ResponseEntity<String> create(String content) {\r\n\t\tString docId = this.documentHandler.createDocument(content);\r\n\t\tHttpHeaders headers = new HttpHeaders();\r\n\t\theaders.setContentType(MediaType.TEXT_PLAIN);\r\n\t\theaders.setAcceptCharset(Collections.singletonList(StandardCharsets.US_ASCII));\r\n\t\theaders.setContentLength(docId.length());\r\n\t\treturn new ResponseEntity<String>(docId, headers, HttpStatus.CREATED);\r\n\t}", "public RequestedDocument addRequestedDocument(AddRequestedDocumentCommand aCommand);", "public static opCode createDocument(String name, int nsection)\n {\n Operation request = new Operation(username);\n request.setPassword(password);\n request.setCode(opCode.CREATE);\n\n request.setFilename(name);\n request.setSection(nsection);\n\n sendReq(clientSocketChannel,request);\n\n return getAnswer();\n }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "@PostMapping(\"/document-entities\")\n public ResponseEntity<DocumentEntityDTO> createDocumentEntity(@Valid @RequestBody DocumentEntityDTO documentEntityDTO) throws URISyntaxException {\n log.debug(\"REST request to save DocumentEntity : {}\", documentEntityDTO);\n if (documentEntityDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new documentEntity cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DocumentEntityDTO result = documentEntityService.save(documentEntityDTO);\n return ResponseEntity.created(new URI(\"/api/document-entities/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@RequestMapping(value = \"/add-document\", method = RequestMethod.POST)\n public String addOwnership(@Valid @ModelAttribute Document document, ModelMap modelMap){\n documentService.addDocument(document);\n List<Document> documents= documentService.retrieveAllDocuments(document.getEntity().getId());\n modelMap.addAttribute(\"documents\", documents);\n modelMap.addAttribute(\"entityId\", document.getEntity().getId());\n return \"documents\";\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "protected void createNewDocumentNote(NoteData newNote) {\n /**\n * get data from the server about tags\n */\n String url = globalVariable.getConfigurationData().getServerURL()\n + globalVariable.getConfigurationData().getApplicationInfixURL()\n + globalVariable.getConfigurationData().getRestDocumentAddNotesURL();\n Log.i(LOG_TAG, \"REST - create new doc notes - call: \" + url);\n\n String postBody = RESTUtils.getJSON(newNote);\n\n AppCompatActivity activity = (AppCompatActivity)getActivity();\n RESTUtils.executePOSTNoteCreationRequest(url, postBody, null, \"\", globalVariable, DocumentTaggingActivity.PROPERTY_BAG_KEY, activity);\n\n // mDataArray = TagItemDataHelper.getAlphabetData();\n }", "@Override\n\tpublic boolean create(Document obj) {\n\t\tSystem.out.println(obj);\n\t\tString sql = \"INSERT INTO public.documents( nom, etape_id, process_id)\\r\\n\"\n\t\t\t\t+ \"\tVALUES ('\" + obj.getNom() + \"', \" + obj.getId_etape()+ \" , \"+obj.getId_process()+\");\";\n\t\ttry {\n\t\t\tSystem.out.println(sql);\n\t\t\tPreparedStatement statement = this.connect.prepareStatement(sql);\n\t\t\tstatement.execute();\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "protected static void addDocument(CloseableHttpClient httpclient, String type, String document) throws Exception {\n HttpPost httpPut = new HttpPost(urlBuilder.getIndexRoot() + \"/\" + type);\n StringEntity inputData = new StringEntity(document);\n inputData.setContentType(CONTENTTYPE_JSON);\n httpPut.addHeader(HEADER_ACCEPT, CONTENTTYPE_JSON);\n httpPut.addHeader(HEADER_CONTENTTYPE, CONTENTTYPE_JSON);\n httpPut.setEntity(inputData);\n CloseableHttpResponse dataResponse = httpclient.execute(httpPut);\n if (dataResponse.getStatusLine().getStatusCode() != EL_REST_RESPONSE_CREATED) {\n System.out.println(\"Error response body:\");\n System.out.println(responseAsString(dataResponse));\n }\n Assert.assertEquals(dataResponse.getStatusLine().getStatusCode(), EL_REST_RESPONSE_CREATED);\n }", "Document saveDocument(Document document) throws EntityExistsException;", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest addNewEvSORequest();", "void documentAdded(SingleDocumentModel model);", "public void doNew() {\n\n if (!canChangeDocuments()) {\n return;\n }\n \n setDocument(fApplication.createNewDocument());\n }", "@POST( CONTROLLER )\n VersionedObjectKey createObject( @Body CreateObjectRequest request );", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "HrDocumentRequest save(HrDocumentRequest hrDocumentRequest);", "public JestResult createNewDocument(GTData data) throws IOException {\n Gson gson = new Gson();\n String json = gson.toJson(data);\n Index request = new Index.Builder(json)\n .index(INDEX_NAME)\n .type(data.getClass().toString())\n .id(data.getObjectID())\n .build();\n\n JestResult result = client.execute(request);\n return result;\n }", "public static void createDocument(String[] attributes) {\n\t\tattributes[2] = attributes[2].toUpperCase();\n\t\tint orgID = OrganizationService.getOrgByUsername(attributes[2]).getId();\n\t\ttry {\n\t\t\t\n\t\t\tDocument docu = DocumentService.getDocumentByTitleAndOrg(attributes[5], orgID);\n\t\t\t//System.out.println(orgID);\n\t\t\tif(docu == null) {\n\t\t\t\t//create document\n\t\t\t\tDocument document = new Document();\n\t\t\t\t//System.out.println(attributes[2]);\n\t\t\t\t\n\t\t\t\tdocument.setOrgID(orgID);\n\t\t\t\tdocument.setTitle(attributes[5]);\n\t\t\t\tdocument.setTerm(attributes[1]);\n\t\t\t\t\n\t\t\t\tDocumentService.addDocument(document);\n\n\t\t\t} \n\t\t\tcreateActivity(attributes, docu.getId(), orgID);\n\t\t} catch(Exception e){\n\t\t\tSystem.out.println(\"Error\");\n\t\t}\n\t\t/*else if(attributes.length >= 20) {\n\t\t\tif (attributes[19].equals(\"In Case of Change\")\n\t\t\t\t || attributes[19].equals(\"Activity Not in GOSM\")) {\n\t\t\t\tcreateActivity(attributes);\n\t\t\t} else {\n\t\t\t\tcreateSubmission(attributes);\n\t\t\t}\n\t\t} else {\n\t\t\tcreateSubmission(attributes);\n\t\t}*/\n\t\t\n\t}", "@PostMapping(\"/docentes\")\n public ResponseEntity<DocenteDTO> createDocente(@Valid @RequestBody DocenteDTO docenteDTO) throws URISyntaxException {\n log.debug(\"REST request to save Docente : {}\", docenteDTO);\n if (docenteDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new docente cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DocenteDTO result = docenteService.save(docenteDTO);\n return ResponseEntity.created(new URI(\"/api/docentes/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public CreateDocumentController() {\n }", "@POST\r\n public DocumentoDTO crearDocumento(DocumentoDTO documento){\r\n return new DocumentoDTO(logic.crearDocumento(documento.toEntity()));\r\n }", "@Nonnull\n private Observable<String> doCreate(@Nonnull String collection, @Nonnull JsonObject document) {\n Objects.requireNonNull(collection, \"missing collection name\");\n Objects.requireNonNull(document, \"missing document\");\n\n ObservableFuture<String> future = RxHelper.observableFuture();\n mongo.insert(collection, document, future.toHandler());\n return future;\n }", "@Override\n public DocumentServiceEntry createDocument(String title, String contents) throws DocumentServiceException {\n DocsService svc = getDocsService();\n DocumentEntry newDocument = new DocumentEntry();\n newDocument.setTitle(new PlainTextConstruct(title));\n DocumentEntry entry;\n try {\n MediaByteArraySource source = new MediaByteArraySource(contents.getBytes(\"UTF8\"), \"text/plain\");\n newDocument.setMediaSource(source);\n entry = svc.insert(new URL(DOCS_SCOPE + \"default/private/full\"), newDocument);\n } catch (Exception e) {\n e.printStackTrace();\n throw new DocumentServiceException(e.getMessage());\n }\n return getDocumentReference(entry);\n }", "@BearerAuth\n @HttpRequestHandler(paths = \"/api/v2/service/create\", methods = \"POST\")\n private void handleCreateRequest(@NonNull HttpContext context, @NonNull @RequestBody Document body) {\n var configuration = body.readObject(\"serviceConfiguration\", ServiceConfiguration.class);\n if (configuration == null) {\n // check for a provided service task\n var serviceTask = body.readObject(\"task\", ServiceTask.class);\n if (serviceTask != null) {\n configuration = ServiceConfiguration.builder(serviceTask).build();\n } else {\n // fallback to a service task name which has to exist\n var serviceTaskName = body.getString(\"serviceTaskName\");\n if (serviceTaskName != null) {\n var task = this.serviceTaskProvider.serviceTask(serviceTaskName);\n if (task != null) {\n configuration = ServiceConfiguration.builder(task).build();\n } else {\n // we got a task but it does not exist\n this.badRequest(context)\n .body(this.failure().append(\"reason\", \"Provided task is unknown\").toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n return;\n }\n } else {\n this.sendInvalidServiceConfigurationResponse(context);\n return;\n }\n }\n }\n\n var createResult = this.serviceFactory.createCloudService(configuration);\n var start = body.getBoolean(\"start\", false);\n if (start && createResult.state() == ServiceCreateResult.State.CREATED) {\n createResult.serviceInfo().provider().start();\n }\n\n this.ok(context)\n .body(this.success().append(\"result\", createResult).toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n }", "void insertOne(Document person);", "E create(Resource data);", "springfox.documentation.schema.Model create(ModelContext context);", "@POST\r\n public Response createResearchObject()\r\n throws BadRequestException, IllegalArgumentException, UriBuilderException, ConflictException,\r\n DigitalLibraryException, NotFoundException {\r\n LOGGER.debug(String.format(\"%s\\t\\tInit create RO\", new DateTime().toString()));\r\n String researchObjectId = request.getHeader(Constants.SLUG_HEADER);\r\n if (researchObjectId == null || researchObjectId.isEmpty()) {\r\n throw new BadRequestException(\"Research object ID is null or empty\");\r\n }\r\n URI uri = uriInfo.getAbsolutePathBuilder().path(researchObjectId).path(\"/\").build();\r\n ResearchObject researchObject = ResearchObject.findByUri(uri);\r\n if (researchObject != null) {\r\n throw new ConflictException(\"RO already exists\");\r\n }\r\n researchObject = new ResearchObject(uri);\r\n URI researchObjectURI = ROSRService.createResearchObject(researchObject);\r\n LOGGER.debug(String.format(\"%s\\t\\tRO created\", new DateTime().toString()));\r\n \r\n RDFFormat format = RDFFormat.forMIMEType(request.getHeader(Constants.ACCEPT_HEADER), RDFFormat.RDFXML);\r\n InputStream manifest = ROSRService.SMS.get().getNamedGraph(researchObject.getManifestUri(), format);\r\n ContentDisposition cd = ContentDisposition.type(format.getDefaultMIMEType())\r\n .fileName(ResearchObject.MANIFEST_PATH).build();\r\n \r\n LOGGER.debug(String.format(\"%s\\t\\tReturning\", new DateTime().toString()));\r\n return Response.created(researchObjectURI).entity(manifest).header(\"Content-disposition\", cd).build();\r\n }", "public void receiveResultcreate(\n com.exacttarget.wsdl.partnerapi.CreateResponseDocument result\n ) {\n }", "@Override\n public DocumentServiceEntry saveDocument(String documentId, String etag, String title,\n String contents) throws DocumentServiceException {\n if (documentId == null || documentId.equals(\"\")) {\n return createDocument(title, contents);\n } else {\n return setDocumentContents(documentId, etag, contents);\n }\n }", "@Override\n public DocumentServiceEntry getNewDocument() {\n UserService userService = UserServiceFactory.getUserService();\n DocumentServiceEntry doc = new DocumentServiceEntry();\n doc.setTitle(\"Untitled Document\");\n doc.setIdentifier(doc.getTitle().replaceAll(\"[^a-zA-Z0-9_\\\\-\\\\.]\", \"\"));\n doc.setAuthor(userService.getCurrentUser().getEmail());\n doc.setEditor(userService.getCurrentUser().getNickname());\n return doc;\n }", "@RequestMapping(method = RequestMethod.POST)\n public Bin create() {\n throw new NotImplementedException(\"To be implemented\");\n }", "@POST\n\t@Path(\"{projectId}\")\n\t@Consumes({ \"application/json+nxentity\", \"application/json\" })\n\tpublic Response doPost(DocumentModel inputDoc, @PathParam(\"projectId\") String projectId) {\n\t\tCoreSession session = ctx.getCoreSession();\n\n\t\tif (StringUtils.isBlank(inputDoc.getType()) || StringUtils.isBlank(inputDoc.getName())) {\n\t\t\treturn Response.status(Status.BAD_REQUEST).entity(\"type or name property is missing\").build();\n\t\t}\n\n\t\tDocumentModel parent = getProjectContainer(projectId);\n\n\t\tString parentPath = parent.getPathAsString();\n\n\t\tif (\"AI_Model\".equals(inputDoc.getType())) {\n\t\t\tparentPath = parent.getPath().append(\"models\").toString();\n\t\t} else if (\"AI_Corpus\".equals(inputDoc.getType())) {\n\t\t\tparentPath = parent.getPath().append(\"datasets\").toString();\n\t\t} else if (\"AI_Training\".equals(inputDoc.getType())) {\n\t\t\tparentPath = parent.getPath().append(\"trainings\").toString();\n\t\t} else {\n\t\t\treturn Response.status(Status.BAD_REQUEST).entity(\"Unexpected Document Type\").build();\n\t\t}\n\n\t\tDocumentModel createdDoc = session.createDocumentModel(parentPath, inputDoc.getName(), inputDoc.getType());\n\t\tDocumentModelJsonReader.applyPropertyValues(inputDoc, createdDoc);\n\t\tcreatedDoc = session.createDocument(createdDoc);\n\t\tsession.save();\n\t\treturn Response.ok(createdDoc).status(Status.CREATED).build();\n\t}", "void create(int id, int authorId, String title);", "@Override\n public String createRecord(String creatingPage) {\n return creatingPage;\n }", "void create(Book book);", "public void addReceivedInternalDocument(AddReceivedInternalDocumentCommand aCommand);", "@PostMapping(\"/books\")\n\tpublic Book createBook(@RequestBody Book book)\n\t{\n\t\treturn bookRepository.save(book);\n\t}", "private SingleDocumentModel addNewDocument(Path path, String content) {\n\t\tSingleDocumentModel document = new DefaultSingleDocumentModel(path, content);\n\t\tmodels.add(document);\n\t\tnotifyNewDocument(document);\n\t\tnotifyDocumentChanged(current, document);\n\t\tdocument.addSingleDocumentListener(new SingleDocumentListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void documentModifyStatusUpdated(SingleDocumentModel model) {\n\t\t\t\tchangeIcon(model);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void documentFilePathUpdated(SingleDocumentModel model) {\n\t\t\t\tchangeTitle(model);\n\t\t\t\tchangeToolTip(model);\n\t\t\t}\n\t\t});\n\t\taddNewTab(document);\n\t\treturn document;\n\t}", "@RequestMapping(value=\"/createBook\",method=RequestMethod.POST,consumes=\"application/json\")\n\tpublic ResponseEntity<Void> createBook (@RequestBody Book bookMap,UriComponentsBuilder uri) throws JsonMappingException, JsonParseException, IOException{\n\t\tbookRepository.save(bookMap);\n\t\tHttpHeaders header = new HttpHeaders();\n\t\treturn new ResponseEntity<Void>(header,HttpStatus.CREATED);\n\t}", "@RequestMapping(method=RequestMethod.POST)\n public ResponseEntity<Void> newAuthor(@RequestBody NewAuthor newAuthor) {\n final Author savedAuthor = authorRepository.save( new Author(newAuthor.getFirstName(), newAuthor.getLastName()) );\n final HttpHeaders headers = new HttpHeaders();\n headers.add(\"Location\", authorResourceAssembler.linkToSingleResource(savedAuthor).getHref() );\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\n }", "public void testDuplicateOfficeActionCreation(Map<String, String> offActnParam) {\n\n ClientResponse response = createDocument(offActnParam);\n assertEquals(409, response.getStatus());\n }", "@ApiOperation(value=\"creates a document\", notes = \"The DocumentContent is a string but must be in HEX Digits, et \\\"AFFE\\\" is valid, but \\\"Hello\\\" isnt.\")\n @RequestMapping(\n value = \"/document\",\n method = {RequestMethod.PUT},\n consumes = {APPLICATION_JSON}\n )\n public void storeDocument(@RequestHeader(\"userid\") String userid,\n @RequestHeader(\"password\") String password,\n @RequestBody DSDocument dsDocument) {\n UserIDAuth userIDAuth = new UserIDAuth(new UserID(userid), new ReadKeyPassword(password));\n service.storeDocument(userIDAuth, dsDocument);\n }", "@POST\n @Consumes(APPLICATION_JSON)\n @Produces(APPLICATION_JSON)\n @ApiOperation(value = \"Create a publisher\", response = PublisherDTO.class)\n @ApiResponses(value = {\n @ApiResponse(code = 201, message = \"The publisher is created\"),\n @ApiResponse(code = 400, message = \"Invalid input\"),\n @ApiResponse(code = 415, message = \"Format is not JSon\")\n })\n public Response createPublisher(@ApiParam(value = \"Publisher to be created\", required = true) @Valid PublisherDTO publisherDTO, @Context UriInfo uriInfo) throws URISyntaxException {\n log.debug(\"REST request to save Publisher : {}\", publisherDTO);\n if (publisherDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new publisher cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n PublisherDTO result = publisherService.save(publisherDTO);\n URI createdURI = uriInfo.getBaseUriBuilder().path(String.valueOf(result.getId())).build();\n return Response.created(createdURI).entity(result).build();\n }", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "@Override\n public DocumentModel createDocument(CoreSession session, Blob content, DocumentModel mainDoc, DocumentModel folder)\n throws IOException {\n\n return createDocument(session, content, mainDoc, folder, false);\n }", "@RequestMapping(value = \"/word/\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\r\n public ResponseEntity<Void> createWord(@RequestBody Word word, UriComponentsBuilder ucBuilder) {\r\n System.out.println(\"Creating Word \" + word.getWordInEnglish());\r\n \r\n if (WordService.isWordExist(word)) {\r\n System.out.println(\"A Word with name \" + word.getWordInEnglish() + \" already exist\");\r\n return new ResponseEntity<Void>(HttpStatus.CONFLICT);\r\n }\r\n \r\n WordService.saveWord(word);\r\n \r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setLocation(ucBuilder.path(\"/word/{language}\").buildAndExpand(word.getWordInEnglish()).toUri());\r\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\r\n }", "@POST( CONTROLLER + METADATA_PATH )\n VersionedObjectKey createMetadataObject( @Body CreateMetadataObjectRequest request );", "@RequestMapping(value = \"Notes\", method = RequestMethod.POST)\n public Note create(@RequestBody Note note) {\n //System.out.println(\"The inserted Note: \" + note.toString());\n //System.out.println(\"#################################################################################\\n\");\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n String date = simpleDateFormat.format(new Date());\n note.setCreated(date);\n return noteRepository.insert(note);\n }", "@Test\n public void testDocuments() throws InterruptedException {\n Document document = new Document(\"newFolder\", \"Folder\");\n document.set(\"dc:title\", \"The new folder\");\n document.set(\"dc:description\", \"Folder created via the REST API\");\n document = nuxeoClient.repository().createDocumentByPath(\"/default-domain/workspaces/testWorkspace\", document);\n assertNotNull(document);\n assertEquals(\"document\", document.getEntityType());\n assertEquals(\"Folder\", document.getType());\n assertEquals(\"/default-domain/workspaces/testWorkspace/newFolder\", document.getPath());\n assertEquals(\"The new folder\", document.getTitle());\n assertEquals(\"The new folder\", document.get(\"dc:title\"));\n assertEquals(\"Folder created via the REST API\", document.get(\"dc:description\"));\n\n // Create a File document by parent id\n // TODO\n\n // Get a document by id\n // TODO\n\n // Get a document by path\n // TODO\n\n // Update a document\n // TODO\n\n // Delete a document\n // TODO\n }", "@Override\n public void run() throws SmartServiceException {\n UserProfile author = us.getUser(smartServiceCtx.getUsername());\n String username = author.getUsername();\n\n // Create a filename based on the user's name and MadLib title.\n String userFullName = author.getFirstName() + \" \" + author.getLastName();\n String docName = username + \" \" + madlib.getTitle();\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(String.format(\"Creating new document in folder %d with name %s and ext %s\", saveIn, docName,\n DOC_EXTENSION));\n }\n // Instantiate a new Document object with the necessary metadata\n Document newDoc = new Document(saveIn, docName, DOC_EXTENSION);\n try {\n // Creates a new document in the Appian engine. At this point the document is empty.\n // Content.UNIQUE_NONE specifies that we don't need to worry about document name uniqueness\n ContentOutputStream madlibOS = cs.upload(newDoc, Content.UNIQUE_NONE);\n\n // Save the id of the new document as our smartservice output\n madlibDoc = madlibOS.getContentId();\n\n // Write the madlib text and some footer information to the new document file on disk\n PrintWriter pw = new PrintWriter(madlibOS);\n pw.println(AppianMadLibUtil.createMadLibText(madlib));\n pw.println(\"By \" + userFullName);\n pw.println(\"Created \" + new Date());\n pw.close();\n\n } catch (PrivilegeException e) {\n LOG.error(\n String.format(\"User %s did not have permission to write to folder [id=%d]\", username, saveIn), e);\n throw createException(e, \"error.exception.permission\", smartServiceCtx.getUsername(), saveIn);\n } catch (Exception e) {\n LOG.error(\n String.format(\"Unexpected error creating new doc in folder [id=%d] as user %s\", saveIn, username), e);\n throw createException(e, \"error.exception.unknown\", smartServiceCtx.getUsername(), saveIn);\n }\n }", "public void addDoc (DocFile newFile) {\n\n // Check if the file extension is valid\n if (!isValid(newFile) ) {\n return;\n }\n\n // Create the new document, add in DocID fields and UploaderID fields\n org.apache.lucene.document.Document newDocument = new Document();\n\n Field docIDField = new StringField(Constants.INDEX_KEY_ID, newFile.getId(), Store.YES);\n Field docPathField = new StringField(Constants.INDEX_KEY_PATH, newFile.getPath(), Store.YES);\n Field userIDField = new StringField(Constants.INDEX_KEY_OWNER, newFile.getOwner(), Store.YES);\n Field filenameField = new TextField(Constants.INDEX_KEY_FILENAME, newFile.getFilename(), Store.YES);\n Field isPublicField = new TextField(Constants.INDEX_KEY_STATUS, newFile.isPublic().toString(), Store.YES);\n Field titleField = new TextField(Constants.INDEX_KEY_TITLE, newFile.getTitle(), Store.YES);\n Field typeField = new TextField(Constants.INDEX_KEY_TYPE, newFile.getFileType(), Store.YES);\n Field permissionField = new TextField(Constants.INDEX_KEY_PERMISSION, Integer.toString(newFile.getPermission()), Store.YES);\n Field courseField = new TextField(Constants.INDEX_KEY_COURSE, newFile.getCourseCode(), Store.YES);\n \n \n newDocument.add(docIDField);\n newDocument.add(docPathField);\n newDocument.add(userIDField);\n newDocument.add(filenameField);\n newDocument.add(isPublicField);\n newDocument.add(titleField);\n newDocument.add(typeField);\n newDocument.add(permissionField);\n newDocument.add(courseField);\n \n //Call Content Generator to add in the ContentField\n ContentGenerator.generateContent(newDocument, newFile);\n\n // Add the Document to the Index\n try {\n writer.addDocument(newDocument);\n writer.commit();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void saveDocument(SingleDocumentModel model, Path newPath);", "@SuppressWarnings(\"unchecked\")\n @Override\n protected void buildPdfDocument(Map<String, Object> model, Document document, PdfWriter writer,\n HttpServletRequest request, HttpServletResponse response) throws Exception {\n createNewPdfByTemplate(model,document,writer,request,response);\n\n }", "@PostMapping(\"/document-tuiles\")\n @Timed\n public ResponseEntity<DocumentTuile> createDocumentTuile(@Valid @RequestBody DocumentTuile documentTuile) throws URISyntaxException {\n log.debug(\"REST request to save DocumentTuile : {}\", documentTuile);\n if (documentTuile.getId() != null) {\n throw new BadRequestAlertException(\"A new documentTuile cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DocumentTuile result = documentTuileService.save(documentTuile);\n return ResponseEntity.created(new URI(\"/api/document-tuiles/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public com.huqiwen.demo.book.model.Books create(long bookId);", "public Document addDocument(Document arg0) throws ContestManagementException {\r\n return null;\r\n }", "@Override\n public void onClick(View view) {\n PSMApplication newApp = new PSMApplication();\n newApp.setFullName(txtName.getText().toString());\n newApp.setAddress(txtAddress.getText().toString());\n newApp.setEmail(txtEmail.getText().toString());\n newApp.setDocId(db.collection(\"PSMApplication\").document().getId());// get id of new entry\n // Record in the database\n DocumentReference docRef = db.collection(\"PSMApplication\").document(newApp.getDocId());\n Task insert = docRef.set(newApp);\n insert.addOnSuccessListener(o -> {\n Log.d(\"TAG\", \"New PSM application added!\");\n // Show thank you message\n txtThankYou.setVisibility(View.VISIBLE);\n btnBack.setVisibility(View.VISIBLE);\n btnApply.setEnabled(false);\n txtName.setEnabled(false);\n txtAddress.setEnabled(false);\n txtEmail.setEnabled(false);\n });\n insert.addOnFailureListener(o->{\n Log.e(\"TAG\", \"Failed to add new PSM application.\");\n Toast.makeText(ApplyPsmLicenseActivity.this, \"An error occurred\", Toast.LENGTH_SHORT).show();\n finish();\n });\n\n }", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n public Response createBook(Book book) {\n final BookServiceResult result = bookService.addBook(book);\n return Response\n .status(result.getStatus())\n .entity(getJsonFromServiceResult(result))\n .build();\n }", "public static void creaDocente(Teacher doc) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.CREATE_USER;\n\t\t\trp.userType = UserType.TEACHER;\n\t\t\trp.parameters = new Object[] { doc };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "String insertDocument(String doc) {\n\t\treturn insertDocument(doc, null); // no docId\n\t}", "public boolean create(ModelObject obj);", "@POST\n @Produces({ \"application/json\" })\n @CommitAfter\n public abstract Response addNew(Person person);", "@GetMapping(\"/create\")\n public String create(@RequestParam(\"fileExt\")\n final String fileExt, // create a sample file of the specified extension\n @RequestParam(value = \"sample\", required = false) final Optional<Boolean> isSample,\n @CookieValue(value = \"uid\", required = false) final String uid,\n final Model model) {\n Boolean sampleData = (isSample.isPresent() && !isSample.isEmpty()) && isSample.get();\n if (fileExt != null) {\n try {\n Optional<User> user = userService.findUserById(Integer.parseInt(uid)); // find a user by their ID\n if (!user.isPresent()) {\n // if the user with the specified ID doesn't exist, an error occurs\n throw new RuntimeException(\"Could not fine any user with id = \" + uid);\n }\n String fileName = documentManager.createDemo(fileExt,\n sampleData,\n uid,\n user.get().getName()); // create a demo document with the sample data\n if (fileName.isBlank() || fileName == null) {\n throw new RuntimeException(\"You must have forgotten to add asset files\");\n }\n return \"redirect:editor?fileName=\" + URLEncoder\n .encode(fileName, StandardCharsets.UTF_8); // redirect the request\n } catch (Exception ex) {\n model.addAttribute(\"error\", ex.getMessage());\n return \"error.html\";\n }\n }\n return \"redirect:/\";\n }", "Article createArticle();", "private void tryToCreateNew() {\n if (current != null) {\n if (!this.tryToClose()) return;\n }\n\n //enter a name for this scenario\n String name = (String) JOptionPane.showInputDialog(\n this,\n \"Name of the scenario\",\n \"Next\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n null,\n null);\n\n if (name == null) return;\n\n\n //select a directory name\n JFileChooser chooser = new JFileChooser(new File(\".\"));\n chooser.setDialogTitle(\"Select scenario file destination\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n int result = chooser.showDialog(this, \"Select\");\n if (result == JFileChooser.APPROVE_OPTION) {\n try {\n File dir = chooser.getSelectedFile();\n\n String path = dir.getAbsolutePath();\n String filename = path + File.separator + (name.replaceAll(\" \", \"_\")) + \".xml\";\n\n current = new Document(filename, name, path, Database.getInstance().getNumberOfFloors());\n current.save();\n\n this.update();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"ERROR: the document could not be saved!\", \"An Error Occured\", JOptionPane.ERROR_MESSAGE);\n e.printStackTrace();\n }\n }\n }", "private void requestGenerateDocument(RenderSubmittedDataDocument renderSubmittedDataDocument, Message message)\n throws InterruptedException {\n\n try {\n ResponseEntity<GenerateDocumentResponse> response = generateDocument.requestGenerateDocument(renderSubmittedDataDocument);\n\n try {\n kafkaProducerService.send(messageService.createDocumentGenerationCompleted(renderSubmittedDataDocument, response.getBody()));\n LOG.infoContext(renderSubmittedDataDocument.getUserId(),\"Document has been generated for resource: \"\n + renderSubmittedDataDocument.getResource(), setDebugMap(renderSubmittedDataDocument, message));\n } catch (MessageCreationException | ExecutionException mce) {\n LOG.errorContext(\"Error occurred while attempt to create and send a completed message to producer\",\n mce, setDebugMap(renderSubmittedDataDocument, message));\n }\n\n } catch (GenerateDocumentException gde) {\n LOG.errorContext(renderSubmittedDataDocument.getUserId(),\"An error occurred when requesting the generation\" +\n \" of a document from the document generator api\", gde, setDebugMap(renderSubmittedDataDocument, message));\n try {\n kafkaProducerService.send(messageService.createDocumentGenerationFailed(renderSubmittedDataDocument, null));\n LOG.infoContext(renderSubmittedDataDocument.getUserId(),\"Document failed to generate during the \" +\n \"document generator api call for resource: \" + renderSubmittedDataDocument.getResource(),\n setDebugMap(renderSubmittedDataDocument, message));\n } catch (MessageCreationException | ExecutionException mce) {\n LOG.errorContext(\"Error occurred while attempt to create and send a failed message message to producer\",\n mce, setDebugMap(renderSubmittedDataDocument, message));\n }\n }\n }", "CreateResponse create(@NonNull CreateRequest request);", "@RequestMapping(value = \"save\", method = RequestMethod.POST)\n\tpublic ModelAndView save(@ModelAttribute(\"document\") Document document,\n\t\t\t@RequestParam(value = \"file\", required = false) MultipartFile file,\n\t\t\tModelMap modelMap) {\n\n\t\ttry {\n\n\t\t\tif (document.getpOrg() == null)\n\t\t\t\tthrow new ValidationException(\n\t\t\t\t\t\t\"The Finantial Institution can not be null\");\n\n\t\t\tProducerOrg pOrg = document.getpOrg();\n\n\t\t\tdocumentService.validate(document);\n\n\t\t\tif (file != null && file.getSize() > 0) {\n\n\t\t\t\tString extension = DocumentServiceImpl\n\t\t\t\t\t\t.getExtensionFromPath(file.getOriginalFilename());\n\t\t\t\tif (StringUtils.isBlank(extension)) {\n\t\t\t\t\textension = DocumentServiceImpl\n\t\t\t\t\t\t\t.getDocumentExtension(document);\n\t\t\t\t}\n\n\t\t\t\tString contentType = DocumentServiceImpl.getMimeType(extension);\n\t\t\t\tif (StringUtils.isBlank(contentType)) {\n\t\t\t\t\tcontentType = file.getContentType();\n\t\t\t\t}\n\n\t\t\t\tdocument.setDocumentExtension(extension);\n\t\t\t\tdocument.setContentType(contentType);\n\t\t\t\tdocument.setDocumentInputStream(file.getInputStream());\n\n\t\t\t}\n\n\t\t\tDocument existingDocument = document;\n\n\t\t\tif (StringUtils.isNotEmpty(document.getId())) {\n\n\t\t\t\texistingDocument = documentService.getDocumentById(document\n\t\t\t\t\t\t.getId());\n\t\t\t\texistingDocument.setName(document.getName());\n\t\t\t\texistingDocument.setContentType(document.getContentType());\n\t\t\t\texistingDocument.setDocumentType(document.getDocumentType());\n\t\t\t\texistingDocument.setDocumentExtension(document\n\t\t\t\t\t\t.getDocumentExtension());\n\t\t\t\texistingDocument.setDocumentUrl(document.getDocumentUrl());\n\t\t\t\texistingDocument.setOtherInfo(document.getOtherInfo());\n\t\t\t\texistingDocument.setpOrg(document\n\t\t\t\t\t\t.getpOrg());\n\t\t\t} else {\n\n\t\t\t\tif (file == null || file.getSize() == 0)\n\t\t\t\t\tthrow new ValidationException(\"File is required\");\n\n\t\t\t\texistingDocument.setDateCreated(Calendar.getInstance()\n\t\t\t\t\t\t.getTime());\n\t\t\t\texistingDocument\n\t\t\t\t\t\t.setCreatedBy(OXMSecurityUtil.getLoggedInUser());\n\t\t\t\texistingDocument.setId(null);\n\t\t\t\tpOrg.addDocument(existingDocument);\n\t\t\t}\n\n\t\t\tif (file != null && file.getSize() > 0) {\n\t\t\t\tdocumentService.saveDocument(existingDocument,\n\t\t\t\t\t\tfile.getInputStream());\n\t\t\t\tporgService.save(pOrg);\n\t\t\t} else\n\t\t\t\tdocumentService.saveDocument(existingDocument, null);\n\n\t\t\tmodelMap.put(WebConstants.MODEL_ATTRIBUTE_SYSTEM_MESSAGE,\n\t\t\t\t\t\"Financial Document Saved sucessfully.\");\n\n\t\t\treturn view(pOrg.getId(), modelMap);\n\n\t\t} catch (Exception ex) {\n\t\t\tlog.error(null, ex);\n\t\t\tmodelMap.put(WebConstants.MODEL_ATTRIBUTE_ERROR_MESSAGE,\n\t\t\t\t\t\" - \" + ex.getMessage());\n\t\t\tmodelMap.put(\"document\", document);\n\t\t\tmodelMap.put(\"pOrg\", document.getpOrg());\n\n\t\t\tmodelMap.put(WebConstants.CONTENT_HEADER,\n\t\t\t\t\t\"Retry Add/Edit Document of \"\n\t\t\t\t\t\t\t+ document.getpOrg().getName());\n\n\t\t\treturn new ModelAndView(\"pOrgDocForm\", modelMap);\n\t\t}\n\n\t}", "com.exacttarget.wsdl.partnerapi.DefinitionResponseMsgDocument.DefinitionResponseMsg addNewDefinitionResponseMsg();", "String insert(BookDO record);", "@RequestMapping(method=RequestMethod.POST)\n\tpublic ResponseEntity<Void> insert(@Valid @RequestBody ClienteNewDTO objDTO){\n\t\t\n\t\tCliente obj = service.fromDTO(objDTO);\n\t\tobj = service.insert(obj);\n\t\t\n\t\t//abaixo uma boa pratica para retornar a url do novo objeto quandro cria-lo\n\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest()\n\t\t\t\t\t.path(\"/{id}\").buildAndExpand(obj.getId()).toUri(); //o from currente request vai pegar a requisicao atual, e logo depois a gente add o /id\n\t\t\n\t\treturn ResponseEntity.created(uri).build();\n\t}", "public void ejbCreate(int argLeaseDocument, java.sql.Date argDocDate, String argDocNumber ) throws javax.ejb.CreateException, java.rmi.RemoteException {\n\t_initLinks();\n\t// All CMP fields should be initialized here.\n\tleaseDocument = argLeaseDocument;\n\tdocumentDate = argDocDate;\n\tdocumentNumber = argDocNumber;\n\toperator = null;\n\tmodified = null;\n\tmodifiedby = null;\n\tcreated = null;\n\tcreatedby = null;\n\tregionid = 1;\n\tsetOperator();\n}", "@BodyParser.Of(play.mvc.BodyParser.Json.class)\n public static Result create() throws JsonParseException, JsonMappingException, IOException {\n JsonNode json = request().body().asJson();\n Thing thing = mapper.treeToValue(json, Thing.class);\n thing.save();\n return ok(mapper.valueToTree(thing));\n }", "Book createBook();", "@RequestMapping(path = \"/create\", method = RequestMethod.POST)\n\tpublic ResponseEntity<RestResponse<CompanyDTO>> create(@RequestBody CompanyDTO request) {\n\n\t\tCompanyDTO result = companyService.create(request);\n\t\t\n\t\tRestResponse<CompanyDTO> restResponse = \n\t\t\t\tnew RestResponse<CompanyDTO>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<CompanyDTO>>(restResponse, HttpStatus.OK);\n\t\t\t\n\t}", "public manageDoc() {\r\r\r\n\r\r\r\n }", "String insertDocument(String doc, String docId) {\n\t\tString encodedDoc = encodeNS(doc);\n\n\t\t// Insert all the ao:Item subdocuments\n\t\tinsertItemSubdocuments(encodedDoc);\n\n\t\t// Insert the complete document\n\t\tString url = esInsertDeleteUrl;\n\t\tif ((docId != null) && (docId.trim().length() > 0)) {\n\t\t\turl += docId;\n\t\t}\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode = doHttpOperation(url, HTTP_POST, encodedDoc);\n\t\treturn lastResponse;\n\t}", "@RequestMapping (value=\"/offices\",\n\t\t\t\t\tmethod=RequestMethod.POST,\n\t\t\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE)\n\tpublic Office create (@RequestBody Office newOffice) {\n\t\tfinal Office createdOffice = officeServices.create(newOffice);\n\t\treturn createdOffice;\n\t}", "public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }", "public void create(){}", "int insert(ResourcePojo record);", "private void createNote(NewNoteInput note, QueryService service) {\n if ((note.body() == null || note.body().isEmpty()) &&\n (note.title() == null || note.title().isEmpty())) {\n Log.i(LOG_TAG, \"skipped upload of note with empty body\");\n return;\n }\n\n service.createNote(note, (e, response) -> {\n runOnUiThread(() -> {\n if (e != null) {\n Log.e(LOG_TAG, e.getMessage());\n Toast.makeText(getApplicationContext(), getString(R.string.network_err),\n Toast.LENGTH_LONG).show();\n } else {\n Log.i(LOG_TAG, \"note created\");\n Toast.makeText(getApplicationContext(), getString(R.string.activity_note_ncreate),\n Toast.LENGTH_SHORT).show();\n\n finish();\n }\n });\n });\n }", "public DocType createDocument(String id, String value) {\n\t\tDocType doc = mappingFactory.createDocType();\n\t\tdoc.setId(\"\" + id);\n\t\tdoc.setValue(value);\n\t\treturn doc;\n\t}", "public void add(PhotonDoc doc);", "@POST\t\n\t@Path(\"/\")\n\t@Consumes(\"application/json\")\t\n\tpublic List<Site> createSite(Site newSite){\n\t\tSystem.out.println(\"help\");\n\t\treturn siteDaoObj.createSite(newSite);\t\t\n\t}", "@POST \n\t\t@Path(\"NewGrant\") \n\t\t@Consumes(MediaType.APPLICATION_FORM_URLENCODED) \n\t\t@Produces(MediaType.TEXT_PLAIN)\n\t\tpublic String insertFund( @FormParam(\"id\") String id,\n\t\t\t\t @FormParam(\"title\") String title,\n\t\t\t\t\t\t\t\t@FormParam(\"full_name\") String full_name,\n\t\t\t\t\t\t\t\t@FormParam(\"email\") String email,\n\t\t\t\t\t\t\t\t@FormParam(\"phone\") String phone,\n\t\t\t\t\t\t\t\t@FormParam(\"research_category\") String research_category,\n\t\t\t\t\t\t\t\t@FormParam(\"budget\") String budget,\n\t\t\t\t\t\t\t\t@FormParam(\"introduction\") String introduction)\n\t\n\t\t{\n\t\t \t{\n\t\t \t\tString output = Obj.insertGrantApplication(id,title,full_name,email,phone,research_category,budget,introduction); \n\t\t \t\treturn output;\n\t\t\t}\n\t\t}", "public NewDocumentRequestDto() {\n }", "@RequestMapping(value = \"/presencerequests\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Presencerequest> createPresencerequest(@RequestBody Presencerequest presencerequest) throws URISyntaxException {\n log.debug(\"REST request to save Presencerequest : {}\", presencerequest);\n if (presencerequest.getId() != null) {\n return ResponseEntity.badRequest().header(\"Failure\", \"A new presencerequest cannot already have an ID\").body(null);\n }\n Presencerequest result = presencerequestRepository.save(presencerequest);\n return ResponseEntity.created(new URI(\"/api/presencerequests/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"presencerequest\", result.getId().toString()))\n .body(result);\n }", "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "public static void create() {\n Application.currentUserCan( 1 );\n \n String author = session.get(\"userEmail\");\n String title = params.get( \"course[title]\", String.class );\n String content = params.get( \"course[content]\", String.class );\n \n if( title.length() > 0 && content.length() > 0 ) {\n Course course = new Course(title, content, author);\n course.save();\n }\n \n index();\n }", "@SuppressWarnings({ \"unused\", \"rawtypes\" })\r\n\t@Override\r\n\tpublic JSONObject addDocument(JSONObject jsonObject) throws EDRMException {\r\n\t\tif (LOGGER.isDebugEnabled()) \r\n\t\t{\r\n\t\t\tLOGGER.debug(\"Start :: addDocument :: EDRMDocumentServiceImpl\");\r\n\t\t}\r\n\t\tJSONObject recordResultObject = null;\r\n\t\tFnAuthDataProviderImpl connectionImpl = null;\r\n\t\tDocument document = null;\r\n\t\tJSONObject declareRecordClientMethod = null;\r\n\t\tCommonServicesUtil commonServicesUtil = new CommonServicesUtil();\r\n\t\tDocumentServicesUtil documentServicesUtil = new DocumentServicesUtil();\r\n\t\ttry {\r\n\t\t\tconnectionImpl = new FnAuthDataProviderImpl();\r\n\t\t\tObjectStore objStore = connectionImpl.getObjectStore();\r\n\t\t\t//requesting parameters information from JSON object\r\n\t\t\tJSONObject requestDetailsJsonObject = (JSONObject) jsonObject.get(EDRMServiceConstants.REQUEST_DETAILS);\r\n\t\t\tJSONObject documentDetailsJsonObject = (JSONObject) requestDetailsJsonObject.get(EDRMServiceConstants.DOCUMENT_MESG);\r\n\t\t\t\r\n\t\t\tString isRecord = (String) requestDetailsJsonObject.get(EDRMServiceConstants.DOCUMENT_IS_RECORD);\r\n\t\t\tString isVital = (String) requestDetailsJsonObject.get(EDRMServiceConstants.IS_VITAL);\r\n\t\t\tString documentClassName = (String) documentDetailsJsonObject.get(EDRMServiceConstants.DOCUMENT_CLASS);\r\n\t\t\tJSONArray documentPropertiesJsonObject = (JSONArray) documentDetailsJsonObject.get(EDRMServiceConstants.DOCUMENT_PROPERTIES);\r\n\t\t\tString filepathJsonObject = (String) documentDetailsJsonObject.get(EDRMServiceConstants.DOCUMENT_FILEPATH);\r\n\t\t\tString mimeTypeJsonObject = (String) documentDetailsJsonObject.get(EDRMServiceConstants.DOCUMENT_OBJECT_MIME_TYPE);\r\n\t\t\tString documentCreator = (String) documentDetailsJsonObject.get(EDRMServiceConstants.CREATOR);\r\n\t\t\tString documentDateCreated = (String) documentDetailsJsonObject.get(EDRMServiceConstants.DATE_CREATED);\r\n\t\t\tString folderId = (String) documentDetailsJsonObject.get(EDRMServiceConstants.FOLDER_ID);\r\n\t\t\t\r\n\t\t\trecordResultObject = new JSONObject();\r\n\t\t\t//creating document instance\r\n\t\t\tdocument = documentServicesUtil.createDocumentInstance(objStore, documentPropertiesJsonObject,\r\n\t\t\t\t\tdocumentClassName, filepathJsonObject, mimeTypeJsonObject, documentCreator, documentDateCreated, folderId);\r\n\t\t\t\r\n\t\t\tSet keySet = documentDetailsJsonObject.keySet();\r\n\t\t\tIterator iterator = keySet.iterator();\r\n\t\t\twhile(iterator.hasNext())\r\n\t\t\t{\r\n\t\t\t\tString keys = (String) iterator.next();\r\n\t\t\t\tif(keys.equals(EDRMServiceConstants.SECURITY))\r\n\t\t\t\t{\r\n\t\t\t\t\tString activeDirectory = EDRMServiceConstants.ACTIVE_DIRECTORY;\r\n\t\t\t\t\tJSONArray securityJsonArray = (JSONArray) documentDetailsJsonObject.get(EDRMServiceConstants.SECURITY);\r\n\t\t\t\t\tfor(int securityKey=0;securityKey<securityJsonArray.length();securityKey++) {\r\n\t\t\t\t\tJSONObject securityJsonObject = (JSONObject) securityJsonArray.get(securityKey);\r\n\t\t\t\t\tString userName = (String) securityJsonObject.get(EDRMServiceConstants.OBJECT_USERNAME);\r\n\t\t\t\t\tString privilege = (String) securityJsonObject.get(EDRMServiceConstants.OBJECT_PRIVILEGE);\r\n\t\t\t\t\tString privilegeType = (String) securityJsonObject.get(EDRMServiceConstants.OBJECT_PRIVILEGE_TYPE);\r\n\t\t\t\t\t//updating document security\r\n\t\t\t\t\tdocument = (Document) commonServicesUtil.updateSecurity(document, privilege.trim(),\r\n\t\t\t\t\t\t\tuserName+activeDirectory, EDRMServiceConstants.DOCUMENT_MESG, privilegeType.trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(isRecord.equals(EDRMServiceConstants.PROPERTY_BOOLEAN_TRUE))\r\n\t\t\t{\r\n\t\t\t\tJSONObject jObject = new JSONObject();\r\n\t\t\t\tjObject.put(EDRMServiceConstants.REST_DOCUMENT_ID, document.get_Id().toString());\r\n\t\t\t\tjObject.put(EDRMServiceConstants.FOLDER_UNIQUE_IDENTIFIER, folderId);\r\n\t\t\t\tjObject.put(EDRMServiceConstants.IS_VITAL, isVital);\r\n\t\t\t\tjObject.put(EDRMServiceConstants.USER, documentCreator);\r\n\t\t\t\tString requestString = jObject.toString();\r\n\t\t\t\tCMSDeclareRecordClient cmsDeclareRecordClient = new CMSDeclareRecordClient();\r\n\t\t\t\t//declaring document as a Record\r\n\t\t\t\tdeclareRecordClientMethod = cmsDeclareRecordClient.declareRecordClientMethod(requestString);\r\n\t\t\t}\r\n\t\t\t//success response from FileNet\r\n\t\t\treturn new CommonServicesUtil().generateSuccessResponse(EDRMServiceConstants.SUCCESS_STATUS_CODE, EDRMServiceConstants.DOCUMENT_COMMIT_SUCCESS,\r\n\t\t\t\t\t\tdocument.get_VersionSeries().get_Id().toString(), declareRecordClientMethod, document.get_Id().toString());\r\n\t\t\t\t\r\n\t\t} catch (EngineRuntimeException engineRuntimeException) {\r\n\t\t\treturn new EDRMException().generateExceptionDetails(EDRMServiceConstants.INTERNAL_SERVER_ERROR_STATUS_CODE,\r\n\t\t\t\t\tEDRMServiceConstants.ENGINE_RUNTIME_EXCEPTION,\r\n\t\t\t\t\tengineRuntimeException.getExceptionCode().getErrorId(), engineRuntimeException.getMessage());\r\n\t\t} catch (JSONException jsonException) {\r\n\t\t\treturn new EDRMException().generateExceptionDetails(EDRMServiceConstants.INTERNAL_SERVER_ERROR_STATUS_CODE,\r\n\t\t\t\t\tEDRMServiceConstants.JSON_EXCEPTION, EDRMServiceConstants.STATUS_CODE_NO_CONTENT,\r\n\t\t\t\t\tjsonException.getMessage());\r\n\t\t} catch (FileNotFoundException fileNotFoundException) {\r\n\t\t\treturn new EDRMException().generateExceptionDetails(EDRMServiceConstants.INTERNAL_SERVER_ERROR_STATUS_CODE,\r\n\t\t\t\t\tEDRMServiceConstants.FILE_NOT_FOUND_EXCEPTION, EDRMServiceConstants.STATUS_CODE_NO_CONTENT,\r\n\t\t\t\t\tfileNotFoundException.getMessage());\r\n\t\t} catch (Exception exception) {\r\n\t\t\treturn new EDRMException().generateExceptionDetails(EDRMServiceConstants.INTERNAL_SERVER_ERROR_STATUS_CODE,\r\n\t\t\t\t\tEDRMServiceConstants.GENERAL_EXCEPTION, EDRMServiceConstants.STATUS_CODE_NO_CONTENT,\r\n\t\t\t\t\texception.getMessage());\r\n\t\t} finally {\r\n\t\t\tconnectionImpl.doSignOff();\r\n\t\t}\r\n\t}", "public abstract String createNewObject(OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p, OwObject parent_p, String strMimeType_p,\r\n String strMimeParameter_p) throws Exception;", "public void create(String title, String numPages, String quantity, String category, String price, String publicationYear, String[] authorsId, String publisherId) {\n System.out.println(\"creating book \" + title + \" by \"+ authorsId[0] + \" published by \" + publisherId);\n dbmanager.open();\n \n JSONObject item = new JSONObject();\n item.put(\"idBOOK\", dbmanager.getNextId());\n item.put(\"title\", title);\n item.put(\"numPages\", numPages);\n item.put(\"quantity\", quantity);\n item.put(\"category\", category);\n item.put(\"price\", price);\n item.put(\"publicationYear\", publicationYear);\n item.put(\"authors\", authorsId); \n item.put(\"publisher\", publisherId);\n\n dbmanager.createCommit(getNextBookId(),item);\n \n dbmanager.close();\n }", "public CreateDocumentRequest withName(String name) {\n setName(name);\n return this;\n }" ]
[ "0.6922545", "0.68492186", "0.68393785", "0.6625457", "0.6550857", "0.65126634", "0.65126634", "0.6492606", "0.646969", "0.6440657", "0.64280695", "0.6402942", "0.63966596", "0.63626367", "0.6334422", "0.63029295", "0.62937987", "0.6279411", "0.6273798", "0.6215138", "0.6188821", "0.6122453", "0.61024797", "0.6084414", "0.6081236", "0.6066409", "0.60358554", "0.6023712", "0.6021511", "0.600147", "0.5976612", "0.59531003", "0.5908939", "0.5892836", "0.58759975", "0.5865482", "0.5853005", "0.5815877", "0.5770441", "0.5751606", "0.57496256", "0.57495785", "0.57189274", "0.5711039", "0.57103443", "0.5701031", "0.56873876", "0.5679457", "0.5674757", "0.5649853", "0.5644632", "0.5634399", "0.5632311", "0.56242573", "0.5610691", "0.56095564", "0.55919194", "0.5583641", "0.5579041", "0.55689204", "0.5564046", "0.55602235", "0.5557905", "0.5557386", "0.55538845", "0.5548061", "0.55460125", "0.5545079", "0.5530517", "0.55292135", "0.5512053", "0.5509272", "0.55090386", "0.55061406", "0.5494836", "0.5490536", "0.54849845", "0.5484872", "0.54820836", "0.5480854", "0.54775864", "0.5477519", "0.5477513", "0.5476496", "0.547304", "0.54681486", "0.5463876", "0.5461836", "0.54302555", "0.54293376", "0.5428542", "0.5427633", "0.5427579", "0.5427535", "0.54265344", "0.54237837", "0.54195523", "0.5411247", "0.5410776", "0.54087794" ]
0.6428308
10
generic request handle method
public Message handleRequest(Message request){ Message error = new Message(Message.GENERIC_ERROR); switch (request.getId()){ case Message.LOGIN: return handleLogin(request); case Message.CREATE_DOCUMENT: return handleCreate(request); case Message.REMOVE_INVITE: controlServer.removeInvite(request.getUserName(),request.getDocumentName()); return request; case Message.PORTIONS: System.out.println("HANDLER pre-handle: " +request.getDocumentName()); request.setSectionNumbers(controlServer.getPortions(request.getDocumentName())); return request; case Message.ADMINS: Message response = new Message(Message.ADMINS); response.setStringVector(new Vector<>(controlServer.getAdmins(request.getDocumentName()))); return response; case Message.USERS: request.setStringVector(controlServer.getUserNames()); return request; case Message.INVITATION: controlServer.addAdmin(request.getDocumentName(),request.getReceiver()); controlServer.addInvite(request.getReceiver(),request.getDocumentName()); request.setId(Message.INVITE_SENT); return request; case Message.GET_INVITES: String owner = request.getUserName(); request.setStringVector(controlServer.getUserData(owner).getInvites()); return request; case Message.GET_USERDATA: return handleGetUserData(request); case Message.LOCK: if(!controlServer.lock(request.getDocumentName(),request.getSectionNumbers())) request.setId(Message.LOCK_NOK); else request.setId(Message.LOCK_OK); return request; case Message.UNLOCK: if(controlServer.unlock(request.getDocumentName(),request.getSectionNumbers())) request.setId(Message.UNLOCK_OK); return request; case Message.EDIT: String DocumentName = request.getDocumentName(); int SectionNumbers = request.getSectionNumbers(); request.setText(controlServer.getSection(DocumentName,SectionNumbers)); return request; case Message.END_EDIT: controlServer.editDoc(request.getDocumentName(),request.getSectionNumbers(),request.getText()); return request; case Message.PRINT: request.setText(controlServer.getDocumentString(request.getDocumentName())); return request; case Message.SHOW: String text = controlServer.getSection(request.getDocumentName(),request.getSectionNumbers()); request.setText(text); return request; default: controlServer.showMessage("unknown request"); break; }return error; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object handle(Object request);", "public abstract void handle(Request request, Response response) throws Exception;", "public void handleRequest(Request req) {\n\n }", "void handleRequest();", "public Object handleRequest(P request) throws Exception;", "public abstract void handle(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ApiException, IOException;", "@Override\n\tpublic Response handle(Request request) {\n\t\treturn null;\n\t}", "protected abstract void handle(Object... params);", "public void handler(AbstractRequest request) {\n\t\tSystem.out.println(\"===handle1\" + request.getContent());\n\t}", "@Override\n\tpublic void handle(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@Override\n protected Response handleRequest(Request request) throws IOException {\n String path = request.getParameter(PATH);\n Resource res = request.getResource();\n String type = res.getValueMap().get(TYPE, String.class);\n Response answer;\n if(COMPONENTS.equals(type)) {\n answer = findComponents(request);\n } else if(TEMPLATES.equals(type)) {\n answer = findTemplates(request);\n } else if(OBJECTS.equals(type)) {\n answer = findObjects(request);\n } else {\n answer = new ErrorResponse().setHttpErrorCode(SC_BAD_REQUEST).setErrorMessage(UNKNOWN_TYPE + type);\n }\n return answer;\n }", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "@SuppressWarnings(\"unchecked\")\n private <E> void handleRequest(ApiRequest<E> request) {\n\n try {\n apiAdapter\n .invokeAsync(request.target)\n .subscribe(new Responder<E>(request, this::writeResponse));\n } catch (Exception e) {\n System.out.println(\"Something went wrong while trying to invoke an ApiAdapter function\");\n e.printStackTrace();\n }\n }", "@Override\n public void handle(final ClassicHttpRequest request,\n final ClassicHttpResponse response,\n final HttpContext context)\n throws HttpException, IOException {\n\n final String method = request.getMethod();\n if (!\"GET\".equalsIgnoreCase(method) &&\n !\"HEAD\".equalsIgnoreCase(method) &&\n !\"POST\".equalsIgnoreCase(method) &&\n !\"PUT\".equalsIgnoreCase(method)) {\n throw new MethodNotSupportedException(method + \" not supported by \" + getClass().getName());\n }\n final URI uri;\n try {\n uri = request.getUri();\n } catch (final URISyntaxException ex) {\n throw new ProtocolException(ex.getMessage(), ex);\n }\n final String path = uri.getPath();\n final int slash = path.lastIndexOf('/');\n if (slash != -1) {\n final String payload = path.substring(slash + 1);\n final long n;\n if (!payload.isEmpty()) {\n try {\n n = Long.parseLong(payload);\n } catch (final NumberFormatException ex) {\n throw new ProtocolException(\"Invalid request path: \" + path);\n }\n } else {\n // random length, but make sure at least something is sent\n n = 1 + (int)(Math.random() * 79.0);\n }\n response.setCode(HttpStatus.SC_OK);\n response.setEntity(new RandomEntity(n));\n } else {\n throw new ProtocolException(\"Invalid request path: \" + path);\n }\n }", "@Override\r\n\tpublic void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void handle(Request req, Response res) throws Exception {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String username = req.queryParams(\"user\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t\n\t\t\t\t//--- framework access ---//\n\t\t\t\tif (!Results.hasFrameworkAccess(op, path)) halt(404);\n\t\t\t\t//--- path exists? ---//\n\t\t\t\tif (!Directories.isExist(path)) halt(404);\n\t\t\t\t//--- section and path access ---//\n\t\t\t\tif (!AccessManager.hasAccess(username, path)) halt(401);\n\n\t\t\t}", "public interface Handler {\n boolean supports(HttpServletRequest request);\n\n void handle(HttpServletRequest request, HttpServletResponse response);\n}", "protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response)\r\n/* 27: */ throws Exception\r\n/* 28: */ {\r\n/* 29:84 */ Object command = getCommand(request);\r\n/* 30:85 */ ServletRequestDataBinder binder = bindAndValidate(request, command);\r\n/* 31:86 */ BindException errors = new BindException(binder.getBindingResult());\r\n/* 32:87 */ return handle(request, response, command, errors);\r\n/* 33: */ }", "@Override\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {\n }", "public void handleRequest(ExtractionRequest request);", "public void handle(HttpExchange exch) {\n\n }", "public void handleRequest(String request) throws IOException {\n\n String method = getMethod(request);\n\n this.uri = ToolBox.getUri(request);\n this.url = ToolBox.getUrl(uri);\n this.extension = ToolBox.getExtension(url);\n\n System.out.println(\"method :\" + method);\n switch (method) {\n case \"GET\":\n doGet();\n break;\n case \"POST\":\n doPost();\n break;\n case \"HEAD\":\n doHead();\n break;\n case \"PUT\":\n doPut();\n break;\n case \"DELETE\":\n doDelete();\n break;\n default:\n statusCode = BAD_REQUEST;\n this.sendHeader(statusCode, \"text/html\", null);\n break;\n }\n this.out.flush();\n this.out.close();\n }", "public void handle(Element xmlRequest, HttpServletRequest req, HttpServletResponse res) throws IOException;", "@FunctionalInterface\npublic interface ParamsHandlerFunc extends BaseHandlerFunc{\n\n default String handleRequest(Request request, Response response) {\n String check = checkSign(request);\n if (StringUtils.isNotBlank(check)) {\n return check;\n }\n Map<String, String> id = request.params();\n Answer processed = process(id);\n response.status(processed.getCode());\n return dataToJson(processed);\n }\n\n Answer process(Map<String, String> data);\n}", "@Override\n public void postHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, ModelAndView modelAndView) throws Exception {\n }", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3) throws Exception {\n\r\n\t}", "protected abstract ModelAndView handle(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse, Object paramObject, BindException paramBindException)\r\n/* 36: */ throws Exception;", "@Override\r\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n ModelAndView modelAndView) throws Exception {\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\r\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse res,\n\t\t\tObject arg2, ModelAndView arg3) throws Exception {\n\t\t\n\t}", "public interface HttpRequestHandler {\n public boolean canHandle(String uri);\n public httpResponse handle(httpRequest request);\n}", "public interface Handler {\n void handleRequest(String s);\n}", "public interface RequestHandler {\n\tpublic Map<String,Object> handleRequest(Map<String,Object> request,\n\t\t\t InetAddress client);\n}", "@Override\r\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n ModelAndView modelAndView) throws Exception {\n\r\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\n\t\t\tthrows Exception {\n\t\n\t}", "void handle(T t);", "@Override\n\t\t\tpublic boolean preHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2) throws Exception {\n\t\t\t\tSystem.out.println(\"自定义拦截器preHandle\");\n\t\t\t\treturn true;\n\t\t\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1,\r\n\t\t\tObject arg2, ModelAndView arg3) throws Exception {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1,\r\n\t\t\tObject arg2, ModelAndView arg3) throws Exception {\n\r\n\t}", "private void requestHandler(Object context)\n {\n final String funcName = \"requestHandler\";\n @SuppressWarnings(\"unchecked\")\n TrcRequestQueue<Request>.RequestEntry entry = (TrcRequestQueue<Request>.RequestEntry) context;\n Request request = entry.getRequest();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.TASK, \"request=%s\", request);\n }\n\n request.canceled = entry.isCanceled();\n if (!request.canceled)\n {\n if (request.readRequest)\n {\n request.buffer = readData(request.address, request.length);\n if (debugEnabled)\n {\n if (request.buffer != null)\n {\n dbgTrace.traceInfo(funcName, \"readData(addr=0x%x,len=%d)=%s\",\n request.address, request.length, Arrays.toString(request.buffer));\n \n }\n }\n }\n else\n {\n request.length = writeData(request.address, request.buffer, request.length);\n }\n }\n\n if (request.completionEvent != null)\n {\n request.completionEvent.set(true);\n }\n\n if (request.completionHandler != null)\n {\n request.completionHandler.notify(request);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.TASK);\n }\n }", "@Override\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\n\t\t\tthrows Exception {\n\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\n\t\t\tthrows Exception {\n\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\n\t\t\tthrows Exception {\n\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\n\t\t\tthrows Exception {\n\n\t}", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\n\t\t\tthrows Exception {\n\t\t\n\t}", "public interface RequestHandler {\r\n /**\r\n * Handle the request and response.\r\n *\r\n *\r\n * @param xmlRequest\r\n * the xml request element\r\n * @param req\r\n * the http request\r\n * @param res\r\n * the http response\r\n * @throws IllegalArgumentException\r\n * if argument is null\r\n * @throws IOException\r\n * if I/O error occurs\r\n */\r\n public void handle(Element xmlRequest, HttpServletRequest req, HttpServletResponse res) throws IOException;\r\n\r\n}", "Handler<Q, R> handler();", "public interface Handle {\n public void handle(HttpExchange httpExchange);\n}", "@Override\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1,\n\t\t\tObject arg2, ModelAndView arg3) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest arg0, HttpServletResponse arg1,\n\t\t\tObject arg2, ModelAndView arg3) throws Exception {\n\t\t\n\t}", "@Override\n\t\t\tpublic Object handle(Request req, Response res) {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t//--- list will list down all available results for a course ---//\n\t\t\t\tif (op.equals(\"list\")) return Results.list(path);\n\t\t\t\t//--- get will display one single result ---//\n\t\t\t\telse if (op.equals(\"get\")) return Results.get(path);\n\t\t\t\telse return null;\n\t\t\t}", "@Override\n\t\t\tpublic Object handle(Request req, Response res) {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t//--- list will list down all available results for a course ---//\n\t\t\t\tif (op.equals(\"list\")) return Results.list(path);\n\t\t\t\t//--- get will display one single result ---//\n\t\t\t\telse if (op.equals(\"get\")) return Results.get(path);\n\t\t\t\telse return null;\n\t\t\t}", "public void defaultHandle( Resolver resolver ){\n sendResponse( resolver );\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object arg2, ModelAndView arg3)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object arg2, ModelAndView arg3)\n\t\t\tthrows Exception {\n\t\t\n\t}", "public void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\n throws Exception {\n }", "@Override\n\tpublic T handleResponse(HttpResponse arg0) throws ClientProtocolException,\n\t\t\tIOException {\n\t\treturn (this.parser != null && this.processor != null) ? this.processor\n\t\t\t\t.process(this.parser.parse(arg0)) : null;\n\t}", "public abstract Response read(Request request, Response response);", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {\n\t\tsuper.postHandle(request, response, handler, modelAndView);\n\t}", "@RequestMapping(value = \"/index\", method = { RequestMethod.GET,\r\n\t\t\tRequestMethod.POST })\r\n\tpublic ModelAndView handleRequest(HttpServletRequest arg0,\r\n\t\t\tHttpServletResponse arg1) throws Exception {\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\tmodelAndView.addObject(\"message\", \"test/index\");\r\n\t\tmodelAndView.setViewName(\"helloWorld\");\r\n\t\treturn modelAndView;\r\n\t}", "@Override\r\n\tpublic void onOk(HttpRequest paramHttpRequest, Object paramObject) {\n\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "private void handleRequest(Request request) throws IOException{\n switch (request){\n case NEXTODD:\n case NEXTEVEN:\n new LocalThread(this, request, nextOddEven).start();\n break;\n case NEXTPRIME:\n case NEXTEVENFIB:\n case NEXTLARGERRAND:\n new NetworkThread(this, userID, serverIPAddress, request).start();\n break;\n default:\n break;\n }\n }", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Routes( { @Route( method = Method.ANY, path = \":?path=(.*)\", binding = BindingType.raw ) } )\n public void handle( final HttpServerRequest request )\n {\n ResponseUtils.setStatus( ApplicationStatus.OK, request );\n\n request.pause();\n String path = request.params()\n .get( PathParam.path.key() );\n\n if ( path != null && ( path.length() < 1 || path.equals( \"/\" ) ) )\n {\n path = null;\n }\n\n VertXWebdavRequest req = null;\n final VertXWebdavResponse response = new VertXWebdavResponse( request.response() );\n\n try\n {\n String contextPath = masterRouter.getPrefix();\n if ( contextPath == null )\n {\n contextPath = \"\";\n }\n\n req = new VertXWebdavRequest( request, contextPath, \"/mavdav\", path, null );\n\n service.service( req, response );\n\n }\n catch ( WebdavException | IOException e )\n {\n logger.error( String.format( \"Failed to service mavdav request: %s\", e.getMessage() ), e );\n formatResponse( e, request );\n }\n finally\n {\n IOUtils.closeQuietly( req );\n IOUtils.closeQuietly( response );\n\n try\n {\n request.response()\n .end();\n }\n catch ( final IllegalStateException e )\n {\n }\n }\n }", "public void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest paramHttpServletRequest,\r\n\t\t\tHttpServletResponse paramHttpServletResponse, Object paramObject,\r\n\t\t\tModelAndView paramModelAndView) throws Exception {\n\t\t\r\n\t}", "private void handleHttpRequest(ChannelHandlerContext ctx, FullHttpRequest req) throws Exception {\n if (!req.decoderResult().isSuccess()) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, BAD_REQUEST));\n return;\n }\n\n // Allow only GET methods.\n if (req.method() != GET) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, FORBIDDEN));\n return;\n }\n\n // route handler\n if (\"/ws\".equals(req.uri())) {\n WebSocketServerHandshakerFactory wsFactory = new WebSocketServerHandshakerFactory(\n \"ws://\" + req.headers().get(HOST) + \"/ws\", null, false);\n handshaker = wsFactory.newHandshaker(req);\n if (handshaker == null) {\n WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());\n } else {\n handshaker.handshake(ctx.channel(), req);\n addCtx(ctx, req.headers());\n }\n } else {\n handleFileRequest(ctx, req);\n }\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "public Errcode execute (HttpServletRequest request, T params) {return null;}", "@Override\n public void handleClientRequest(User sender, ISFSObject params) {\n }", "public void handleRequest () {\n\t// TODO: move this method to separate thread, \n\t// TODO: it may block in many places.\n\tRequestHandler rh = new RequestHandler ();\t\n\tCache<HttpHeader, HttpHeader> cache = proxy.getCache ();\n\tString method = request.getMethod ();\n\tif (!method.equals (\"GET\") && !method.equals (\"HEAD\"))\n\t cache.remove (request);\n\t\t\n\trh.entry = cache.getEntry (request);\n\tif (rh.entry != null)\n\t rh.dataHook = rh.entry.getDataHook (proxy.getCache ());\n\n\tcheckNoStore (rh.entry);\n\tif (!rh.cond.checkMaxStale (request, rh) && checkMaxAge (rh))\n\t setMayUseCache (false);\n\t\n\trh.conditional = rh.cond.checkConditional (this, request, rh);\n\tif (partialContent (rh)) \n\t fillupContent (rh);\n\tcheckIfRange (rh);\n\n\tboolean mc = getMayCache ();\n\tif (getMayUseCache ()) {\n\t // in cache?\n\t if (rh.entry != null) {\n\t\tCacheChecker cc = new CacheChecker ();\n\t\tif (cc.checkCachedEntry (this, request, rh)) {\n\t\t return;\n\t\t}\n\t }\n\t}\n\t\n\tif (rh.content == null) {\n\t // Ok cache did not have a usable resource, \n\t // so get the resource from the net.\n\t // reset value to one before we thought we could use cache...\n\t mayCache = mc;\n\t SWC swc = new SWC (this, proxy.getOffset (), request, requestBuffer,\n\t\t\t tlh, clientResourceHandler, rh);\n\t swc.establish ();\n\t} else {\n\t resourceEstablished (rh);\n\t}\n }", "private void caseForfeit(Request request) {\n }", "private void processRequest(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) {\n\r\n\t}", "@Override\n public void handleRequest(HttpServerExchange exchange) throws Exception {\n if (exchange.isInIoThread()) {\n exchange.dispatch(this);\n return;\n }\n\n // We check if the engine was initially loaded or at least tried to be loaded\n if (currentEngine.get() == null) {\n Optional<ScriptRunner> optRunner = loadAndSetScriptRunner();\n if (Boolean.parseBoolean(refresh)) {\n optRunner.ifPresent(runner -> {\n reloadOnChange(runner.getFile());\n });\n }\n }\n\n Optional<ScriptRunner> runner = currentEngine.get();\n if (runner.isPresent()) {\n try {\n Invocable invocable = (Invocable) runner.get().getEngine();\n JSFilterData data = new JSFilterData(exchange, next, runner.get().getScriptLogger());\n invocable.invokeFunction(\"handleRequest\", data);\n } catch (ScriptException | NoSuchMethodException invocationException) {\n LOGGER.warning(\"undertow-jsfilters: failure calling method '\" + \"handleRequest\" + \"' in file => \" + this.fileName);\n LOGGER.throwing(fileName, \"handleRequest\", invocationException);\n next.handleRequest(exchange);\n return;\n }\n } else {\n next.handleRequest(exchange);\n return;\n }\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"执行postHandle操作\");\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "@Override\n\tpublic ModelAndView handleRequest(HttpServletRequest req,\n\t\t\tHttpServletResponse res) throws Exception {\n\t\treturn null;\n\t}", "protected abstract void processRequest( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException;", "public void handle(HttpRequest request, HttpResponse response, HttpContext context)\n\t\t\t\tthrows HttpException, IOException {\n\t\t\tString method = request.getRequestLine().getMethod().toUpperCase(Locale.ROOT);\n\t\t\tif (!method.equals(\"GET\") && !method.equals(\"POST\") \n\t\t\t\t\t&& !method.equals(\"HEAD\") && !method.equals(\"DELETE\")) {\n\t\t\t\tthrow new MethodNotSupportedException(method + \" method not supported\");\n\t\t\t}\n\t\t\t\n\t\t\tif (method.equals(\"POST\") && request instanceof HttpEntityEnclosingRequest) {\n\t\t\t\tHttpEntity httpEntity = ((HttpEntityEnclosingRequest) request).getEntity();\n\t\t\t\tinsertToTable(httpEntity);\n\t\t\t}\n\t\t\t\n\t\t\tString message = getMessage(method);\n\t\t\t\n\t\t\tHttpCoreContext coreContext = HttpCoreContext.adapt(context);\n\t\t\tHttpConnection conn = coreContext.getConnection(HttpConnection.class);\n\t\t\tresponse.setStatusCode(HttpStatus.SC_OK);\n\t\t\tresponse.setEntity(new StringEntity(message, ContentType.TEXT_PLAIN));\n\t\t\tSystem.out.println(conn + \": send message \" + message);\n\t\t}", "@Override\n public PooledHttpResponse serve(ServiceRequestContext ctx, PooledHttpRequest req) throws Exception {\n assert !(unwrap() instanceof PooledHttpService);\n return PooledHttpResponse.of(unwrap().serve(ctx, req));\n }", "protected abstract ClassicHttpResponse execute(ClassicHttpRequest request, HttpClientContext context) throws IOException;", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tsuper.postHandle(request, response, handler, modelAndView);\n\t}" ]
[ "0.82594067", "0.80292904", "0.77884597", "0.7734351", "0.7527741", "0.7182933", "0.7134927", "0.6962446", "0.6951441", "0.685188", "0.6766715", "0.6749284", "0.6719926", "0.6696455", "0.6639234", "0.65955037", "0.65375423", "0.65369284", "0.64291984", "0.64137506", "0.63815826", "0.63443035", "0.6315145", "0.6313818", "0.6311236", "0.630824", "0.62947536", "0.62840486", "0.62544924", "0.62523794", "0.62435406", "0.62435406", "0.62255174", "0.62255174", "0.6221938", "0.620901", "0.6205784", "0.62035036", "0.619801", "0.61946374", "0.61931884", "0.61920154", "0.61717665", "0.61687994", "0.6166161", "0.6142792", "0.61408097", "0.61408097", "0.61408097", "0.61408097", "0.61357325", "0.61300004", "0.6128731", "0.6128051", "0.6121071", "0.6113094", "0.6113094", "0.60960513", "0.60960513", "0.608975", "0.6085688", "0.6085688", "0.6068547", "0.6050849", "0.60326916", "0.6027309", "0.60181767", "0.6014616", "0.6009616", "0.6005839", "0.60043126", "0.5991346", "0.59897774", "0.59897774", "0.59897774", "0.59897774", "0.59897774", "0.59897774", "0.59897774", "0.59857374", "0.5975897", "0.5968699", "0.5952906", "0.5945746", "0.5945746", "0.5941021", "0.59351873", "0.593344", "0.5932966", "0.59197295", "0.59179926", "0.59171253", "0.59165865", "0.59138525", "0.59113216", "0.59093505", "0.59077257", "0.59018445", "0.5897428", "0.5892182" ]
0.618953
42
Checks whether Chrome is the runtime host of the WebAPK asynchronously. Accesses the ApplicationStateListener needs to be called on UI thread.
public static void checkChromeBacksWebApkAsync(String webApkPackageName, WebApkIdentityServiceClient.CheckBrowserBacksWebApkCallback callback) { ThreadUtils.assertOnUiThread(); if (sListener == null) { // Registers an application listener to disconnect all connections to WebAPKs // when Chrome is stopped. sListener = new ApplicationStatus.ApplicationStateListener() { @Override public void onApplicationStateChange(int newState) { if (newState == ApplicationState.HAS_STOPPED_ACTIVITIES || newState == ApplicationState.HAS_DESTROYED_ACTIVITIES) { disconnectFromAllServices(false /* waitForPendingWork */); ApplicationStatus.unregisterApplicationStateListener(sListener); sListener = null; } } }; ApplicationStatus.registerApplicationStateListener(sListener); } WebApkIdentityServiceClient.getInstance(UiThreadTaskTraits.DEFAULT) .checkBrowserBacksWebApkAsync( ContextUtils.getApplicationContext(), webApkPackageName, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasChromeVersion();", "public void checkHandler()\n {\n ContextManager.checkHandlerIsRunning();\n }", "private Boolean isExternalBackendRunning() {\n\t\ttry {\n\t\t\tHttpResponse response = this.http.get(this.guid);\n\t\t\tif (HTTP.getCode(response) != 200) {\n\t\t\t\tHTTP.release(response);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn HTTP.getString(response).equals(Backend.OUTPUT_GUID);\n\t\t} catch (IOException exception) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean checkWaitingForWindows() {\n this.mHaveBootMsg = false;\n this.mHaveApp = false;\n this.mHaveWallpaper = false;\n this.mHaveKeyguard = true;\n if (getWindow(new Predicate() {\n /* class com.android.server.wm.$$Lambda$DisplayContent$BgTlvHbVclnASzMrvERWxyMVA */\n\n @Override // java.util.function.Predicate\n public final boolean test(Object obj) {\n return DisplayContent.this.lambda$checkWaitingForWindows$20$DisplayContent((WindowState) obj);\n }\n }) != null) {\n return true;\n }\n boolean wallpaperEnabled = this.mWmService.mContext.getResources().getBoolean(17891452) && this.mWmService.mContext.getResources().getBoolean(17891393) && !this.mWmService.mOnlyCore;\n if (WindowManagerDebugConfig.DEBUG_SCREEN_ON) {\n Slog.i(TAG, \"******** booted=\" + this.mWmService.mSystemBooted + \" msg=\" + this.mWmService.mShowingBootMessages + \" haveBoot=\" + this.mHaveBootMsg + \" haveApp=\" + this.mHaveApp + \" haveWall=\" + this.mHaveWallpaper + \" wallEnabled=\" + wallpaperEnabled + \" haveKeyguard=\" + this.mHaveKeyguard);\n }\n if (!this.mWmService.mSystemBooted && !this.mHaveBootMsg) {\n return true;\n }\n if (!this.mWmService.mSystemBooted || ((this.mHaveApp || this.mHaveKeyguard) && (!wallpaperEnabled || this.mHaveWallpaper))) {\n return false;\n }\n return true;\n }", "@java.lang.Override\n public boolean hasChromeVersion() {\n return instance.hasChromeVersion();\n }", "@Test\n public void testReturnsNullIfHostBrowserInManifestNotFoundAndAnotherBrowserSupportingWebApk() {\n mockInstallBrowsers(new String[] {ANOTHER_BROWSER_INSTALLED_SUPPORTING_WEBAPKS}, null);\n setHostBrowserInMetadata(BROWSER_UNINSTALLED_SUPPORTING_WEBAPKS);\n setHostBrowserInSharedPreferences(null);\n\n String hostBrowser = WebApkUtils.getHostBrowserPackageName(mContext);\n Assert.assertNull(hostBrowser);\n }", "private static final native boolean isSupported()/*-{\n\t\treturn !!(chrome.extension);\n\t}-*/;", "@Test\n public void testReturnsHostBrowserInManifestIfInstalled() {\n String expectedHostBrowser = BROWSER_INSTALLED_SUPPORTING_WEBAPKS;\n mockInstallBrowsers(sInstalledBrowsers, ANOTHER_BROWSER_INSTALLED_SUPPORTING_WEBAPKS);\n setHostBrowserInMetadata(expectedHostBrowser);\n // Simulates there isn't any host browser stored in the SharedPreference.\n setHostBrowserInSharedPreferences(null);\n\n String hostBrowser = WebApkUtils.getHostBrowserPackageName(mContext);\n Assert.assertEquals(hostBrowser, expectedHostBrowser);\n\n WebApkUtils.resetCachedHostPackageForTesting();\n // Simulates there is a host browser stored in the SharedPreference but uninstalled.\n setHostBrowserInSharedPreferences(BROWSER_UNINSTALLED_SUPPORTING_WEBAPKS);\n hostBrowser = WebApkUtils.getHostBrowserPackageName(mContext);\n Assert.assertEquals(expectedHostBrowser, hostBrowser);\n }", "public static boolean isMainThread() {\n if (!initialized)\n return true; // always return true if the app is not initialized\n // properly\n if (thread_ref != null)\n return thread_ref.get() == Thread.currentThread();\n return false;\n }", "@ReactMethod\n public void isAppOnForeground(Promise promise) {\n promise.resolve(Tracking.isAppOnForeground());\n }", "private boolean checkConnection() {\n return InternetConnectivityReceiver.isConnected();\n }", "private void checkIfAlive() {\n synchronized (this) {\n if (!mIsAlive) {\n Log.e(LOG_TAG, \"use of a released dataHandler\", new Exception(\"use of a released dataHandler\"));\n //throw new AssertionError(\"Should not used a MXDataHandler\");\n }\n }\n }", "public boolean isConnectorRuntimeInitialized() {\n List<ServiceHandle<ConnectorRuntime>> serviceHandles =\n connectorRuntimeHabitat.getAllServiceHandles(ConnectorRuntime.class);\n for(ServiceHandle<ConnectorRuntime> inhabitant : serviceHandles){\n // there will be only one implementation of connector-runtime\n return inhabitant.isActive();\n }\n return true; // to be safe\n }", "public boolean isListenerRunning(){\n\t\tsynchronized (httpServerMutex) {\n\t\t\tif( webServer == null )\n\t\t\t\treturn false;\n\t\t\telse{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}", "private boolean isSecondBrowserServiceRunning() {\n ActivityManager activityManager =\n (ActivityManager) mActivityTestRule.getActivity().getSystemService(\n Context.ACTIVITY_SERVICE);\n for (ActivityManager.RunningServiceInfo si : activityManager.getRunningServices(65536)) {\n if (si.pid == mSecondBrowserServicePid) return true;\n }\n return false;\n }", "private static boolean m61442b() {\n if (Looper.getMainLooper().getThread() == Thread.currentThread()) {\n return true;\n }\n return false;\n }", "@Test\n public void testReturnsHostBrowserInSharedPreferenceIfInstalled() {\n String expectedHostBrowser = BROWSER_INSTALLED_SUPPORTING_WEBAPKS;\n mockInstallBrowsers(sInstalledBrowsers, ANOTHER_BROWSER_INSTALLED_SUPPORTING_WEBAPKS);\n setHostBrowserInMetadata(ANOTHER_BROWSER_INSTALLED_SUPPORTING_WEBAPKS);\n setHostBrowserInSharedPreferences(expectedHostBrowser);\n\n String hostBrowser = WebApkUtils.getHostBrowserPackageName(mContext);\n Assert.assertEquals(expectedHostBrowser, hostBrowser);\n }", "public abstract boolean isMainThread();", "@Override\n public void run() {\n if (mClient.getWebContents() == null) return;\n\n // If the launch was from an External app, Chrome came from the background and\n // acted as an intermediate link redirector between two apps (crbug.com/487938).\n if (mClient.wasTabLaunchedFromExternalApp()) {\n if (mClient.getOrCreateRedirectHandler().wasTaskStartedByExternalIntent()) {\n // If Chrome was only launched to perform a redirect, don't keep its\n // task in history.\n mClient.getActivity().finishAndRemoveTask();\n } else {\n // Takes Chrome out of the back stack.\n mClient.getActivity().moveTaskToBack(false);\n }\n }\n // Closing tab must happen after we potentially call finishAndRemoveTask, as\n // closing tabs can lead to the Activity being finished, which would cause\n // Android to ignore the finishAndRemoveTask call, leaving the task around.\n mClient.closeTab();\n }", "public static boolean isNetworkSettingsApkAvailable() {\n // check whether the target handler exist in system\n boolean isVendorNetworkSettingApkAvailable = false;\n IExtTelephony extTelephony = getIExtTelephony();\n try {\n if (extTelephony != null &&\n extTelephony.isVendorApkAvailable(\"com.qualcomm.qti.networksetting\")) {\n isVendorNetworkSettingApkAvailable = true;\n }\n } catch (RemoteException ex) {\n // could not connect to extphone service, launch the default activity\n log(\"couldn't connect to extphone service, launch the default activity\");\n }\n return isVendorNetworkSettingApkAvailable;\n }", "@Test\n public void testReturnsNullWhenNoBrowserInstalled() {\n String hostBrowser = WebApkUtils.getHostBrowserPackageName(mContext);\n Assert.assertNull(hostBrowser);\n }", "public boolean isLaunched();", "@CalledByNative\n @Override\n protected boolean isInstalledWebappDelegateGeolocation() {\n return mDelegate.isInstalledWebappDelegateGeolocation();\n }", "@Override\n public native boolean isAutoWaitForIdle();", "@Override\n\tpublic boolean isAsyncStarted() {\n\t\treturn false;\n\t}", "private boolean isGooglePlayServicesAvailable() {\r\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n final int connectionStatusCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\r\n return connectionStatusCode == ConnectionResult.SUCCESS;\r\n }", "public Boolean isRunning() {\n\t\t// We don't know if it is an external process or not yet ---------------\n\t\t// (first check in the program or after a stop)\n\n\t\tif (this.isManagedExternally == null) {\n\t\t\tif (this.isExternalBackendRunning()) {\n\t\t\t\tthis.isManagedExternally = true;\n\t\t\t\treturn true; // to avoid unnecessary duplicate request below\n\t\t\t} else {\n\t\t\t\tthis.isManagedExternally = false;\n\t\t\t}\n\t\t}\n\n\t\t// Externally managed --------------------------------------------------\n\n\t\tif (this.isManagedExternally) {\n\t\t\treturn this.isExternalBackendRunning();\n\t\t}\n\n\t\t// We manage the process ourself ---------------------------------------\n\n\t\treturn this.processRunner.isRunning();\n\t}", "@RequiresPermission(Manifest.permission.ACCESS_NETWORK_STATE)\n public static boolean isNetworkAvailable(Context cxt) {\n NetworkInfo network = getActiveNetworkInfo(cxt);\n return network != null && network.isConnected();\n }", "boolean hasApplicationProcessInstance();", "boolean isThreadedAsyncMode();", "@Test\n public void testReturnsNullWhenDefaultBrowserDoesNotSupportWebApks() {\n mockInstallBrowsers(sInstalledBrowsers, BROWSER_INSTALLED_NOT_SUPPORTING_WEBAPKS);\n setHostBrowserInMetadata(null);\n setHostBrowserInSharedPreferences(null);\n\n String hostBrowser = WebApkUtils.getHostBrowserPackageName(mContext);\n Assert.assertNull(hostBrowser);\n }", "private boolean isServiceAvailable() {\n if (mComponentName == null) {\n mComponentName = resolveAttentionService(mContext);\n }\n return mComponentName != null;\n }", "public boolean isWebShowing();", "public boolean hasNativeAlertHandler() {\n return hasNativeAlertHandler;\n }", "public static boolean isRunning()\n {\n synchronized( Lifecycle.class ) {\n return context != null;\n }\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(mActivity);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(getActivity());\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "@MainThread\n public abstract boolean shouldFetchFromNetwork();", "private boolean isAppInForeground() {\n ActivityManager manager = (ActivityManager) this.getSystemService(Context.ACTIVITY_SERVICE);\n\n List<ActivityManager.RunningAppProcessInfo> appProcesses = manager.getRunningAppProcesses();\n\n if (appProcesses == null) {\n return false;\n }\n\n for (ActivityManager.RunningAppProcessInfo appProcess : appProcesses) {\n if (appProcess.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND\n && appProcess.processName.equals(this.getPackageName())) {\n return true;\n }\n }\n\n return false;\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "private boolean servicesConnected() {\n\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Log.d(ClientSideUtils.APPTAG, getString(R.string.play_services_available));\n return true;\n \n } else {\n // Display an error dialog\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), ClientSideUtils.APPTAG);\n }\n return false;\n }\n }", "private boolean isConnected_preQ() {\n if (checkNetworkStatePermission()) return false;\n\n NetworkInfo activeNetworkInfo = getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "boolean hasHost();", "boolean hasHost();", "private boolean isSupportedInternal() {\n boolean z = false;\n synchronized (this.mLock) {\n if (this.mServiceManager == null) {\n Log.e(TAG, \"isSupported: called but mServiceManager is null!?\");\n return false;\n }\n try {\n if (this.mServiceManager.getTransport(IWifi.kInterfaceName, HAL_INSTANCE_NAME) != (byte) 0) {\n z = true;\n }\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Exception while operating on IServiceManager: \" + e);\n return false;\n }\n }\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n\n return connectionStatusCode == ConnectionResult.SUCCESS;\n\n }", "private static native boolean isDevelopmentMode()/*-{\n return typeof $wnd.__gwt_sdm !== 'undefined';\n }-*/;", "private boolean checkServiceIsRunning(){\r\n if (CurrentLocationUtil.isRunning()){\r\n doBindService();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "private boolean servicesAvailable() {\n int resultCode = GooglePlayServicesUtil.\n isGooglePlayServicesAvailable(this);\n if (ConnectionResult.SUCCESS == resultCode) {\n log(\"Google Play services is available\");\n return true;\n } else {\n log(\"Google Play services is not available\");\n showErrorDialog(resultCode);\n return false;\n }\n }", "public boolean isAppOnForeground() {\n\t\tString packageName = getApplicationContext().getPackageName();\n\t\tActivityManager activityManager = (ActivityManager) getApplicationContext()\n\t\t\t\t.getSystemService(Context.ACTIVITY_SERVICE);\n\t\tList<RunningAppProcessInfo> appProcesses = activityManager.getRunningAppProcesses();\n\t\tif (appProcesses == null)\n\t\t\treturn false;\n\t\tfor (RunningAppProcessInfo appProcess : appProcesses) {\n\t\t\t// The name of the process that this object is associated with.\n\t\t\tif (appProcess.processName.equals(packageName)\n\t\t\t\t\t&& appProcess.importance == RunningAppProcessInfo.IMPORTANCE_FOREGROUND) {\n\t\t\t\tSystem.out.println(\"Tag device Name found: ********success ***** \"+packageName);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean dispatchBeforeUnloadIfNeeded() {\n Tab currentTab = mTabProvider.getTab();\n if (currentTab.getWebContents().needToFireBeforeUnloadOrUnloadEvents()) {\n currentTab.getWebContents().dispatchBeforeUnload(false);\n return true;\n }\n return false;\n }", "private boolean isGooglePlayServicesAvailable() {\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (ConnectionResult.SUCCESS == status) {\n return true;\n } else {\n GooglePlayServicesUtil.getErrorDialog(status, this, 0).show();\n return false;\n }\n }", "boolean isBackgroundDataEnabled();", "public void testBackgroundCheckService() throws Exception {\n final Parcel data = Parcel.obtain();\n Intent serviceIntent = new Intent();\n serviceIntent.setClassName(SIMPLE_PACKAGE_NAME,\n SIMPLE_PACKAGE_NAME + SIMPLE_SERVICE);\n ServiceConnectionHandler conn = new ServiceConnectionHandler(mContext, serviceIntent,\n WAIT_TIME);\n\n ActivityManager am = mContext.getSystemService(ActivityManager.class);\n\n InstrumentationRegistry.getInstrumentation().getUiAutomation().grantRuntimePermission(\n STUB_PACKAGE_NAME, android.Manifest.permission.PACKAGE_USAGE_STATS);\n /*\n Log.d(\"XXXX\", \"Invoke: \" + cmd);\n Log.d(\"XXXX\", \"Result: \" + result);\n Log.d(\"XXXX\", SystemUtil.runShellCommand(getInstrumentation(), \"dumpsys package \"\n + STUB_PACKAGE_NAME));\n */\n\n ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo(\n SIMPLE_PACKAGE_NAME, 0);\n\n UidImportanceListener uidForegroundListener = new UidImportanceListener(mContext,\n appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_SERVICE, WAIT_TIME);\n uidForegroundListener.register();\n UidImportanceListener uidGoneListener = new UidImportanceListener(mContext,\n appInfo.uid, ActivityManager.RunningAppProcessInfo.IMPORTANCE_EMPTY, WAIT_TIME);\n uidGoneListener.register();\n\n WatchUidRunner uidWatcher = new WatchUidRunner(getInstrumentation(), appInfo.uid,\n WAIT_TIME);\n\n // First kill the process to start out in a stable state.\n mContext.stopService(serviceIntent);\n conn.bind();\n IBinder service = conn.getServiceIBinder();\n conn.unbind();\n try {\n service.transact(IBinder.FIRST_CALL_TRANSACTION, data, null, 0);\n } catch (RemoteException e) {\n }\n service = null;\n\n // Wait for uid's process to go away.\n uidGoneListener.waitForValue(ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE,\n ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE);\n assertEquals(ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE,\n am.getPackageImportance(SIMPLE_PACKAGE_NAME));\n\n // And wait for the uid report to be gone.\n uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null);\n\n String cmd = \"appops set \" + SIMPLE_PACKAGE_NAME + \" RUN_IN_BACKGROUND deny\";\n String result = SystemUtil.runShellCommand(getInstrumentation(), cmd);\n\n // This is a side-effect of the app op command.\n uidWatcher.expect(WatchUidRunner.CMD_IDLE, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, \"NONE\");\n\n // We don't want to wait for the uid to actually go idle, we can force it now.\n cmd = \"am make-uid-idle \" + SIMPLE_PACKAGE_NAME;\n result = SystemUtil.runShellCommand(getInstrumentation(), cmd);\n\n // Make sure app is not yet on whitelist\n cmd = \"cmd deviceidle whitelist -\" + SIMPLE_PACKAGE_NAME;\n result = SystemUtil.runShellCommand(getInstrumentation(), cmd);\n\n // We will use this to monitor when the service is running.\n conn.startMonitoring();\n\n try {\n // Try starting the service. Should fail!\n boolean failed = false;\n try {\n mContext.startService(serviceIntent);\n } catch (IllegalStateException e) {\n failed = true;\n }\n if (!failed) {\n fail(\"Service was allowed to start while in the background\");\n }\n\n // Put app on temporary whitelist to see if this allows the service start.\n cmd = String.format(\"cmd deviceidle tempwhitelist -d %d %s\",\n TEMP_WHITELIST_DURATION_MS, SIMPLE_PACKAGE_NAME);\n result = SystemUtil.runShellCommand(getInstrumentation(), cmd);\n\n // Try starting the service now that the app is whitelisted... should work!\n mContext.startService(serviceIntent);\n conn.waitForConnect();\n\n // Also make sure the uid state reports are as expected.\n uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null);\n uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE);\n\n // Good, now stop the service and give enough time to get off the temp whitelist.\n mContext.stopService(serviceIntent);\n conn.waitForDisconnect();\n\n uidWatcher.expect(WatchUidRunner.CMD_CACHED, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY);\n\n executeShellCmd(\"cmd deviceidle tempwhitelist -r \" + SIMPLE_PACKAGE_NAME);\n\n // Going off the temp whitelist causes a spurious proc state report... that's\n // not ideal, but okay.\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY);\n\n // We don't want to wait for the uid to actually go idle, we can force it now.\n cmd = \"am make-uid-idle \" + SIMPLE_PACKAGE_NAME;\n result = SystemUtil.runShellCommand(getInstrumentation(), cmd);\n\n uidWatcher.expect(WatchUidRunner.CMD_IDLE, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY);\n\n // Now that we should be off the temp whitelist, make sure we again can't start.\n failed = false;\n try {\n mContext.startService(serviceIntent);\n } catch (IllegalStateException e) {\n failed = true;\n }\n if (!failed) {\n fail(\"Service was allowed to start while in the background\");\n }\n\n // Now put app on whitelist, should allow service to run.\n cmd = \"cmd deviceidle whitelist +\" + SIMPLE_PACKAGE_NAME;\n result = SystemUtil.runShellCommand(getInstrumentation(), cmd);\n\n // Try starting the service now that the app is whitelisted... should work!\n mContext.startService(serviceIntent);\n conn.waitForConnect();\n\n uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE);\n\n // Okay, bring down the service.\n mContext.stopService(serviceIntent);\n conn.waitForDisconnect();\n\n uidWatcher.expect(WatchUidRunner.CMD_CACHED, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY);\n\n } finally {\n mContext.stopService(serviceIntent);\n conn.stopMonitoring();\n\n uidWatcher.finish();\n\n cmd = \"appops set \" + SIMPLE_PACKAGE_NAME + \" RUN_IN_BACKGROUND allow\";\n result = SystemUtil.runShellCommand(getInstrumentation(), cmd);\n cmd = \"cmd deviceidle whitelist -\" + SIMPLE_PACKAGE_NAME;\n result = SystemUtil.runShellCommand(getInstrumentation(), cmd);\n\n uidGoneListener.unregister();\n uidForegroundListener.unregister();\n\n data.recycle();\n }\n }", "private static boolean m4017c() {\n String property = System.getProperty(\"java.runtime.name\");\n if (property == null) {\n return false;\n }\n return property.toLowerCase(Locale.US).contains(AlibcMiniTradeCommon.PF_ANDROID);\n }", "private static final boolean isRunning() {\r\n /*\r\n * LogUtil.isRunning : shutdown detected : java.lang.Throwable at\r\n * org.ivoa.util.LogUtil.isRunning(LogUtil.java:151) at\r\n * org.ivoa.util.LogUtil.getLoggerDev(LogUtil.java:177) at\r\n * org.ivoa.web.servlet.BaseServlet.<clinit>(BaseServlet.java:69) at\r\n * sun.misc.Unsafe.ensureClassInitialized(Native Method) at\r\n * sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)\r\n * at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at\r\n * java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) at\r\n * java.lang.reflect.Field.getFieldAccessor(Field.java:899) at\r\n * java.lang.reflect.Field.set(Field.java:657) at\r\n * org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1644) at\r\n * org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1524) at\r\n * org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:707) at\r\n * org.apache.catalina.core.StandardContext.stop(StandardContext.java:4557) at\r\n * org.apache.catalina.manager.ManagerServlet.stop(ManagerServlet.java:1298) at\r\n * org.apache.catalina.manager.HTMLManagerServlet.stop(HTMLManagerServlet.java:622) at\r\n * org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:131)\r\n */\r\n if (LOGGING_DIAGNOSTICS && isShutdown) {\r\n if (SystemLogUtil.isDebugEnabled()) {\r\n SystemLogUtil.debug(\"LogUtil.isRunning : shutdown detected : \");\r\n }\r\n }\r\n\r\n return !isShutdown;\r\n }", "CompletableFuture<Void> isReadyAsync();", "@Asynchronous\n public Future<Boolean> compute() {\n observer.reset();\n return new AsyncResult<Boolean>(requestScopedObserver.isInitializedObserved());\n }", "private boolean arEngineAbilityCheck() {\n boolean isInstallArEngineApk = AREnginesApk.isAREngineApkReady(this);\n if (!isInstallArEngineApk && isRemindInstall) {\n Toast.makeText(this, \"Please agree to install.\", Toast.LENGTH_LONG).show();\n finish();\n }\n Log.d(TAG, \"Is Install AR Engine Apk: \" + isInstallArEngineApk);\n if (!isInstallArEngineApk) {\n startActivity(new Intent(this, ConnectAppMarketActivity.class));\n isRemindInstall = true;\n }\n return AREnginesApk.isAREngineApkReady(this);\n }", "public boolean verifyPageLoad() {\n\t\tboolean result = lnkLoginButton.isDisplayed();\n\t\tLog.info(\"Home Page Loaded Successfully\");\n\t\treturn result;\n\t}", "@Override\r\n public boolean isRunning()\r\n {\n return initialized;\r\n }", "@Test(priority = 2)\n public void verifyAppIsInstalled(){\n Assert.assertTrue(driver.isAppInstalled(bundleId), \"The App is not installed\");\n Log.info(\"App is installed\");\n }", "public boolean isServiceReady();", "public static boolean m18371b() {\n return Thread.currentThread() == Looper.getMainLooper().getThread();\n }", "public boolean isGooglePlayAvailable() {\n GoogleApiAvailability api= GoogleApiAvailability.getInstance();\n int isAvailable= api.isGooglePlayServicesAvailable(this);\n\n if (isAvailable == ConnectionResult.SUCCESS) {\n return true;\n }else if (api.isUserResolvableError(isAvailable)){\n Dialog dialog= api.getErrorDialog(this, isAvailable, 0);\n dialog.show();\n }else {\n Toast.makeText(this,\"Can't connect to Play Services\",Toast.LENGTH_LONG).show();\n }\n return false;\n }", "private boolean servicesConnected() {\n int resultCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n // Google Play services was not available for some reason\n } else {\n return false;\n }\n }", "private void doWiperAvailabiltiyCheck()\n {\n // Hardcode for now to make sure WPS is not triggered\n bWiperAvailable = true;\n\n mWifi = (WifiManager)getSystemService(mContext.WIFI_SERVICE);\n\n if ((mWifi == null) || ( (locationManager == null)|| ((locationProvider = locationManager.getProvider(LocationManager.NETWORK_PROVIDER )) == null)))\n {\n Log.e(TAG,\" Disable wiper : No object for WPS / Wifi Scans \");\n bWiperAvailable = false;\n }\n\n\n // call native function to trigger RPC from A11-> A9\n // informing about WPS capability\n //\n native_notify_wiper_available(bWiperAvailable);\n\n if (Config.LOGV)\n {\n Log.v(TAG, \"Wiper: Availability Check \"+ bWiperAvailable);\n }\n }", "static public boolean isLaunched()\n\t{\n\t\tif (g_currentLaunch == null)\n\t\t return false;\n\t\telse\n\t\t return true;\n\t}", "@java.lang.Override\n public boolean hasPlayready() {\n return playready_ != null;\n }", "private void CheckIfServiceIsRunning() {\n\t\tLog.i(\"Convert\", \"At isRunning?.\");\n\t\tif (eidService.isRunning()) {\n//\t\t\tLog.i(\"Convert\", \"is.\");\n\t\t\tdoBindService();\n\t\t} else {\n\t\t\tLog.i(\"Convert\", \"is not, start it\");\n\t\t\tstartService(new Intent(IDManagement.this, eidService.class));\n\t\t\tdoBindService();\n\t\t}\n\t\tLog.i(\"Convert\", \"Done isRunning.\");\n\t}", "public static boolean isBrowserChrome() {\r\n\t\treturn ConfigProperties.BROWSER.equalsIgnoreCase(CHROME);\r\n\t}", "public boolean isRunning()\n\t{\n\t\tif(mBoundService != null){\t// Service already started\n\t\t\tif(mBoundService.testThread != null && mBoundService.testThread.isAlive())\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}else{\n\t\t\tLog.v(\"4G Test\", \"mBoundService null not running\");\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean servicesConnected() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n }\n else {\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), Constants.APPTAG);\n }\n return false;\n }\n }", "private void checkGooglePlayServiceSDK() {\n //To change body of created methods use File | Settings | File Templates.\n final int googlePlayServicesAvailable = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);\n Log.i(TAG, \"googlePlayServicesAvailable:\" + googlePlayServicesAvailable);\n\n switch (googlePlayServicesAvailable) {\n case ConnectionResult.SERVICE_MISSING:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_NOT_INSTALLED);\n break;\n case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_SERVICE_UPDATE_REQUIRED);\n break;\n case ConnectionResult.SERVICE_DISABLED:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_DISABLED);\n break;\n case ConnectionResult.SERVICE_INVALID:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_INVALID);\n break;\n }\n }", "public void runOnAvailableCallback() {\n onAvailableCallback.run();\n }", "public boolean isHotLoadable();", "public boolean isGooglePlayServicesAvailable() {\n final int connectionStatusCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);\n if (GooglePlayServicesUtil.isUserRecoverableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n return false;\n } else if (connectionStatusCode != ConnectionResult.SUCCESS ) {\n return false;\n }\n return true;\n }", "boolean hasPlayready();", "private boolean shouldNavigationTypeStayInChrome(boolean isForTrustedCallingApp) {\n if (mInitialNavigationType == NAVIGATION_TYPE_FROM_RELOAD) return true;\n\n // If the app we would navigate to is trusted and what launched Chrome, allow the\n // navigation.\n if (isForTrustedCallingApp) return false;\n\n // Otherwise allow navigation out of the app only with a user gesture.\n return mInitialNavigationType == NAVIGATION_TYPE_FROM_LINK_WITHOUT_USER_GESTURE;\n }", "public boolean checkEngineStatus(){\r\n return isEngineRunning;\r\n }", "public boolean isRecognitionRunning() {\n return mRecognitionTask != null &&\n (mRecognitionTask.getStatus().equals(AsyncTask.Status.PENDING)\n || mRecognitionTask.getStatus().equals(AsyncTask.Status.RUNNING));\n }", "public void getDeviceEnterpriseInfo(Callback<OwnedState> callback) {\n // AsyncTask requires being called from UI thread.\n ThreadUtils.assertOnUiThread();\n assert callback != null;\n\n if (mOwnedState != null) {\n callback.onResult(mOwnedState);\n return;\n }\n\n mCallbackList.add(callback);\n\n if (mCallbackList.size() > 1) {\n // A pending callback is already being worked on, no need to start up a new thread.\n return;\n }\n\n if (mSkipAsyncCheckForTesting) return;\n\n // This is the first request, spin up a thread.\n try {\n new AsyncTask<OwnedState>() {\n // TODO: Unit test this function. https://crbug.com/1099262\n private OwnedState calculateIsRunningOnManagedProfile(Context context) {\n long startTime = SystemClock.elapsedRealtime();\n boolean hasProfileOwnerApp = false;\n boolean hasDeviceOwnerApp = false;\n PackageManager packageManager = context.getPackageManager();\n DevicePolicyManager devicePolicyManager =\n (DevicePolicyManager) context.getSystemService(\n Context.DEVICE_POLICY_SERVICE);\n\n for (PackageInfo pkg : packageManager.getInstalledPackages(/* flags= */ 0)) {\n assert devicePolicyManager != null;\n if (devicePolicyManager.isProfileOwnerApp(pkg.packageName)) {\n hasProfileOwnerApp = true;\n }\n if (devicePolicyManager.isDeviceOwnerApp(pkg.packageName)) {\n hasDeviceOwnerApp = true;\n }\n if (hasProfileOwnerApp && hasDeviceOwnerApp) break;\n }\n\n long endTime = SystemClock.elapsedRealtime();\n RecordHistogram.recordTimesHistogram(\n \"EnterpriseCheck.IsRunningOnManagedProfileDuration\",\n endTime - startTime);\n\n return new OwnedState(hasDeviceOwnerApp, hasProfileOwnerApp);\n }\n\n @Override\n protected OwnedState doInBackground() {\n Context context = ContextUtils.getApplicationContext();\n return calculateIsRunningOnManagedProfile(context);\n }\n\n @Override\n protected void onPostExecute(OwnedState result) {\n onEnterpriseInfoResult(result);\n }\n }.executeWithTaskTraits(TaskTraits.USER_VISIBLE);\n } catch (RejectedExecutionException e) {\n // This is an extreme edge case, but if it does happen then return null to indicate we\n // couldn't execute.\n Log.w(TAG, \"Thread limit reached, unable to determine managed state.\");\n\n // There will only ever be a single item in the queue as we only try()/catch() on the\n // first item.\n mCallbackList.remove().onResult(null);\n }\n }", "private boolean connect() {\n final Intent intent = new Intent(ACTION_MEDIA_SESSION_COMPAT);\n intent.setComponent(MEDIA_SESSION_COMPAT_PROVIDER_SERVICE);\n\n boolean bound = false;\n try {\n bound = mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE);\n } catch (Exception ex) {\n Log.e(TAG, \"Failed binding to the MediaSessionCompatProviderService of the \"\n + \"service app\");\n }\n\n if (bound) {\n try {\n mCountDownLatch.await(PROVIDER_SERVICE_CONNECTION_TIMEOUT_MS,\n TimeUnit.MILLISECONDS);\n } catch (InterruptedException ex) {\n Log.e(TAG, \"InterruptedException while waiting for onServiceConnected.\", ex);\n }\n }\n return mBinder != null;\n }", "@Override\n public final boolean isRunning() {\n return (this.running && runningAllowed());\n }", "private boolean checkGooglePlayServices() {\n int code = GooglePlayServicesUtil.isGooglePlayServicesAvailable(mActivity);\n if (code != ConnectionResult.SUCCESS) {\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(code, mActivity, Constants.RequestCode.HANDLE_GMS,\n new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialogInterface) {\n mActivity.finish();\n }\n });\n if (dialog != null) {\n dialog.show();\n }\n\n return false;\n }\n\n return true;\n }", "protected synchronized boolean checkConnectivity() {\n return this.connect();\n }", "private boolean supportsGooglePlayServices() {\n return GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) ==\n ConnectionResult.SUCCESS;\n }", "private boolean supportsGooglePlayServices() {\n return GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) ==\n ConnectionResult.SUCCESS;\n }", "@Override\n public void waitUntilPageObjectIsLoaded() {\n }", "public static boolean isAppIsInBackground(Context context) {\n boolean isInBackground = true;\n ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT_WATCH) {\n List <ActivityManager.RunningAppProcessInfo> runningProcesses = am.getRunningAppProcesses();\n for (ActivityManager.RunningAppProcessInfo processInfo : runningProcesses) {\n if (processInfo.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND) {\n for (String activeProcess : processInfo.pkgList) {\n if (activeProcess.equals(context.getPackageName())) {\n isInBackground = false;\n }\n }\n }\n }\n } else {\n List <ActivityManager.RunningTaskInfo> taskInfo = am.getRunningTasks(1);\n ComponentName componentInfo = taskInfo.get(0).topActivity;\n if (componentInfo.getPackageName().equals(context.getPackageName())) {\n isInBackground = false;\n }\n }\n \n return isInBackground;\n }", "private boolean checkPlayServices() {\n\t\tint resultCode = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(context);\n\t\tif (resultCode != ConnectionResult.SUCCESS) {\n\t\t\tif (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n\t\t\t\tGooglePlayServicesUtil.getErrorDialog(resultCode, context,\n\t\t\t\t\t\tPLAY_SERVICES_RESOLUTION_REQUEST).show();\n\t\t\t} else {\n\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\"This device is not supported.\", Toast.LENGTH_LONG)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isAlive() {\n\t\treturn (display != null && shell != null && !display.isDisposed() && !shell.isDisposed() && !isClosing);\n\t}", "public boolean isRunOnHost() {\n return Mode.HOST == mode;\n }", "private boolean checkExecution() {\n if (!checkPhoneStatusOK()) {\n return false;\n }\n if (!checkBatteryLevelOK()) {\n return false;\n }\n return true;\n }", "private boolean isNetworkStatusAvialable(Context applicationContext) {\n ConnectivityManager connectivityManager = (ConnectivityManager) getBaseContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivityManager != null) {\n NetworkInfo netInfos = connectivityManager.getActiveNetworkInfo();\n if (netInfos != null)\n if (netInfos.isConnected())\n\n return true;\n\n }\n\n return false;\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "public static boolean hasGooglePlayServices() {\n\t\tboolean isAvailable = false;\n\t\tint statusCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(mContext);\n\t\tif (statusCode == ConnectionResult.SUCCESS) {\n\t\t\tisAvailable = true;\n\t\t} else {\n\t\t\tisAvailable = false;\n\t\t}\n\t\treturn isAvailable;\n\t}", "@SuppressWarnings(\"deprecation\") //For more on why this is added, see - https://stackoverflow.com/q/45519439/5550161\n public boolean isBusyRecording() {\n ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {\n if (ScreenRecordService.class.getName().equals(service.service.getClassName())) {\n return true;\n }\n }\n return false;\n }" ]
[ "0.5796679", "0.544226", "0.5437004", "0.542458", "0.5411665", "0.53615063", "0.5265166", "0.52382475", "0.5171106", "0.5166184", "0.51399904", "0.5130263", "0.5116961", "0.50876653", "0.5081629", "0.5075526", "0.50224125", "0.50023365", "0.49979204", "0.49911347", "0.4987272", "0.49865085", "0.49611023", "0.49532294", "0.49502143", "0.49501646", "0.49441957", "0.49393383", "0.49375552", "0.49263442", "0.49151453", "0.49149632", "0.48995367", "0.48971257", "0.48968947", "0.48778358", "0.48628348", "0.4860881", "0.48564276", "0.48548448", "0.48548448", "0.48537728", "0.48489332", "0.48440704", "0.48440704", "0.48406172", "0.4836607", "0.4831262", "0.4825033", "0.4823262", "0.48179", "0.4816071", "0.4814769", "0.48067367", "0.48028237", "0.48005262", "0.4793617", "0.47886923", "0.4788477", "0.4778538", "0.4773109", "0.47721973", "0.4771656", "0.47710016", "0.47676432", "0.47642174", "0.47636196", "0.47592407", "0.47579348", "0.47533175", "0.47533077", "0.47527093", "0.4749009", "0.47478825", "0.47397605", "0.47360015", "0.4735221", "0.47326344", "0.47324228", "0.4725688", "0.4722077", "0.47171926", "0.47143117", "0.4713518", "0.47088745", "0.47074836", "0.47043228", "0.47027543", "0.47027543", "0.46954378", "0.46948743", "0.4686646", "0.46837747", "0.46831673", "0.4680408", "0.46749714", "0.46732825", "0.46732825", "0.46732062", "0.46673942" ]
0.6255384
0
Disconnect from all of the services of all WebAPKs.
public static void disconnectFromAllServices(boolean waitForPendingWork) { if (waitForPendingWork && WebApkServiceClient.hasPendingWork()) { PostTask.postDelayedTask(UiThreadTaskTraits.DEFAULT, ChromeWebApkHost::disconnectFromAllServicesImpl, WAIT_FOR_WORK_DISCONNECT_SERVICE_DELAY_MS); } else { disconnectFromAllServicesImpl(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void disconnectFromAllEndpoints() {\n for (Endpoint endpoint : mEstablishedConnections.values()) {\n mConnectionsClient.disconnectFromEndpoint(endpoint.getId());\n }\n mEstablishedConnections.clear();\n }", "public synchronized void closeAllConnections() {\n\t\tstop();\n\t}", "protected void stopAllEndpoints() {\n mConnectionsClient.stopAllEndpoints();\n mIsAdvertising = false;\n mIsDiscovering = false;\n mIsConnecting = false;\n mDiscoveredEndpoints.clear();\n mPendingConnections.clear();\n mEstablishedConnections.clear();\n }", "public void shutdownAll() throws IOException {\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif (this.get(i).getClient() != null) {\n\t\t\t\tthis.get(i).sendOkay(\"SHUTDOWN\");\n\t\t\t}\n\t\t}\n\t}", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "public void closeConnections() {\n for (Object i : connections.keySet().toArray()) {\n connections.get(i).closeConnection();\n }\n\n }", "public void shutdown() {\n for (Connection connection : connections) { //Try closing all connections\n closeConnection(connection);\n }\n }", "protected void stopAll() {\n\t\tif (this.udpServer!=null)\n\t\t\tthis.udpServer.interrupt();\n\t\tif (this.connectionServer!=null)\n\t\t\tthis.connectionServer.interrupt();\n\t\tthis.connectionServer=null; // supprime le TCPServer et les Sockets associés\n\t\tthis.udpServer=null; // supprime l'UDPServer et les Sockets associés\n\t\tif (this.agent.getUserStatusManager()!=null)\n\t\t\tfor (String u : this.agent.getUserStatusManager().getActiveUsers())\n\t\t\t\tthis.removeSocket(u);; // interrompt tous les UserSockets\n\t\tthis.mapSockets.clear();\n\t}", "@Override\n\t\tpublic void closeAll() {\n\t\t\tfor (ClientHandler clientHandler : new ArrayList<ClientHandler>(this.running)) {\n\t\t\t\tclientHandler.close();\n\t\t\t}\n\t\t}", "public void closeAllSessions() {\n\n // don't disconnect system user; need it to save database\n Session[] sessions = getAllSessions();\n\n for (int i = 0; i < sessions.length; i++) {\n sessions[i].close();\n }\n\n synchronized(this) {\n sessionMap.clear();\n }\n }", "public void cancelAllClients(){\n clientsPool.shutdownNow();\n }", "public synchronized void closeAllConnections() {\n closeConnections(availableConnections);\n availableConnections = new Vector();\n closeConnections(busyConnections);\n busyConnections = new Vector();\n }", "public synchronized void closeAllConnections() {\n closeConnections(availableConnections);\n availableConnections = new Vector();\n closeConnections(busyConnections);\n busyConnections = new Vector();\n }", "public void clearAllConnections() {\r\n clearAllConnections(false);\r\n }", "@Deprecated\n public static void deleteAllConnections() {\n synchronized (HBASE_INSTANCES) {\n Set<HConnectionKey> connectionKeys = new HashSet<HConnectionKey>();\n connectionKeys.addAll(HBASE_INSTANCES.keySet());\n for (HConnectionKey connectionKey : connectionKeys) {\n deleteConnection(connectionKey, false);\n }\n HBASE_INSTANCES.clear();\n }\n }", "protected synchronized void stopClients() throws Exception {\r\n if (this.clients != null) {\r\n for (Client client : this.clients) {\r\n client.stop();\r\n }\r\n }\r\n }", "public void stopAll() throws CallError, InterruptedException{\n if (isAsynchronous)\n service.call(\"stopAll\");\n else\n service.call(\"stopAll\").get();\n }", "public void clearAllClientConnections(String clientName) {\n for(int io = 0; io < 2; io++) {\n List<String> inputs = ports.get(clientName)[io];\n for (String input : inputs) {\n String thisPort = clientName + \":\" + input;\n //get all connections\n String cmd = \"/usr/local/bin/jack_lsp -c \" + thisPort;\n String connections = EZShell.call(cmd.split(\"[ ]\"));\n String[] lines = connections.split(\"[\\n]\");\n //connections start on line 1\n for (int i = 1; i < lines.length; i++) {\n String thatPort = lines[i].trim();\n String[] cmd2 = {\"/usr/local/bin/jack_disconnect\", thisPort, thatPort};\n EZShell.callNoResult(cmd2);\n System.out.println(\"disconnected: \" + thisPort + \" \" + thatPort);\n }\n }\n }\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}", "public void doDisconnect() {\n synchronized (getStreamSyncRoot()) {\n Object[] streams = streams();\n if (!(streams == null || streams.length == 0)) {\n for (Object stream : streams) {\n if (stream instanceof PulseAudioStream) {\n try {\n ((PulseAudioStream) stream).disconnect();\n } catch (IOException e) {\n }\n }\n }\n }\n }\n super.doDisconnect();\n }", "public static void disconnectAll(ServerInfo info) {\n for (ProxiedPlayer player : info.getPlayers()) {\n player.disconnect(\"The server is currently unavailable, please try again soon!\");\n }\n }", "private void terminateAllClientConnections() {\n log.info(\"Terminate command received; Closing sockets..\");\n log.info(\"Attempting closing client sockets..\");\n this.socketList.forEach(socket -> {\n try {\n socket.close();\n } catch (Exception e) {\n log.error(\"Error closing client socket address\", socket.getRemoteSocketAddress().toString());\n }\n });\n log.info(\"Attempting closing server listening socket\");\n try {\n this.serverSocket.close();\n this.running.set(false);\n } catch (Exception e) {\n log.error(\"Error closing server socket port\", port);\n }\n }", "public void closeAll()\n {\n closeAllTopicPublishers();\n closeAllTopicSubscribers();\n closeAllTopicDurableSubscribers();\n }", "private void closeConnections() {\r\n for (Iterator<Connection> it = connections.values().iterator(); it.hasNext();) {\r\n TransConnection conn = (TransConnection) it.next();\r\n try {\r\n conn.setCloseAllowed(true);\r\n conn.close();\r\n } catch (SQLException ex) {\r\n log.severe(\"Connection close failure: \" + ex.getMessage());\r\n }\r\n }\r\n connections.clear();\r\n }", "void unsubscribeAll();", "@Override\r\n public void stopAll() {\r\n Log.d(TAG, \"Number of services: \"+ taskRequesterMap.size());\r\n Iterator<Map.Entry<String, TaskRequester>> iterator = taskRequesterMap.entrySet().iterator();\r\n while (iterator.hasNext()) {\r\n Map.Entry<String, TaskRequester> item = iterator.next();\r\n\r\n String name = item.getValue().getName();\r\n String className = item.getValue().getServiceClass().getName();\r\n\r\n// remove(className);\r\n item.getValue().unBind();\r\n Log.d(TAG, \"- \"+name+\" \"+className);\r\n// taskRequesterMap.remove(className);\r\n iterator.remove();\r\n serviceClasses.remove(new TaskModel(name, className, 1));\r\n// taskRequesterMap.remove(new TaskModel(name, className, 1));\r\n }\r\n }", "public void shutdown() {\n for (TServer server : thriftServers) {\n server.stop();\n }\n try {\n zookeeper.shutdown();\n discovery.close();\n } catch (IOException ex) {\n //don't care\n }\n }", "public void exit() {\n\t\tJWebSocketTokenClient lClient;\n\t\tfor (int lIdx = 0; lIdx < mFinished; lIdx++) {\n\t\t\tlClient = mClients[lIdx];\n\t\t\tlClient.removeTokenClientListener(this);\n\t\t\ttry {\n\t\t\t\tmLog(\"Closing client #\" + lIdx + \" on thread: \" + Thread.currentThread().hashCode() + \"...\");\n\t\t\t\tlClient.close();\n\t\t\t\tThread.sleep(20);\n\t\t\t} catch (Exception lEx) {\n\t\t\t\tmLog(\"Exception: \" + lEx.getMessage() + \". Closing client #\" + lIdx + \"...\");\n\t\t\t}\n\t\t}\n\t}", "void stopServices() throws IOException, SoapException;", "public void cancelAllRequests() {\n mPwsClient.cancelAllRequests();\n }", "void stopAll();", "public void closeAllTopicPublishers()\n {\n for(int ii = 0; ii < topicPublisherList.size(); ii++)\n {\n TopicPublisher publisher = (TopicPublisher)topicPublisherList.get(ii);\n try\n {\n publisher.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "public void stop()\n throws Exception\n {\n for(int i = 0; i < this.monitoredObjectsCache.size(); i++) {\n \n ObjectName target = null;\n \n try {\n target = (ObjectName) this.monitoredObjectsCache.get(i);\n \n this.server.removeNotificationListener(target, listener);\n \n if (log.isDebugEnabled())\n log.debug(\"Unsubscribed from \\\"\" + target + \"\\\"\");\n }\n catch(Exception e) {\n log.error(\"Unsubscribing from \\\"\" + target + \"\\\"\", e);\n }\n }\n }", "private void stopSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.stopListening();\n }\n }", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "public void closeAllTopicSubscribers()\n {\n for(int ii = 0; ii < topicSubscriberList.size(); ii++)\n {\n TopicSubscriber subscriber = (TopicSubscriber)topicSubscriberList.get(ii);\n try\n {\n subscriber.close();\n }\n catch(JMSException exc)\n {\n\n }\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 }", "void shutdownAllBots() {\n LinkedList<String> names = new LinkedList<String>();\n\n for( ChildBot c : m_botStable.values() ) {\n if( c != null ) {\n names.add( c.getBot().getBotName() );\n }\n }\n\n for( String name : names ) {\n removeBot( name, \"core shutdown\" );\n m_botAction.sendChatMessage( 1, name + \" logged off. (Core shutdown.)\" );\n }\n\n m_botTypes.clear();\n }", "public void shutdown(){\n for(MessageHandler h : handlerMap.values()){\n h.shutdown();\n }\n }", "public synchronized void closeConnection() throws SQLException {\n\t\tfor(Connection y : a) {\n\t\t\ty.close();\n\t\t}\n\t}", "public void shutdown() {\n for (BucketMonitor monitor : this.monitors.values()) {\n monitor.shutdown();\n }\n }", "void unregisterAll();", "public static void shutdownAll(){\n if(!dataNodeList.isEmpty()){\n for (Iterator iterator = dataNodeList.iterator(); iterator.hasNext();) {\n DataNode dataNode = (DataNode) iterator.next();\n dataNode.shutdown();\n }\n }\n }", "public void shutdown() {\n \n //Shutdown each port router\n synchronized( thePortRouterMap ){\n for( Iterator<PortRouter> anIter = thePortRouterMap.values().iterator(); anIter.hasNext(); ){\n anIter.next().shutdown();\n }\n }\n }", "private void destroyGossipProtocols(List<GossipProtocolImpl> gossipProtocols) {\n for (GossipProtocolImpl gossipProtocol : gossipProtocols) {\n gossipProtocol.stop();\n }\n\n // Stop all transports\n List<CompletableFuture<Void>> futures = new ArrayList<>();\n for (GossipProtocolImpl gossipProtocol : gossipProtocols) {\n CompletableFuture<Void> close = new CompletableFuture<>();\n gossipProtocol.getTransport().stop(close);\n futures.add(close);\n }\n try {\n CompletableFuture.allOf(futures.toArray(new CompletableFuture[futures.size()])).get(30, TimeUnit.SECONDS);\n } catch (Exception ignore) {\n LOGGER.warn(\"Failed to await transport termination\");\n }\n\n // Await a bit\n try {\n Thread.sleep(gossipProtocols.size() * 20);\n } catch (InterruptedException ignore) {\n // ignore\n }\n }", "public void unsubscribeAll() {\n \t\tint failCount = 0;\n \t\t// Make a copy of the collection because it will be modified in #unsubscribe()\n \t\tSet<String> removal = new HashSet<String>(subscriptions.keySet());\n \t\tfor (String subscriptionID : removal) {\n \t\t\tunsubscribe(subscriptionID);\n \t\t}\n \t\tif (failCount > 0) {\n \t\t\tlogger.warn(\n \t\t\t\t\t\"Problem while unsubcribing from all subscriptions: \"\n \t\t\t\t\t\t\t+ failCount\n \t\t\t\t\t\t\t+ \" unsubscriptions failed at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t} else {\n \t\t\tlogger.info(\n \t\t\t\t\t\"Successfully unsubcribed from all subscriptions at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t}\n \t}", "private void killAllClients () {\n for (AutomatedClient c : clients.values()){\n c.signalToLeave();\n }\n\n LocalDateTime start = LocalDateTime.now();\n LocalDateTime max = start.plus(Duration.ofSeconds(WAIT_TIME));\n for (Thread t : threads.values()) { //Espera por todas as threads que foram corridas ao longo da execução do programa.\n try {\n t.join(WAIT_TIME*1000);\n if (LocalDateTime.now().isAfter(max)) {\n System.out.println(\"Force kill\");\n bruteKillAllClients();\n break;\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "public void deleteCertificates() {\n LocalKeyStore localKeyStore = LocalKeyStore.getInstance();\n\n Uri uri = Uri.parse(getStoreUri());\n localKeyStore.deleteCertificate(uri.getHost(), uri.getPort());\n uri = Uri.parse(getTransportUri());\n localKeyStore.deleteCertificate(uri.getHost(), uri.getPort());\n }", "void unsetListOfServiceElements();", "void killAllApps();", "public void stopAll() {\n List<String> startedEvents = new ArrayList<>(started.keySet());\n for (String event : startedEvents) {\n stop(event);\n }\n started.clear();\n }", "public void closeAll(){\n\t\t\n\t\tshowMessage(\"\\n Closing all connections...\");\n\t\tableToType(false);\n\t\ttry {\n\t\t\t\n\t\t\tinput.close();\n\t\t\toutput.close();\n\t\t\tconnection.close();\n\t\t\t\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "public void powerOffAllVms() throws Exception\n {\n VirtualMachine ivm = null;\n ivm = new VirtualMachine(connectAnchor);\n Vector<ManagedObjectReference> vmMors = ivm.getAllVM();\n if (vmMors != null && vmMors.size() > 0) {\n for (ManagedObjectReference vmMor : vmMors) {\n if (ivm.getVMState(vmMor) == VirtualMachinePowerState.POWERED_ON) {\n ivm.powerOffVM(vmMor);\n }\n }\n }\n }", "void removeServices() throws IOException, SoapException;", "public void shutdown() {\n for (Entry<String,Session> entry : _sessions.entrySet())\n entry.getValue().disconnect();\n \n writeLine(\"\\nDebugServer shutting down.\");\n close();\n }", "public void close() {\n synchronized (lock) {\n info(\"Closing all sync producers\");\n Iterator<SyncProducer> iter = syncProducers.values().iterator();\n while (iter.hasNext())\n iter.next().close();\n }\n }", "public void DFRemoveAllMyServices() {\n try {\n DFService.deregister(this);\n } catch (FIPAException ex) {\n\n }\n }", "@Override\r\n\tpublic void deleteAllAccounts() {\n\t\t\r\n\t}", "public void shutdown() {\n drivers.stream().filter(ClosingAwareWebDriver::isAlive)\n .forEach(ClosingAwareWebDriver::forceShutdown);\n }", "public static void disconnect() {\n \t\tconnPool.stop();\n \t}", "protected void closeAllSecondaryWindows() throws Exception {\n\t\tSet<String> AllWindowHandles = getDriver().getWindowHandles();\n\t\tObject[] windows = AllWindowHandles.toArray();\n\n\t\t// Only need to close if more than 1 window open.\n\t\tif (windows.length > 1) {\n\t\t\t// Close all BUT the first (0) index of the Window Handle List\n\t\t\tfor (int i = 2; i < windows.length; i++) {\n\t\t\t\tgetDriver().switchTo().window((String) windows[i]);\n\t\t\t\tgetDriver().close();\n\t\t\t}\n\t\t}\n\t}", "public void stopAutomaticRefresh() {\n try {\n dnsService.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void closeAllTopicDurableSubscribers()\n {\n Iterator keys = topicDurableSubscriberMap.keySet().iterator();\n while(keys.hasNext())\n {\n TopicSubscriber subscriber = (TopicSubscriber)topicDurableSubscriberMap.get(keys.next());\n try\n {\n subscriber.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "@Override\n\tpublic void close() {\n\t\tfor (Communication communication: listCommunication) {\n\t\t\tcommunication.close();\n\t\t}\n\t}", "public void shutdown() {\n\t\t//We call peers.values() and put into Array to create an unchanging copy, one that\n\t\t//does not shrink even as the sockets remove themselves from the peers list\n\t\t//this prevents a ConcurrentModificationException\n\t\tonline = false;\n\t\tArrayList<DecentSocket> connections = new ArrayList<DecentSocket>(peers.values());\n\t\tfor(DecentSocket socket: connections) {\n\t\t\tsocket.stop();\n\t\t}\n\t\tlistener.stop();\n\t\tchecker.stop();\n\t}", "public void abortAllSingleDownloadControllers() {\r\n\r\n while (true) {\r\n java.util.List<SingleDownloadController> list = new ArrayList<SingleDownloadController>();\r\n synchronized (downloadControllers) {\r\n list.addAll(downloadControllers);\r\n }\r\n for (SingleDownloadController con : list) {\r\n if (con.isAlive() && !con.isAborted()) {\r\n con.abortDownload();\r\n }\r\n }\r\n boolean alive = false;\r\n for (SingleDownloadController con : list) {\r\n if (con.isAlive()) {\r\n alive = true;\r\n break;\r\n }\r\n }\r\n if (alive == false) break;\r\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException e) {\r\n logger.log(e);\r\n return;\r\n }\r\n }\r\n }", "static synchronized void closeAll() {\n List<BlackLabEngine> copy = new ArrayList<>(engines);\n engines.clear();\n for (BlackLabEngine engine : copy) {\n engine.close();\n }\n }", "protected void unregisterContractEvents()\n {\n for(final Subscription subscription : subscriptions)\n {\n Async.run(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n subscription.unsubscribe();\n return null;\n }\n });\n }\n\n subscriptions.clear();\n }", "@Override\n public void deleteAllAccounts() {\n synchronized (accounts) {\n accounts.clear();\n }\n }", "public void deleteAllVisibleCookies();", "public void closeAllBrowsers() {\n\n driver.quit();\n\n\n }", "public void exitAllRooms() {\n\t\tfor (RoomSetting roomSetting : roomSettings) {\n\t\t\troomSetting.getRoom().removeClient(this);\n\t\t}\n\t\troomSettings.clear();\n\t}", "public void stop() {\n executor.shutdownNow();\n\n Collection<NodeRegistrationContext> allRegistrations = nodeRegistrations.values();\n for (NodeRegistrationContext registration : allRegistrations) {\n sendUnregistrationEvent(registration.resolvedDeployment);\n }\n }", "public void cleanUpConnections()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < this.electricityNetworks.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tthis.electricityNetworks.get(i).cleanUpArray();\r\n\r\n\t\t\t\tif (this.electricityNetworks.get(i).conductors.size() == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.electricityNetworks.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tFMLLog.severe(\"Failed to clean up wire connections!\");\r\n\t\t}\r\n\t}", "public void disconnect(){\n\t\tfor (NodeInfo peerInfo : peerList) {\r\n\t\t\t// send leave to peer\r\n\t\t\tsend(\"0114 LEAVE \" + ip + \" \" + port, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\r\n\t\t\tfor (NodeInfo peerInfo2 : peerList) {\r\n\t\t\t\tif (!peerInfo.equals(peerInfo2)) {\r\n\t\t\t\t\tString joinString = \"0114 JOIN \" + peerInfo2.getIp() + \" \" + peerInfo2.getPort();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsend(joinString, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tunRegisterBootstrapServer(serverIp, serverPort, ip, port, username);\r\n\t\t\tapp.printInfo(\"Node disconnected from server....\");\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//socket = null;\r\n\t}", "void cleanUpExpiredSessions() {\n try (TarantoolClient client = clientSource.getClient()) {\n client.select(getSpace(client), SPACE_EXPIRY_INDEX, Integer.MAX_VALUE, 0, Iter.LE);\n client.setLong(System.currentTimeMillis());\n Result result = client.execute();\n Set<UUID> ids = new HashSet<>();\n while (result.next()) {\n ids.add(new UUID(result.getLong(2), result.getLong(3)));\n }\n ids.forEach(id -> deleteById(id, client));\n if (logger.isDebugEnabled()) {\n logger.debug(\"Cleaned up \" + ids.size() + \" expired sessions\");\n }\n }\n }", "public static int stopAllServices() throws Throwable {\n\t\tint numServicesStopped = 0;\n\n\t\tstopApiService();\n\t\tnumServicesStopped++;\n\t\tstopInventoryService();\n\t\tnumServicesStopped++;\n\t\tstopInsuranceService();\n\t\tnumServicesStopped++;\n\t\tstopEnquiryService();\n\t\tnumServicesStopped++;\n\t\t\n\t\treturn numServicesStopped;\n\t}", "private void disconnect() {\n if (mServiceConnection != null) {\n mContext.unbindService(mServiceConnection);\n }\n mServiceConnection = null;\n }", "public void close() {\n for (final BasicServerMetrics metrics : myServerMetrics.values()) {\n metrics.close();\n }\n myServerMetrics.clear();\n }", "void dropAllTablesForAllConnections();", "void unsetServiceConfigurationList();", "public void cleanToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"CLEAN\",null));\n\t\t}\n\t}", "public void shutdown() {\n \t\tfor(Expirator e : expirators) {\n\t\t\te.shutdown();\n \t\t}\n \t\texpirators.clear();\n \t}", "public void shutdownAll() {\n System.out.println(\"Shutting down network, received halt command!\");\n _poolData.shutdown();\n }", "private void closeBrokers() {\n memberBroker.close();\naccountBroker.close();\n }", "public void closeConnections() throws MessagingException;", "void unpublish(List<String> uuids) throws GWTJahiaServiceException;", "public static void closeAllMsiDb() {\r\n\t\tconnectionByProjectIdMap.forEach((k, v) -> {\r\n\t\t\ttry {\r\n\t\t\t\tif (v != null && !v.isClosed()) {\r\n\t\t\t\t\tlogger.info(\"Close msi_db_project_{} connection\", k);\r\n\t\t\t\t\tv.close();\r\n\t\t\t\t\tv = null;\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tlogger.error(\"Error while trying to close msi_db database connections\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "void close() {\n if (VDBG) log(\"close()\");\n\n mAppRegistered = false;\n final IBluetoothDeviceGroup service = getService();\n if (service != null) {\n try {\n service.unregisterGroupClientApp(mAppId, mAttributionSource);\n } catch (RemoteException e) {\n Log.e(TAG, \"Stack:\" + Log.getStackTraceString(new Throwable()));\n }\n }\n\n mProfileConnector.disconnect();\n }", "void stopNodeAgentServices();", "public static void killAll() {\n\t\t// get an iterator\n\t\tIterator<?> i = anisLookup.entrySet().iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry<?, ?> entry = (Map.Entry<?, ?>)i.next();\n\t\t\tAni existingAni = (Ani) entry.getValue(); \n\t\t\texistingAni.pause();\n\t\t\tpapplet().unregisterMethod(\"pre\", existingAni);\n\t\t\texistingAni = null;\n\t\t\ti.remove();\n\t\t}\t\n\t}", "public void shutdown() {\n for (AbstractController child : getChildren()) {\n child.shutdown();\n }\n }", "public void stop() {\n if (isStop.compareAndSet(false, true)) {\n if (bootstrap.config().group() != null) {\n Future future = bootstrap.config().group().shutdownGracefully();\n ((io.netty.util.concurrent.Future) future).syncUninterruptibly();\n }\n for (BrpcChannelGroup channelGroup : healthyInstances) {\n channelGroup.close();\n }\n for (BrpcChannelGroup channelGroup : unhealthyInstances) {\n channelGroup.close();\n }\n if (timeoutTimer != null) {\n timeoutTimer.stop();\n }\n if (namingService != null) {\n namingService.unsubscribe(subscribeInfo);\n }\n if (healthCheckTimer != null) {\n healthCheckTimer.stop();\n }\n if (loadBalanceStrategy != null) {\n loadBalanceStrategy.destroy();\n }\n if (callbackThread != null) {\n callbackThread.shutdown();\n }\n if (threadPool != null) {\n threadPool.stop();\n }\n }\n }", "public static void shutDown(){\n for(int i = PS3_LIST_.size()-1; i >= 0; i--){\n PS3 instance = PS3_LIST_.get(i);\n instance.setLed(false);\n instance.destroy();\n }\n PS3Logger.log(PS3Logger.TYPE.DEBUG, null, \"PS3 SHUTDOWN\");\n }", "protected synchronized void stopServers() throws Exception {\r\n if (this.servers != null) {\r\n for (Server server : this.servers) {\r\n server.stop();\r\n }\r\n }\r\n }", "@Override\n\tpublic void deinit() throws Exception{\n\t\tfor (Map.Entry<Integer, ServerConnection> entry : pidToConnMap.entrySet()) {\n\t\t\tConnection conn = entry.getValue();\n\t\t\tconn.close();\n\t\t}\n\t\tsuper.deinit();\n\t}", "static void clearConfig() throws Exception {\n ConfigManager cm = ConfigManager.getInstance();\n Iterator it = cm.getAllNamespaces();\n List nameSpaces = new ArrayList();\n\n while (it.hasNext()) {\n nameSpaces.add(it.next());\n }\n\n for (int i = 0; i < nameSpaces.size(); i++) {\n cm.removeNamespace((String) nameSpaces.get(i));\n }\n }", "public void unregisterAll()\n {\n final Set<javax.servlet.Servlet> servlets = new HashSet<>(this.localServlets);\n for (final javax.servlet.Servlet servlet : servlets)\n {\n unregisterServlet(servlet);\n }\n }", "static void destroyAll()\n {\n synchronized(allSchedulers)\n {\n // destroy all registered schedulers\n Iterator iter = allSchedulers.iterator();\n while (iter.hasNext())\n {\n Scheduler scheduler = (Scheduler) iter.next();\n \n // do not call cancel() since this method modifies allSchedulers\n scheduler.destroy();\n }\n \n if (logger.isInfoEnabled())\n {\n logger.info(allSchedulers.size() + \" scheduler instances destroyed\");\n }\n \n // be sure and clear set\n allSchedulers.clear();\n \n // and set flag that scheduler service ist stopped\n schedulerServiceRunning = false;\n }\n }", "public void stopAll(ContentItem contentItem)\n {\n if (log.isInfoEnabled())\n {\n log.info(\"stopAll: \" + contentItem);\n }\n //release all streams associated with the connection id for a streaming content item \n //map of connection ids to set of streams to release\n Map streamsToRelease = new HashMap(); \n synchronized (lock)\n {\n for (Iterator activeStreamSetsIter = activeStreams.entrySet().iterator(); activeStreamSetsIter.hasNext();)\n {\n Map.Entry entry = (Map.Entry)activeStreamSetsIter.next();\n Integer connectionId = (Integer) entry.getKey();\n Set streams = (Set) entry.getValue();\n for (Iterator streamSetForConnectionId = streams.iterator(); streamSetForConnectionId.hasNext();)\n {\n Stream stream = (Stream)streamSetForConnectionId.next();\n //release all streams associated with any connection id streaming the contentitem \n if (stream.isTransmitting(contentItem))\n {\n Set currentEntries = (Set) streamsToRelease.get(connectionId);\n if (currentEntries == null)\n {\n currentEntries = new HashSet();\n }\n currentEntries.addAll(streams);\n //release all streams associated with this connection id\n streamsToRelease.put(connectionId, currentEntries);\n //there may or may not be an active stream, remove from authorized connections regardless\n cachedAuthorizations.remove(connectionId);\n break;\n }\n }\n }\n }\n \n for (Iterator iter = streamsToRelease.entrySet().iterator(); iter.hasNext();)\n {\n Map.Entry entry = (Map.Entry)iter.next();\n Integer connectionId = (Integer) entry.getKey();\n for (Iterator streams = ((Set)(entry.getValue())).iterator(); streams.hasNext(); )\n {\n doRelease((Stream)streams.next(), true);\n }\n // Notify the NAH that activity is ended for this connection\n ((NetSecurityManagerImpl) NetSecurityManager.getInstance()).notifyActivityEnd(connectionId.intValue(), HttpURLConnection.HTTP_OK);\n }\n }" ]
[ "0.65546656", "0.6202672", "0.6116445", "0.59393126", "0.5907068", "0.5898001", "0.5891677", "0.5878504", "0.5812192", "0.5704167", "0.5646052", "0.56249815", "0.56249815", "0.55883795", "0.55733705", "0.5566098", "0.555054", "0.5512069", "0.5489826", "0.54895717", "0.54600626", "0.5450279", "0.54110104", "0.53972656", "0.53883815", "0.5374062", "0.53649455", "0.5362483", "0.5337914", "0.53013647", "0.52909005", "0.52901906", "0.5282917", "0.52803457", "0.5272945", "0.52413243", "0.5235206", "0.5227596", "0.52082187", "0.5207418", "0.51907194", "0.5187646", "0.5181733", "0.5173412", "0.515888", "0.51573145", "0.5157314", "0.5146401", "0.5146141", "0.5136174", "0.51138914", "0.50855297", "0.5077164", "0.507144", "0.5070116", "0.50698024", "0.5058569", "0.5053014", "0.5052086", "0.505179", "0.5033952", "0.5031417", "0.5023942", "0.50215", "0.50127965", "0.5007792", "0.50068355", "0.5003106", "0.5000001", "0.49913555", "0.49908856", "0.4990429", "0.4984476", "0.49763128", "0.49686006", "0.49656382", "0.4960796", "0.49544144", "0.4952259", "0.4948936", "0.49486578", "0.49476752", "0.49436736", "0.49424678", "0.49399015", "0.4939719", "0.49187708", "0.49160585", "0.4912401", "0.4911988", "0.49102122", "0.4909371", "0.49088427", "0.49073488", "0.4906016", "0.49058494", "0.48832503", "0.48819897", "0.48802617", "0.4874593" ]
0.6090414
3
Some variables might be needed
public UserInputField() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initVars() {}", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void updateVars()\n {\n\n }", "Variables createVariables();", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (name.equals(\"AD_Client_ID\"))\n\t\t\t\tm_AD_Client_ID = 1000000;\n\t\t\telse if (name.equals(\"AD_Org_ID\"))\n\t\t\t\tm_AD_Org_ID = 1000000;\n\t\t\telse if (name.equals(\"DeleteOldImported\"))\n\t\t\t;//\tm_deleteOldImported = \"Y\".equals(para[i].getParameter());\n\t\t\telse if (name.equals(\"DocAction\"))\n\t\t;//\t\tm_docAction = (String)para[i].getParameter();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null)\n\t\t\t\t;\n\t\t\telse if (name.equals(\"M_Requisition_ID\"))\n\t\t\t\tp_M_RequisitionFrom_ID = ((BigDecimal)para[i].getParameter()).intValue();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}", "public static void processVariablesInformation () {\n\n for (int i = 0; i < data.length(); i++) {\n if (data.charAt(i) == ',')\n cutPoints.add(i);\n }\n\n if (cutPoints.size() == numberOfVariablesReceived-1) {\n\n if(isNumeric(data.substring(1, cutPoints.get(0))))\n oxygenValue = data.substring(1, cutPoints.get(0));\n\n if(isNumeric(data.substring(cutPoints.get(0) + 1, cutPoints.get(1))))\n heartRateValue = data.substring(cutPoints.get(0) + 1, cutPoints.get(1));\n\n if(isNumeric(data.substring(cutPoints.get(1) + 1, cutPoints.get(2))))\n stressValue = data.substring(cutPoints.get(1) + 1, cutPoints.get(2));\n\n if(isNumeric(data.substring(cutPoints.get(2) + 1, endOfLineIndex)))\n tempSampleTime = Integer.parseInt(data.substring(cutPoints.get(2) + 1, endOfLineIndex));\n }\n if (Integer.parseInt(heartRateValue) > 0)\n integerbpm = sixtyMillis / Integer.parseInt(heartRateValue);\n else\n integerbpm = INFINITE;\n\n // Comment this part for junit tests\n if (integerbpm >= 0) {\n heartBeatAnim.setDuration(integerbpm);\n heartBeatAnim.start();\n }\n oxygenLevel.setText(oxygenValue + \"%\");\n heartRate.setText(\" HR = \" + heartRateValue + \"BPM\");\n stressLabel.setText(\" Stress= \" + stressValue + \"%\");\n stressBar.setProgress(Integer.parseInt(stressValue));\n oxygenBar.setProgress(Integer.parseInt(oxygenValue));\n\n if (Integer.parseInt(oxygenValue) < 95 || Integer.parseInt(heartRateValue) < 60 || Integer.parseInt(heartRateValue) > 120) {\n attentionImage.setVisibility(View.VISIBLE);\n attentionLabel.setVisibility(View.VISIBLE);\n\n if (sound == true) {\n final ToneGenerator tg = new ToneGenerator(AudioManager.STREAM_NOTIFICATION, 100);\n tg.startTone(ToneGenerator.TONE_CDMA_PIP);\n }\n } else {\n attentionImage.setVisibility(View.INVISIBLE);\n attentionLabel.setVisibility(View.INVISIBLE);\n }\n // until here\n }", "protected void setupParameters() {\n \n \n\n }", "private void init() {\n\t\t\n\t\ttry{\t\t\t\n\t\t\tinfos = new HashMap<String, VariableInfo>();\n\t\t\t\n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\t\n\t\t\t\tif(this.problem.getNbrNeighbors(var) != 0){ // an isolated variable doesn't need a CryptoScheme and therefore no VariableInfo either\n\t\t\t\t\t\n\t\t\t\t\tVariableInfo info = new VariableInfo(var);\n\t\t\t\t\tinfos.put(var, info);\n\t\t\t\t\t\n\t\t\t\t\tinfo.cs = cryptoConstr.newInstance(this.cryptoParameter);\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//initialize request counter for my own variables\n\t\t\trequestCount = new HashMap<String,Integer>(); \n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\trequestCount.put(var, 0);\n\t\t\t}\n\t\t\t\n\t\t\tthis.started = true;\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "public void checkParameters() {\n }", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null)\n\t\t\t\t;\n\t\t\telse if (name.equals(\"SRI_Authorization_ID\"))\n\t\t\t\tp_SRI_Authorization_ID = para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\tm_AD_Client_ID = getAD_Client_ID();\n\t\t\n\t\tif (p_SRI_Authorization_ID == 0)\n\t\t\tp_SRI_Authorization_ID = getRecord_ID();\n\n\t}", "private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerPerson = 0.0;\n\n }", "public void _checkVariables(int width, int height) {\r\n\t\tSystem.out.println(\"Hoehe: \" + height);\r\n\t\tSystem.out.println(\"Breite: \" + width);\r\n\t\tchar fruit = Fruit.getSymbol();\r\n\t\tchar wall = Wall.getSymbol();\r\n\t\tchar snake = Snake.getSymbol();\r\n\t\tSystem.out.println(\"fruit: \" + fruit);\r\n\t\tSystem.out.println(\"wall: \" + wall);\r\n\t\tSystem.out.println(\"snake: \" + snake);\r\n\t}", "int realnVars();", "private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}", "@Override\n public List<String> getVariables()\n {\n return null;\n }", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\t\n\t\t\tif (name.equals(\"Action\"))\n\t\t\t\tp_Action = para[i].getParameterAsString();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\tp_Hospitalization_ID=getRecord_ID();\n\t}", "protected void checkComponents() throws Exception {\r\n if (InitialData == null) {\r\n throw new Exception(\"Initial data not set.\");\r\n }\r\n if (Oracle == null) {\r\n throw new Exception(\"Oracle not set.\");\r\n }\r\n if (SearchSpace == null) {\r\n throw new Exception(\"Search space not set.\");\r\n }\r\n if (ObjectiveFunction == null) {\r\n throw new Exception(\"Ranker not set.\");\r\n }\r\n }", "private synchronized void updateVariables() throws DebugException {\n\t\tif (lastUpdated == target.getSuspendCount()\n\t\t\t\t|| (variables != null && oldLineNumber == lineNumber))\n\t\t\treturn;\n\t\t\n\t\tSynchronizer frontend = target.getFrontend();\n\t\tif (frontend != null) {\n\t\t\t// get local variables\n\t\t\tString localsSausage = frontend.GetLocals(thread.getID(),frameNumber);\n\t\t\tString[] locals;\n\t\t\tif (localsSausage == null || localsSausage.equals(\"--\")\n\t\t\t\t\t|| localsSausage.equals(\"\"))\n\t\t\t\tlocals = new String[0];\n\t\t\telse\n\t\t\t\tlocals = localsSausage.split(\" \");\n\t\t\t// get parameters\n\t\t\tString paramsSausage = frontend.GetParameters(thread.getID(),frameNumber);\n\t\t\tString[] params;\n\t\t\tif (paramsSausage == null || paramsSausage.equals(\"--\")\n\t\t\t\t\t|| paramsSausage.equals(\"\"))\n\t\t\t\tparams = new String[0];\n\t\t\telse\n\t\t\t\tparams = paramsSausage.split(\" \");\n\t\t\t// get static fields of the current class\n\t\t\tString className;\n\t\t\ttry {\n\t\t\t\tclassName = methodName.substring(0, methodName.lastIndexOf('.'));\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\t\t\t\tclassName = \"\";\n\t\t\t}\n\t\t\tString staticsSausage = frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\n\t\t\t\t\tclassName,true);\n\t\t\tString[] statics;\n\t\t\tif (staticsSausage == null || staticsSausage.equals(\"--\")\n\t\t\t\t\t|| staticsSausage.equals(\"\"))\n\t\t\t\tstatics = new String[0];\n\t\t\telse\n\t\t\t\tstatics = staticsSausage.split(\" \");\n\t\t\t// determine if \"this\" is valid\n\t\t\tboolean _this = true;\n\t\t\tif (frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\"this\",false).equals(\"--\"))\n\t\t\t\t_this = false;\n\t\t\t\n\t\t\t// create variable objects\n\t\t\tIVariable[] tempVariables = new EmonicVariable[locals.length + params.length\n\t\t\t + statics.length + (_this ? 1 : 0)];\n\n\t\t\tif (variables == null || variables.length != tempVariables.length) {\n\t\t\t\t// something changed\n\t\t\t\tint index = 0;\n\t\t\t\tif (_this) {\n\t\t\t\t\ttempVariables[0] = new EmonicVariable(this,\"this\",null);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tArrays.sort(locals);\n\t\t\t\tfor (int i=0; i<locals.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,locals[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=locals.length;\n\t\t\t\tArrays.sort(params);\n\t\t\t\tfor (int i=0; i<params.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,params[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=params.length;\n\t\t\t\tArrays.sort(statics);\n\t\t\t\tfor (int i=0; i<statics.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,statics[i],null);\n\t\t\t\t}\n\t\t\t\tvariables = tempVariables;\n\t\t\t} \n\t\t}\n\t\tlastUpdated = target.getSuspendCount();\n//\t\toldLineNumber = lineNumber;\n\t}", "public void fixupVariables(List<QName> vars, int globalsSize)\n {\n // no-op\n }", "public void baiscSetting(){\n generations_ = 0;\n maxGenerations_ = ((Integer) this.getInputParameter(\"maxGenerations\")).intValue();\n populationSize_ = ((Integer) this.getInputParameter(\"populationSize\")).intValue();\n mutation_ = operators_.get(\"mutation\");\n crossover_ = operators_.get(\"crossover\");\n selection_ = operators_.get(\"selection\");\n learning_ = operators_.get(\"learning\");\n\n }", "protected void prepare()\r\n\t{\r\n\t\tProcessInfoParameter[] para = getParameter();\r\n\t\tfor (int i = 0; i < para.length; i++)\r\n\t\t{\r\n\t\t\tString name = para[i].getParameterName();\r\n\t\t\tif (name.equals(\"DeleteOldImported\"))\r\n\t\t\t\tp_deleteOldImported = \"Y\".equals(para[i].getParameter());\r\n\t\t\telse if (name.equals(\"IsValidateOnly\"))\r\n\t\t\t\tp_IsValidateOnly = para[i].getParameterAsBoolean();\r\n\t\t\telse\r\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\r\n\t\t}\r\n\r\n\t\tm_AD_Client_ID = getProcessInfo().getAD_Client_ID();\r\n\r\n\t}", "@Override\n\tprotected void prepare() {\n\t\tfor(ProcessInfoParameter parameter :getParameter()){\n\t\t\tString name = parameter.getParameterName();\n\t\t\tif(parameter.getParameter() == null){\n\t\t\t\t;\n\t\t\t}else if(name.equals(\"XX_TipoRetencion\")){\n\t\t\t\tp_TypeRetention = (String) parameter.getParameter();\n\t\t\t}\n\t\t\telse if(name.equals(\"C_Invoice_From_ID\"))\n\t\t\t\tp_Invoice_From = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"C_Invoice_To_ID\"))\n\t\t\t\tp_Invoice_To = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"DateDoc\"))\n\t\t\t\tp_DateDoc = (Timestamp) parameter.getParameter();\t\t\n\t\t}\n\t}", "private void kk12() {\n\n\t}", "public void initVariables() {\n\tif (CL_Initializer.headerTemplateFile == null) {\n\n\t if (ImageHeader.imageExists(CL_Initializer.inputFile)) {\n\t\tCL_Initializer.headerTemplateFile = CL_Initializer.inputFile;\n\t }\n\t else if (imageType == imageType.BEDPOSTX || imageType == imageType.BEDPOSTX_DYAD) {\n\n\t\tString bedpostxRoot = BedpostxTractographyImage.getBedpostxInputRoot(bedpostxDir);\n\t\tString ext = BedpostxTractographyImage.getBedpostxImageExtension(bedpostxRoot);\n\t\t\n\t\tCL_Initializer.headerTemplateFile = bedpostxRoot + \"dyads1\" + ext;\n\t \n\t }\n\t \n\t}\n\n\t\n if (CL_Initializer.headerTemplateFile != null) { \n logger.info(\"Defining input physical space from \" + CL_Initializer.headerTemplateFile);\n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n else if (CL_Initializer.voxelDims[0] > 0.0) { \n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n else if (seedFile != null) {\n logger.info(\"Defining input physical space from seed file\");\n CL_Initializer.headerTemplateFile = seedFile;\n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n \n\n\n xDataDim = CL_Initializer.dataDims[0];\n yDataDim = CL_Initializer.dataDims[1];\n zDataDim = CL_Initializer.dataDims[2];\n \n xVoxelDim = CL_Initializer.voxelDims[0];\n yVoxelDim = CL_Initializer.voxelDims[1];\n zVoxelDim = CL_Initializer.voxelDims[2];\n\n if (xVoxelDim == 0.0) {\n // failed to get a definition of input space from anywhere\n throw new LoggedException(\"Definition of input space required, use -header\");\n }\n\n\n voxelToPhysicalTrans = CL_Initializer.headerTemplate.getVoxelToPhysicalTransform();\n\n\n\tif (anisThresh > 0.0) {\n\t switch(imageType) {\n\t\t\n\t case DT : case MULTITENSOR : case BEDPOSTX : case BEDPOSTX_DYAD :\n\t\t// No problem since these input formats have anisotropy information built in\n\t\tbreak;\n\t\t\n\t default: \n\t\t\n\t\tif (anisMapFile == null) {\n\t\t throw new LoggedException(\"Input data does not contain anisotropy, anisotropy map (-anisfile) must be \" +\n\t\t\t\t\t \"supplied when -anisthresh is used\");\n\t\t}\n\t }\n\t}\n\n\n // no interpolation with FACT, by definition\n if (trackingAlgorithm == TrackingAlgorithm.FACT) {\n\n if (dataInterpolation != DataInterpolation.NEAREST_NEIGHBOUR) { \n logger.warning(\"Interpolation is not compatible with FACT tracking, using Euler tracker with step size \" + stepSize + \" mm\");\n }\n\n trackingAlgorithm = TrackingAlgorithm.EULER;\n }\n\n \n ran = new MTRandom(seed);\n \n \n // get seeds\n if (seedFile != null) {\n \n VoxelROI imageROIs = new VoxelROI(seedFile, CL_Initializer.headerTemplate);\n\n allROIs = imageROIs.getAllRegions();\n \n }\n else if (seedList != null) {\n allROIs = new RegionOfInterest[] {PointListROI.readPoints(seedList, CL_Initializer.headerTemplate)};\n }\n\telse {\n\t throw new LoggedException(\"No seed points specified\");\n\t}\n \n \n }", "private void sensorInformation(){\n\t\tthis.name = this.paramName;\n\t\tthis.version = this.paramVersion;\n\t\tthis.author = this.paramVersion;\n\t}", "private boolean setVariables() {\r\n System.gc();\r\n\r\n String tmpStr;\r\n\r\n //do25D = image25D.isSelected();\r\n\r\n tmpStr = textNIterOpen.getText();\r\n\r\n if (testParameter(tmpStr, 1, 20)) {\r\n itersOpen = Integer.valueOf(tmpStr).intValue();\r\n } else {\r\n textNIterOpen.requestFocus();\r\n textNIterOpen.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n tmpStr = textKernelSizeOpen.getText();\r\n\r\n float max = (float) (image.getExtents()[0] * image.getFileInfo()[0].getResolutions()[0] / 5);\r\n\r\n // if ( max < 10 ) max = 10;\r\n if (textKernelSizeOpen.isEnabled() == true) {\r\n\r\n if (testParameter(tmpStr, 0, max)) {\r\n kernelSizeOpen = Float.valueOf(tmpStr).floatValue();\r\n } else {\r\n textKernelSizeOpen.requestFocus();\r\n textKernelSizeOpen.selectAll();\r\n\r\n return false;\r\n }\r\n }\r\n\r\n if (image.getNDims() == 2) {\r\n\r\n if (comboBoxKernelOpen.getSelectedIndex() == 0) {\r\n kernelOpen = AlgorithmMorphology2D.CONNECTED4;\r\n } else if (comboBoxKernelOpen.getSelectedIndex() == 1) {\r\n kernelOpen = AlgorithmMorphology2D.CONNECTED12;\r\n } else if (comboBoxKernelOpen.getSelectedIndex() == 2) {\r\n kernelOpen = AlgorithmMorphology2D.SIZED_CIRCLE;\r\n }\r\n } else if (image.getNDims() == 3) {\r\n\r\n if (comboBoxKernelOpen.getSelectedIndex() == 0) {\r\n kernelOpen = AlgorithmMorphology3D.CONNECTED6;\r\n } else if (comboBoxKernelOpen.getSelectedIndex() == 1) {\r\n kernelOpen = AlgorithmMorphology3D.CONNECTED24;\r\n } else if (comboBoxKernelOpen.getSelectedIndex() == 2) {\r\n kernelOpen = AlgorithmMorphology3D.SIZED_SPHERE;\r\n }\r\n }\r\n\r\n tmpStr = textNIterClose.getText();\r\n\r\n if (testParameter(tmpStr, 1, 20)) {\r\n itersClose = Integer.valueOf(tmpStr).intValue();\r\n } else {\r\n textNIterClose.requestFocus();\r\n textNIterClose.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n tmpStr = textErode.getText();\r\n\r\n if (testParameter(tmpStr, 1, 20)) {\r\n itersErode = Integer.valueOf(tmpStr).intValue();\r\n } else {\r\n textErode.requestFocus();\r\n textErode.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n tmpStr = textKernelSizeClose.getText();\r\n max = (float) (image.getExtents()[0] * image.getFileInfo()[0].getResolutions()[0] / 5);\r\n\r\n // if ( max < 10 ) max = 10;\r\n if (textKernelSizeClose.isEnabled() == true) {\r\n\r\n if (testParameter(tmpStr, 0, max)) {\r\n kernelSizeClose = Float.valueOf(tmpStr).floatValue();\r\n } else {\r\n textKernelSizeClose.requestFocus();\r\n textKernelSizeClose.selectAll();\r\n\r\n return false;\r\n }\r\n }\r\n\r\n if (image.getNDims() == 2) {\r\n\r\n if (comboBoxKernelClose.getSelectedIndex() == 0) {\r\n kernelClose = AlgorithmMorphology2D.CONNECTED4;\r\n } else if (comboBoxKernelClose.getSelectedIndex() == 1) {\r\n kernelClose = AlgorithmMorphology2D.CONNECTED12;\r\n } else if (comboBoxKernelClose.getSelectedIndex() == 2) {\r\n kernelClose = AlgorithmMorphology2D.SIZED_CIRCLE;\r\n }\r\n } else if (image.getNDims() == 3) {\r\n\r\n if (comboBoxKernelClose.getSelectedIndex() == 0) {\r\n kernelClose = AlgorithmMorphology3D.CONNECTED6;\r\n } else if (comboBoxKernelClose.getSelectedIndex() == 1) {\r\n kernelClose = AlgorithmMorphology3D.CONNECTED24;\r\n } else if (comboBoxKernelClose.getSelectedIndex() == 2) {\r\n kernelClose = AlgorithmMorphology3D.SIZED_SPHERE;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public abstract int nVars();", "public abstract void tellNumVars(int numVars);", "protected void prepare()\n\t{\n\t\tlog.info(\"\");\n\t\tm_ctx = Env.getCtx();\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (name.equals(\"C_BankStatementLoader_ID\"))\n\t\t\t\tm_C_BankStmtLoader_ID = ((BigDecimal)para[i].getParameter()).intValue();\n\t\t\telse if (name.equals(\"FileName\"))\n\t\t\t\tfileName = (String)para[i].getParameter();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\tm_AD_Client_ID = Env.getAD_Client_ID(m_ctx);\n\t\tlog.info(\"AD_Client_ID=\" + m_AD_Client_ID);\n\t\tm_AD_Org_ID = Env.getAD_Org_ID(m_ctx);\n\t\tlog.info(\"AD_Org_ID=\" + m_AD_Org_ID);\n\t\tlog.info(\"C_BankStatementLoader_ID=\" + m_C_BankStmtLoader_ID);\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "private void initVariables(){\n int counter = 1;\n for (int vCount = 0; vCount < vertexCount; vCount++){\n for (int pCount = 0; pCount < positionCount; pCount++){\n variables[vCount][pCount] = counter++;\n }\n }\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "abstract void initializeNeededData();", "void realizeMeaningPrefs(Object obj, Variable[] vars) {\n realizeMeaningPrefs(projectSettings, obj, vars);\n \t}", "int getVarsCount();", "private ProcessedDynamicData( ) {\r\n super();\r\n }", "private void setVars(String orgName, String commName, String serialNum, String reason, String insertedBy) {\n organizationName = orgName;\n commonName = commName;\n serialNumber = serialNum;\n this.reason = reason;\n this.insertedBy = insertedBy;\n }", "boolean known() {\n\t\t\treturn !varAddress && !varMask;\n\t\t}", "private void validateInputParameters(){\n\n }", "public void smell() {\n\t\t\n\t}", "public void afficherVariables() {\n System.out.println\r\n (\"Objet de type GrillePain avec variables d'instance année = \" +\r\n annee + \" et nbTranches = \" + nbTranches);\r\n }", "static public void verificaParametros()\r\n \r\n {\r\n SynthesizerModeDesc synthesizerModeDescTemp = (SynthesizerModeDesc)synthesizer.getEngineModeDesc();\r\n System.out.println(\"Nome do engine utilizado: \"+synthesizerModeDescTemp.getEngineName());\r\n System.out.println(\"Nome do modo de funcionamento utilizado: \"+synthesizerModeDescTemp.getModeName());\r\n \tSystem.out.println(\"Nome da localidade utilizada: \"+synthesizerModeDescTemp.getLocale().toString());\r\n \t\t//verifica a flag de controle\r\n if(synthesizerModeDescTemp.getRunning()!=null)\r\n if(synthesizerModeDescTemp.getRunning().booleanValue())\r\n System.out.println(\"Engine rodando.\");\r\n else\r\n System.out.println(\"Engine parado.\");\r\n else\r\n System.out.println(\"A flag de controle não foi setada e tem valor nulo.\");\r\n \t\t//mostra as vozes suportadas\r\n Voice[] VoiceTemp = synthesizerModeDescTemp.getVoices();\r\n for(int i=0;i<VoiceTemp.length;i++)\r\n {\r\n System.out.println(\"Voz numero \"+(i+1)+\" : \"+VoiceTemp[i].getName());\r\n }\r\n }", "public void updateVariables(){\n Map<String, Integer> specialParameter = myLogic.getSpecialParameterToDisplay();\n liveScore.setText(Double.toString(myLogic.getScore()));\n for (String parameter: specialParameter.keySet()) {\n numLives.setText(parameter + specialParameter.get(parameter));\n }\n myMoney.setText(Double.toString(myLogic.getCash()));\n }", "private void getUsefulVariables(Iterable toIter)\n {\n String visualRepresentation = null;\n String name = null;\n String description = null;\n\n try {\n visualRepresentation = (String)toIter.getClass().getMethod(\"getVisualRepresentation\").invoke(toIter);\n name = (String)toIter.getClass().getMethod(\"getName\").invoke(toIter);\n description = (String)toIter.getClass().getMethod(\"getDescription\").invoke(toIter);\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n this.infos.add(new String[]{visualRepresentation, name, description});\n }", "private void getParameters() {\r\n\t\ttry {\r\n\t\t\tp_encoding = \"ISO-8859-1\";\r\n\t\t\tp_page_encoding = \"utf-8\";\r\n\t\t\tp_labels_data_file = \"resources/units/labels.txt\";\r\n\t\t\tp_multiplier_data_file = \"resources/units/muldata.txt\";\r\n\t\t\tp_category_data_file = \"resources/units/catdata.txt\";\r\n\t\t\tp_unit_data_file = \"resources/units/unitdata.txt\";\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treadDataFile(0, p_multiplier_data_file); //read data from external text file\r\n\t\treadDataFile(1, p_category_data_file); //read data from external text file\r\n\t\treadDataFile(2, p_unit_data_file); //read data from external text file\r\n\t\treadDataFile(3, p_labels_data_file); //read data from external text file\r\n\t}", "public void method_2459(ahb var1, int var2, int var3, int var4, aji var5) {\r\n if(!var1.field_1832) {\r\n this.method_2684(var1, var2, var3, var4);\r\n }\r\n\r\n }", "void method_9229(int var1, int var2, int var3) {\r\n this.field_8735 = var1;\r\n this.field_8736 = var2;\r\n this.field_8737 = var3;\r\n super();\r\n }", "private void assignment() {\n\n\t\t\t}", "private void initValues() {\n \n }", "private boolean setVariables() {\r\n\r\n try {\r\n rightSide = Integer.parseInt(rightSideInput.getText()); // in pixels\r\n leftSide = Integer.parseInt(leftSideInput.getText()); // in pixels\r\n topSide = Integer.parseInt(topInput.getText()); // in pixels\r\n bottomSide = Integer.parseInt(bottomInput.getText()); // in pixels\r\n front = Integer.parseInt(frontInput.getText()); // in slices\r\n back = Integer.parseInt(backInput.getText()); // in slices\r\n } catch (NumberFormatException nfe) {\r\n\r\n // an empty text-field. decide which one is empty, then alert the user to correct\r\n JTextField t = determineNull();\r\n MipavUtil.displayError(\"Improper number!\");\r\n t.requestFocus();\r\n t.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (rightSide < 0) {\r\n MipavUtil.displayError(\"Cannot have rightSide < 0\");\r\n rightSideInput.requestFocus();\r\n rightSideInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (rightSide >= image.getExtents()[0]) {\r\n MipavUtil.displayError(\"Cannot have rightSide >= image.getExtents()[0]\");\r\n rightSideInput.requestFocus();\r\n rightSideInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (leftSide < 0) {\r\n MipavUtil.displayError(\"Cannot have leftSide < 0\");\r\n leftSideInput.requestFocus();\r\n leftSideInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (leftSide >= image.getExtents()[0]) {\r\n MipavUtil.displayError(\"Cannot have leftSide >= image.getExtents()[0]\");\r\n leftSideInput.requestFocus();\r\n leftSideInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (topSide < 0) {\r\n MipavUtil.displayError(\"Cannot have topSide < 0\");\r\n topInput.requestFocus();\r\n topInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (topSide >= image.getExtents()[1]) {\r\n MipavUtil.displayError(\"Cannot have topSide >= image.getExtents()[1]\");\r\n topInput.requestFocus();\r\n topInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (bottomSide < 0) {\r\n MipavUtil.displayError(\"Cannot have bottomSide < 0\");\r\n bottomInput.requestFocus();\r\n bottomInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (bottomSide >= image.getExtents()[1]) {\r\n MipavUtil.displayError(\"Cannot have bottomSide >= image.getExtents()[1]\");\r\n bottomInput.requestFocus();\r\n bottomInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n\r\n if (image.getNDims() >= 3) {\r\n\r\n if (front < 0) {\r\n MipavUtil.displayError(\"Cannot have front < 0\");\r\n frontInput.requestFocus();\r\n frontInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (front >= image.getExtents()[2]) {\r\n MipavUtil.displayError(\"Cannot have front >= image.getExtents()[2]\");\r\n frontInput.requestFocus();\r\n frontInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (back < 0) {\r\n MipavUtil.displayError(\"Cannot have back < 0\");\r\n backInput.requestFocus();\r\n backInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (back >= image.getExtents()[2]) {\r\n MipavUtil.displayError(\"Cannot have back >= image.getExtents()[2]\");\r\n backInput.requestFocus();\r\n backInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n } // if (image.getNDims() >= 3)\r\n\r\n if ((image.getExtents()[0] - rightSide - leftSide) <= 0) {\r\n MipavUtil.displayError(\"Cannot have image.getExtents()[0] - rightSide - leftSide <= 0\");\r\n\r\n return false;\r\n }\r\n\r\n if ((image.getExtents()[1] - topSide - bottomSide) <= 0) {\r\n MipavUtil.displayError(\"Cannot have image.getExtents()[1] - topSide - bottomSide <= 0\");\r\n\r\n return false;\r\n }\r\n\r\n if (image.getNDims() >= 3) {\r\n\r\n if ((image.getExtents()[2] - front - back) <= 0) {\r\n MipavUtil.displayError(\"Cannot have image.getExtents()[2] - front - back <= 0\");\r\n\r\n return false;\r\n }\r\n }\r\n\r\n xBounds[0] = leftSide;\r\n xBounds[1] = rightSide;\r\n yBounds[0] = topSide;\r\n yBounds[1] = bottomSide;\r\n zBounds[0] = front;\r\n zBounds[1] = back;\r\n\r\n if (newImage.isSelected()) {\r\n displayLoc = NEW;\r\n } else {\r\n displayLoc = REPLACE;\r\n }\r\n\r\n return true;\r\n }", "public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }", "private void method_460(String var1, int var2, String var3, int var4) {\r\n super(var1, var2);\r\n }", "public int getTotalVariables() ;", "void setupVariables(IVariableFactory factory);", "@Override\n\tprotected void initParams() {\n\t\t\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}", "public void method_2461(ahb var1, int var2, int var3, int var4) {\r\n String[] var5 = class_752.method_4253();\r\n ahb var10000 = var1;\r\n if(var5 != null) {\r\n if(var1.field_1832) {\r\n return;\r\n }\r\n\r\n var10000 = var1;\r\n }\r\n\r\n if(var10000.method_31(var2, var3, var4) == null) {\r\n this.method_2684(var1, var2, var3, var4);\r\n }\r\n\r\n }", "private void generateVariablesAndConstraints() {\n\t\tVariable norwegian=new Variable(generateDomain(), \"norwegian\");\n\t\tVariable english=new Variable(generateDomain(), \"english\");\n\t\tVariable dane=new Variable(generateDomain(), \"dane\");\n\t\tVariable german=new Variable(generateDomain(), \"german\");\n\t\tVariable swede=new Variable(generateDomain(), \"swede\");\n\t\t//colors: \"red\", \"green\", \"white\", \"yellow\", \"blue\"\n\t\tVariable red=new Variable(generateDomain(), \"red\");\n\t\tVariable green=new Variable(generateDomain(), \"green\");\n\t\tVariable white=new Variable(generateDomain(), \"white\");\n\t\tVariable yellow=new Variable(generateDomain(), \"yellow\");\n\t\tVariable blue=new Variable(generateDomain(), \"blue\");\n\t\t//tobaccos: \"light\", \"cigar\", \"pipe\", \"unfiltered\", \"menthol\"\n\t\tVariable light=new Variable(generateDomain(), \"light\");\n\t\tVariable cigar=new Variable(generateDomain(), \"cigar\");\n\t\tVariable pipe=new Variable(generateDomain(), \"pipe\");\n\t\tVariable unfiltered=new Variable(generateDomain(), \"unfiltered\");\n\t\tVariable menthol=new Variable(generateDomain(), \"menthol\");\n\t\t//drinks: \"tea\", \"milk\", \"water\", \"beer\", \"coffee\"\n\t\tVariable tea=new Variable(generateDomain(), \"tea\");\n\t\tVariable milk=new Variable(generateDomain(), \"milk\");\n\t\tVariable water=new Variable(generateDomain(), \"water\");\n\t\tVariable beer=new Variable(generateDomain(), \"beer\");\n\t\tVariable coffee=new Variable(generateDomain(), \"coffee\");\n\t\t//pets: \"fish\", \"cat\", \"bird\", \"dog\", \"horse\"\n\t\tVariable fish=new Variable(generateDomain(), \"fish\");\n\t\tVariable cat=new Variable(generateDomain(), \"cat\");\n\t\tVariable bird=new Variable(generateDomain(), \"bird\");\n\t\tVariable dog=new Variable(generateDomain(), \"dog\");\n\t\tVariable horse=new Variable(generateDomain(), \"horse\");\n\t\t\n\t\tvariables= new ArrayList<Variable>(Arrays.asList(norwegian, english, dane, german, swede,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tred, green, white, yellow, blue,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlight, cigar, pipe, unfiltered, menthol,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttea, milk, water, beer, coffee,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfish, cat, bird, dog, horse));\n\t\t\n\t\tconstraints=new ArrayList<Constraint>();\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(norwegian, english, dane, german, swede))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(red, green, white, yellow, blue))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(light, cigar, pipe, unfiltered, menthol))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(tea, milk, water, beer, coffee))).toneq()));\n\t\tconstraints.addAll((new allDifferent(new ArrayList<Variable>(Arrays.asList(fish, cat, bird, dog, horse))).toneq()));\n\t\tconstraints.add(new equnary(norwegian, 1)); //Norweg zamieszkuje pierwszy dom\n\t\tconstraints.add(new eq(english, red));//Anglik mieszka w czerwonym domu.\n\t\tconstraints.add(new lt(green, white));//Zielony dom znajduje się bezpośrednio po lewej stronie domu białego.\n\t\tconstraints.add(new eq(dane, tea));//Duńczyk pija herbatkę.\n\t\tconstraints.add(new nextto(light, cat));//Palacz papierosów light mieszka obok hodowcy kotów.\n\t\tconstraints.add(new eq(yellow, cigar));//Mieszkaniec żółtego domu pali cygara.\n\t\tconstraints.add(new eq(german, pipe));//Niemiec pali fajkę.\n\t\tconstraints.add(new equnary(milk, 3));//Mieszkaniec środkowego domu pija mleko.\n\t\tconstraints.add(new nextto(light, water));//Palacz papierosów light ma sąsiada, który pija wodę.\n\t\tconstraints.add(new eq(unfiltered, bird));//Palacz papierosów bez filtra hoduje ptaki.\n\t\tconstraints.add(new eq(swede, dog));//Szwed hoduje psy.\n\t\tconstraints.add(new nextto(norwegian, blue));//Norweg mieszka obok niebieskiego domu.\n\t\tconstraints.add(new nextto(horse, yellow));//Hodowca koni mieszka obok żółtego domu.\n\t\tconstraints.add(new eq(menthol, beer));//Palacz mentolowych pija piwo.\n\t\tconstraints.add(new eq(green, coffee));//W zielonym domu pija się kawę\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 }", "public TradeVariables() { /*gets default values*/ }", "private void collectValuesForSettings() {\n portColumnsValue = (portColumns.getProgress());\n portRowsValue = (portRows.getProgress());\n landColumnsValue = (landColumns.getProgress());\n landRowsValue = (landRows.getProgress());\n }", "protected boolean func_70814_o() { return true; }", "private LocalParameters() {\n\n\t}", "private void initVars(){\n this.sOut = new StringBuilder();\n this.curPos = this.frameCount = 0;\n this.heldKeys = new int[257];\n this.showCursor = false;\n this.fontId = DAGGER40;\n Arrays.fill(this.heldKeys,-1);\n }", "protected void additionalProcessing() {\n\t}", "protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\t\n\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "private void setOtherParam(Settings set) {\n URL_SQL_RU = set.getValue(\"app.urlSqlRu\");\n NAME_DATA_BASE = set.getValue(\"app.nameDataBase\");\n DAT_NAME = set.getValue(\"app.datName\");\n VACANCY = set.getValue(\"app.vacancy\");\n TABLE_NAME = set.getValue(\"app.tableName\");\n ZERO = Integer.parseInt(set.getValue(\"app.zero\"));\n SKIP_ROW = Integer.parseInt(set.getValue(\"app.skipRow\"));\n CLASS = set.getValue(\"app.class\");\n POSTS_LIST_TOPIC = set.getValue(\"app.postsListTopic\");\n LAST_YEAR = set.getValue(\"app.lastYear\");\n }", "public void setTotalVariables( int totalVars ) ;", "public void mo38117a() {\n }", "private void getExecutionVariablen(DelegateExecution execution) {\r\n\t\texecution.setVariable(\"Erhoehung\", true);\r\n\r\n\t\tanrede = (String) execution.getVariable(\"Anrede\");\r\n\t\tvorname = (String) execution.getVariable(\"VornameHauptmieter\");\r\n\t\tnachname = (String) execution.getVariable(\"NachnameHauptmieter\");\r\n\t\ttoEmail = (String) execution.getVariable(\"E-Mail\");\r\n\t\tmieterhoehung = (Double) execution.getVariable(\"relevanteMieterhoehung\");\r\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "private void checkAttributes() throws JellyTagException\n {\n if (getField() == null)\n {\n throw new MissingAttributeException(\"field\");\n }\n if (getVar() == null)\n {\n if (!(getParent() instanceof ValueSupport))\n {\n throw new JellyTagException(\n \"No target for the resolved value: \"\n + \"Specify the var attribute or place the tag \"\n + \"in the body of a ValueSupport tag.\");\n }\n }\n }", "final public void varcall() throws ParseException {\n jj_consume_token(VARIABLE);\n if(userVals.get(token.image)==null) {\n {if (true) throw new ParseException(\"La variable no ha sido definida.\");}\n }\n }", "public void inicializarVariables(boolean inicializa){\n\t\tif(inicializa){\n\t\t\tx = 1;\n\t\t\ty = 3*x;\n\t\t\t//TODO cómo se resuelve este problema?\n\t\t\tDouble temp = Math.pow(x, 2) + y;\n\n\t\t\tz = temp.intValue(); \n\t\t\tSystem.out.println(\"Valor de z\"+z);\n\t\t}else{\n\t\t\t// No hacer nada\n\t\t}\t\t\n\t}", "private String createValues() {\n String values = getLatitude(\"\");\n if (getLongitude() != FLOATNULL) {\n values = values + \",\" + getLongitude(\"\");\n } // if getLongitude\n if (getDepth() != FLOATNULL) {\n values = values + \",\" + getDepth(\"\");\n } // if getDepth\n if (getTemperatureMin() != FLOATNULL) {\n values = values + \",\" + getTemperatureMin(\"\");\n } // if getTemperatureMin\n if (getTemperatureMax() != FLOATNULL) {\n values = values + \",\" + getTemperatureMax(\"\");\n } // if getTemperatureMax\n if (getSalinityMin() != FLOATNULL) {\n values = values + \",\" + getSalinityMin(\"\");\n } // if getSalinityMin\n if (getSalinityMax() != FLOATNULL) {\n values = values + \",\" + getSalinityMax(\"\");\n } // if getSalinityMax\n if (getOxygenMin() != FLOATNULL) {\n values = values + \",\" + getOxygenMin(\"\");\n } // if getOxygenMin\n if (getOxygenMax() != FLOATNULL) {\n values = values + \",\" + getOxygenMax(\"\");\n } // if getOxygenMax\n if (getNitrateMin() != FLOATNULL) {\n values = values + \",\" + getNitrateMin(\"\");\n } // if getNitrateMin\n if (getNitrateMax() != FLOATNULL) {\n values = values + \",\" + getNitrateMax(\"\");\n } // if getNitrateMax\n if (getPhosphateMin() != FLOATNULL) {\n values = values + \",\" + getPhosphateMin(\"\");\n } // if getPhosphateMin\n if (getPhosphateMax() != FLOATNULL) {\n values = values + \",\" + getPhosphateMax(\"\");\n } // if getPhosphateMax\n if (getSilicateMin() != FLOATNULL) {\n values = values + \",\" + getSilicateMin(\"\");\n } // if getSilicateMin\n if (getSilicateMax() != FLOATNULL) {\n values = values + \",\" + getSilicateMax(\"\");\n } // if getSilicateMax\n if (getChlorophyllMin() != FLOATNULL) {\n values = values + \",\" + getChlorophyllMin(\"\");\n } // if getChlorophyllMin\n if (getChlorophyllMax() != FLOATNULL) {\n values = values + \",\" + getChlorophyllMax(\"\");\n } // if getChlorophyllMax\n if (dbg) System.out.println (\"<br>values = \" + values); // debug\n return values;\n }", "public void prepare() {\n\t}", "public final void mo51373a() {\n }", "public void readParameters()\n {\n readParameters(getData());\n }", "private void setVariables() {\n vb = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);\n linBoardGame = (LinearLayout) ((Activity) context).findViewById(boardID);\n gridContainer = (RelativeLayout) ((Activity) context).findViewById(R.id.gridContainer);\n shipTV = (TextView) ((Activity) context).findViewById(R.id.shipTV);\n linBoardGame.setOnTouchListener(this);\n sizeOfCell = Math.round(ScreenWidth() / (maxN + (1)));\n occupiedCells = new ArrayList<>();\n playerAttacks = new ArrayList<>();\n hit = false;\n gridID = R.drawable.grid;\n if (!player ) lockGrid = true;\n ships = new ArrayList<>();\n }", "void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }", "private static void cajas() {\n\t\t\n\t}", "private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }", "private void initializeVariables(Date timeSlotDate)\n\t\t{\n\t\t\tthis.timeSlot = timeSlotDate;\n\t\t}", "private void getSavedValues() {\r\n\r\n if (this.pl_expert.getParam(\"displayNodeDegree\") != null) {\r\n this.display_node_degree_current = this.pl_expert.getParam(\"displayNodeDegree\");\r\n } else {\r\n this.display_node_degree_current = display_node_degree_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"displayEdges\") != null) {\r\n this.display_edges_current = this.pl_expert.getParam(\"displayEdges\");\r\n } else {\r\n this.display_edges_current = display_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"scale\") != null) {\r\n this.scale_current = this.pl_expert.getParam(\"scale\");\r\n } else {\r\n this.scale_current = scale_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"minWeight\") != null) {\r\n this.minweight_edges_current = this.pl_expert.getParam(\"minWeight\");\r\n } else {\r\n this.minweight_edges_current = minweight_edges_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"iterations\") != null) {\r\n this.iterations_current = this.pl_expert.getParam(\"iterations\");\r\n } else {\r\n this.iterations_current = iterations_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"vote_value\") != null) {\r\n this.vote_value_current = this.pl_expert.getParam(\"vote_value\");\r\n } else {\r\n this.vote_value_current = vote_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"keep_value\") != null) {\r\n this.keepclass_value_current = this.pl_expert.getParam(\"keep_value\");\r\n } else {\r\n this.keepclass_value_current = keepclass_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mut_value\") != null) {\r\n this.mut_value_current = this.pl_expert.getParam(\"mut_value\");\r\n } else {\r\n this.mut_value_current = mut_value_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"mutationParameter\") != null) {\r\n this.mut_option_current = this.pl_expert.getParam(\"mutationParameter\");\r\n } else {\r\n this.mut_option_current = mut_option_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Update_param\") != null) {\r\n this.update_param_current = this.pl_expert.getParam(\"Update_param\");\r\n } else {\r\n this.update_param_current = update_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"Alg_param\") != null) {\r\n this.alg_param_current = this.pl_expert.getParam(\"Alg_param\");\r\n } else {\r\n this.alg_param_current = alg_param_default;\r\n }\r\n\r\n if (this.pl_expert.getParam(\"only_sub\") != null) {\r\n this.display_sub_current = new Boolean(this.pl_expert.getParam(\"only_sub\")).booleanValue();\r\n } else {\r\n this.display_sub_current = display_sub_default;\r\n }\r\n\r\n this.is_alg_started = false;\r\n }", "private void initFixedArgs() {\n\t\t\n\t\t// Fetch arguments and convert to integer\n\t\tObject[] args = this.getArguments();\n\t\t\n\t\t// Assign values\n\t\tcoords = new Point((int) args[coordsXI], (int) args[coordsYI]);\n\t\tspots = (int) args[regularSpotsI] + (int) args[luxurySpotsI] + (int) args[handicapSpotsI];\n\t\tregularSpots = (int) args[regularSpotsI];\n\t\tluxurySpots = (int) args[luxurySpotsI];\n\t\thandicapSpots = (int) args[handicapSpotsI];\n\t\thourlyCost = (int) args[fixedHourlyCostI];\n\t\tluxuryCostPercent = (int) args[fixedLuxuryCostPercentI];\n\t}", "public void setUpFields() {\n //Assigning each of the warning to relevant TextViews\n warning1 = findViewById(R.id.tvWarning1);\n warning2 = findViewById(R.id.tvWarning2);\n warning3 = findViewById(R.id.tvWarning3);\n warning4 = findViewById(R.id.tvWarning4);\n warning5 = findViewById(R.id.tvWarning5);\n warning6 = findViewById(R.id.tvWarning6);\n warning7 = findViewById(R.id.tvWarning7);\n warning8 = findViewById(R.id.tvWarning8);\n }", "private final void m28007e(JsonParser jVar) throws IOException {\n Object Q = jVar.mo29771Q();\n this.f20615n = Q;\n if (Q != null) {\n this.f20617p = true;\n }\n Object P = jVar.mo29770P();\n this.f20616o = P;\n if (P != null) {\n this.f20617p = true;\n }\n }", "final void getParameters()\r\n {\r\n hostName=getParameter(\"hostname\");\r\n\tIPAddress=getParameter(\"IPAddress\");\r\n\tString num=getParameter(\"maxSearch\");\r\n\tString arg=getParameter(\"debug\");\r\n\tserver=getParameter(\"server\");\r\n\tindexName=getParameter(\"indexName\");\r\n\tString colour=getParameter(\"bgColour\");\r\n\r\n\tif(colour==null)\r\n\t{\r\n\t bgColour=Color.lightGray;\r\n }\r\n else\r\n\t{\r\n\t try\r\n\t {\r\n\t bgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t bgColour=Color.lightGray;\r\n\t }\r\n\t}\r\n\t\r\n\tcolour=getParameter(\"fgColour\");\r\n\tif(colour==null)\r\n\t{\r\n\t fgColour=Color.black;\r\n\t}\r\n\telse\r\n\t{\r\n\t try\r\n\t {\r\n\t fgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t fgColour=Color.black;\r\n\t }\r\n\t}\r\n\r\n\t//Check for missing parameters.\r\n\tif(hostName==null && server==null)\r\n\t{\r\n\t statusArea.setText(\"Error-no host/server\");\r\n\t hostName=\"none\";\r\n\t}\r\n\r\n\tmaxSearch=(num == null) ? MAX_NUMBER_PAGES : Integer.parseInt(num);\r\n }", "private void setupVariables() {\n activeCourseList = new ArrayList<>();\n activeScheduleList = new ArrayList<>();\n\n scanner = new Scanner(System.in);\n reader = new JsonReader(\"./data/ScheduleList.json\",\n \"./data/CourseList.json\");\n\n loadLists();\n }", "public void method_6337(ahb var1, long var2, boolean var4, String var5) {\r\n super();\r\n String[] var6 = class_752.method_4253();\r\n this.field_5909 = new aji[256];\r\n this.field_5910 = new byte[256];\r\n this.field_5912 = new ArrayList();\r\n this.field_5907 = var1;\r\n this.field_5908 = new Random(var2);\r\n this.field_5911 = class_1198.method_6444(var5);\r\n boolean var10000 = var4;\r\n String[] var10;\r\n Map var19;\r\n if(var6 != null) {\r\n label91: {\r\n if(var4) {\r\n Map var7 = this.field_5911.method_6439();\r\n var10 = field_5917;\r\n var10000 = var7.containsKey(\"village\");\r\n List var15;\r\n if(var6 != null) {\r\n if(var10000) {\r\n Map var8 = (Map)var7.get(\"village\");\r\n var10000 = var8.containsKey(\"size\");\r\n if(var6 != null) {\r\n if(!var10000) {\r\n var8.put(\"size\", \"1\");\r\n }\r\n\r\n var15 = this.field_5912;\r\n class_1053 var10001 = new class_1053;\r\n var10001.method_5976(var8);\r\n var15.add(var10001);\r\n }\r\n }\r\n\r\n var10 = field_5917;\r\n var10000 = var7.containsKey(\"biome_1\");\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000) {\r\n var15 = this.field_5912;\r\n class_1055 var16 = new class_1055;\r\n var10 = field_5917;\r\n var16.method_5978((Map)var7.get(\"biome_1\"));\r\n var15.add(var16);\r\n }\r\n\r\n var10 = field_5917;\r\n var10000 = var7.containsKey(\"mineshaft\");\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000) {\r\n var15 = this.field_5912;\r\n class_1057 var17 = new class_1057;\r\n var10 = field_5917;\r\n var17.method_5982((Map)var7.get(\"mineshaft\"));\r\n var15.add(var17);\r\n }\r\n\r\n var10 = field_5917;\r\n var10000 = var7.containsKey(\"stronghold\");\r\n }\r\n\r\n if(var6 == null) {\r\n break label91;\r\n }\r\n\r\n if(var10000) {\r\n var15 = this.field_5912;\r\n class_1054 var18 = new class_1054;\r\n var10 = field_5917;\r\n var18.method_5977((Map)var7.get(\"stronghold\"));\r\n var15.add(var18);\r\n }\r\n }\r\n\r\n var19 = this.field_5911.method_6439();\r\n var10 = field_5917;\r\n this.field_5913 = var19.containsKey(\"decoration\");\r\n var10000 = this.field_5911.method_6439().containsKey(\"lake\");\r\n }\r\n }\r\n\r\n class_1198 var11;\r\n label97: {\r\n class_1187 var20;\r\n if(var6 != null) {\r\n if(var10000) {\r\n var20 = new class_1187;\r\n var20.method_6406(class_1192.field_6034);\r\n this.field_5915 = var20;\r\n }\r\n\r\n var11 = this.field_5911;\r\n if(var6 == null) {\r\n break label97;\r\n }\r\n\r\n Map var12 = this.field_5911.method_6439();\r\n var10 = field_5917;\r\n var10000 = var12.containsKey(\"lava_lake\");\r\n }\r\n\r\n if(var10000) {\r\n var20 = new class_1187;\r\n var20.method_6406(class_1192.field_6036);\r\n this.field_5916 = var20;\r\n }\r\n\r\n var19 = this.field_5911.method_6439();\r\n String[] var10002 = field_5917;\r\n this.field_5914 = var19.containsKey(\"dungeon\");\r\n var11 = this.field_5911;\r\n }\r\n\r\n Iterator var13 = var11.method_6440().iterator();\r\n\r\n label71:\r\n while(var13.hasNext()) {\r\n class_1205 var14 = (class_1205)var13.next();\r\n int var9 = var14.method_6474();\r\n\r\n while(var9 < var14.method_6474() + var14.method_6471()) {\r\n this.field_5909[var9] = var14.method_6472();\r\n this.field_5910[var9] = (byte)var14.method_6473();\r\n ++var9;\r\n if(var6 == null) {\r\n continue label71;\r\n }\r\n\r\n if(var6 == null) {\r\n break;\r\n }\r\n }\r\n\r\n if(var6 == null) {\r\n break;\r\n }\r\n }\r\n\r\n }", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "private void initializeVariables() {\n rnd = new Random();\n\n pieceKind = rnd.nextInt() % 7;\n if(pieceKind < 0) pieceKind *= -1;\n pieceKind2 = rnd.nextInt() % 7;\n if(pieceKind2 < 0) pieceKind2 *= -1;\n\n piece = new Piece(pieceKind,this);\n newPiece();\n startedGame = true;\n\n for(i=0; i<276; i++) {\n modulo = i%12;\n if(modulo == 0 || modulo == 11 || i>251) {\n matrix[i] = 0; colMatrix[i] = true;\n } else {\n matrix[i] = -1; colMatrix[i] = false;\n }\n }\n\n for(i=0; i<5; i++) completeLines[i] = -1;\n for(i=0; i<4; i++) keybl.setMovTable(i, false);\n }", "@Override\n\tpublic List<Shipment> generateVariables(Connection connection, ResultSet rawData)\n\t{\n\t\treturn null;\n\t}", "private void cmdInfoVars() throws NoSystemException {\n MSystem system = system();\n \n System.out.print(system.getVariableEnvironment());\n }", "abstract void checkWhetherVariable(SyntaxUnit use);", "private List<VariableCoefficientTuple> getVariablesUsedForBranchingInThisRectangle(Rectangle rect){\r\n List<VariableCoefficientTuple> variablesUsedForBranchingInThisRectangle = new ArrayList<VariableCoefficientTuple> ();\r\n \r\n for (String var : rect.zeroFixedVariables) {\r\n if (!treeNode_zeroFixedVariables.contains(var) ) \r\n variablesUsedForBranchingInThisRectangle.add(new VariableCoefficientTuple(var, ZERO) );\r\n }\r\n for (String var : rect.oneFixedVariables){ \r\n if ( !treeNode_oneFixedVariables.contains(var)) {\r\n variablesUsedForBranchingInThisRectangle.add(new VariableCoefficientTuple(var, ONE));\r\n } \r\n }\r\n \r\n return variablesUsedForBranchingInThisRectangle;\r\n }", "private void initVariables() {\n ivBack.setVisibility(View.VISIBLE);\n tvTitle.setVisibility(View.VISIBLE);\n tvTitle.setText(getString(R.string.change_language));\n\n gifProgress.setImageResource(R.drawable.shopholic_loader);\n progressBar.setVisibility(View.GONE);\n String currentLang = AppSharedPreference.getInstance().getString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE);\n setLanguage(currentLang);\n }" ]
[ "0.6588147", "0.6553709", "0.6212208", "0.6027991", "0.5855355", "0.56251156", "0.5597757", "0.5586615", "0.5585361", "0.555742", "0.5538334", "0.5518751", "0.55086094", "0.54988676", "0.5495132", "0.5454466", "0.54290956", "0.5414361", "0.5397744", "0.53970635", "0.53939795", "0.5387144", "0.5385061", "0.5384179", "0.53802735", "0.53746074", "0.53637934", "0.53629893", "0.5360652", "0.5345751", "0.5342921", "0.5319358", "0.53168255", "0.53129613", "0.53095907", "0.5297407", "0.5297015", "0.52828753", "0.5279469", "0.5278764", "0.5277964", "0.5265372", "0.52624506", "0.52603763", "0.52575135", "0.5254547", "0.5253422", "0.523545", "0.52332467", "0.5220686", "0.5218899", "0.5216135", "0.5209898", "0.5209343", "0.52050525", "0.52033913", "0.5197617", "0.5190237", "0.5183423", "0.5183257", "0.5176437", "0.5175709", "0.5171468", "0.51698273", "0.5168494", "0.51671153", "0.51543975", "0.51540875", "0.51512104", "0.51496434", "0.5146148", "0.5143801", "0.51418185", "0.5139392", "0.51380855", "0.51304996", "0.51289165", "0.5126171", "0.51242906", "0.5121839", "0.51211315", "0.51192373", "0.51172554", "0.5115759", "0.51102483", "0.51077086", "0.51017725", "0.50957704", "0.5095725", "0.50940114", "0.5080601", "0.5068301", "0.5059107", "0.5057327", "0.5052247", "0.50495374", "0.504585", "0.50405014", "0.50363195", "0.5033512", "0.5031487" ]
0.0
-1
public void login(UserDto userDto) throws FacadeException; public void logout(UserDto userDto) throws FacadeException;
public ResponseDto forgetPassword(UserDto userDto) throws FacadeException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean userLogin(UserDTO user) throws UserException, Exception;", "boolean userLogout(UserDTO user) throws UserException, SQLException,ConnectException;", "boolean doLogin(UserDTO loginUser);", "@Service\npublic interface LoginService {\n\n void logout(HttpServletRequest request) throws LoginServiceException;\n\n void login(LoginDTO dto, HttpServletRequest request) throws LoginServiceException;\n}", "public interface UserLoginFacade {\n\n /**\n * 正常登陆接口\n *\n * @param loginParam loginParam\n * @return\n */\n public Result<UserInfoDTO> loginForApp(LoginParam loginParam);\n\n /**\n * 同意协议\n *\n * @param loginParam loginParam\n * @return\n */\n public Result<UserInfoDTO> agreeProtocolForApp(LoginParam loginParam);\n\n /**\n * sam免登陆门店\n *\n * @param userGlobalId\n * @param request\n * @param response\n * @return\n */\n String samAvoidLogin(String userGlobalId, HttpServletRequest request, HttpServletResponse response);\n\n /**\n * 管理后台免登陆门店\n *\n * @param shopId\n * @param request\n * @param response\n * @return\n */\n String legendmAvoidLogin(Long shopId, HttpServletRequest request, HttpServletResponse response);\n\n /**\n * 根据登录账户获取用户信息\n *\n * @param loginAccount\n * @return\n */\n public Result<UserInfoDTO> getUserInfoByLoginAccountForApp(String loginAccount,String password, Long chooseShopId,boolean checkPassword);\n\n /**\n * 二维码登录\n */\n void loginForPCQRCodeLogin(Long shopId, Long userId, String uuid);\n\n /**\n * PC登录\n * @param list\n * @param shopManager\n * @param shop\n * @param response\n */\n void loginForPC(List<FuncF> list,ShopManager shopManager,Shop shop, HttpServletResponse response);\n\n /**\n * 校验登录等级1\n * @param shopId\n * @param userId\n */\n void checkShopLevelOneLogin(Long shopId,Long userId);\n}", "public void login(User user);", "public interface LoginService {\n\n public User login(String login, String password);\n\n}", "public interface UserService {\n\n Object login(String username, String password);\n\n}", "public interface UserService {\n\n void insertUser(UserDto userDto);\n List<UserDto> getAllUsers();\n UserDto login(String phone, String password);\n\n}", "RestaurantDto loginRestaurant(RestaurantDto restaurant);", "public void logout() {\n \n }", "@Service\npublic interface UserLoginUtil {\n\n public User getCurrentLogInUser();\n\n boolean userHaveRole(User currentUser, UserRole.Role admin);\n\n void addUserForClientWithRole(User user, UserRole.Role role) throws WrongInputDataException;\n\n void changePassForUser(User user, String password) throws WrongInputDataException;\n}", "public abstract void logout();", "public interface LoginService {\n\n /**\n * 登录\n *\n * @param data\n * @param req\n * @return\n */\n @ClearAuth\n @Route( code = RouteCode.Ou.LOGIN )\n MemberDTO login( MemberDTO data, RequestMsg req );\n\n /**\n * 注册\n *\n * @param member\n * @param terminal\n * @return\n */\n @ClearAuth\n @Validator\n @Route( code = RouteCode.Ou.REGISTER )\n MemberDTO register( @Valid( groups = Register.class ) MemberDTO member, RequestMsg req );\n\n /**\n * 免密登录\n * <p> 不验证密码直接登录 <p/>\n *\n * @param memberId\n * @param terminal\n * @param ip\n * @param loginInfo\n * @return\n */\n MemberDTO loginNoPwd( Integer memberId, String terminal, String ip, LoginInfoDTO loginInfo );\n\n /**\n * 注册时发送验证码\n *\n * @param mobile\n */\n @ClearAuth\n @Route( code = RouteCode.Ou.SEND_VCODE_4_REGISTER )\n void sendVcode4Register( String mobile );\n\n /**\n * 完善用户资料\n *\n * @param member\n * @param req\n */\n void accomplishMember( MemberDTO member, RequestMsg req );\n}", "public interface login {\n\n void LoginUser(String Username, String Password);\n\n}", "public abstract User login(User data);", "public interface UserService {\n\n LoginResp login(String username, String psw);\n\n}", "public interface UserService{\n\n public UserAccount saveUser(UserAccount userAccount) throws UserNotExist;\n public UserAccount updateUser(UpdateDto updateDto) throws UserNotExist;\n public void deleteUser(DeleteDto deleteDto);\n\n public UserAccount findByEmail(String email);\n public UserAccount findByConfirmationToken(String confirmationToken);\n\n\n// public void logout();\n public void resendMail(ResendEmailDto resendEmailDto);\n public void resetPassword(UserAccount userAccount, HttpServletRequest request);\n}", "public interface UserDao {\n public User login(User user);\n}", "public interface LoginService {\n String login(String username, String pwd);\n}", "public interface HomeService {\n\n ResultDTO<List<DUser>> login(UserLoginDTO userLoginDTO);\n}", "public interface UserFacade {\n\n public void addUser();\n\n public void updateUser();\n\n public void delUser();\n\n public String findUser(String username);\n\n}", "public interface SessionInteractor {\n void logout();\n}", "public interface LoginService {\n\t\n\t/**\n\t * Authenttification d'un utilisateur en vue d'obtenir un token valide.\n\t * \n\t * @param authorization hash du login:Mot de passe {@link String}\n\t * @return TokenDTO d'authentification {@link TokenDTO}\n\t * @throws BusinessException : Exception fonctionnelle {@link BusinessException}\n\t */\n\tTokenDTO authenticateCustomer(String authorization) throws BusinessException;\n\n}", "public interface AuthService {\n void init();\n boolean login(HttpServletRequest request, String user, String password);\n\n void logout(HttpServletRequest request);\n\n boolean register(User user);\n\n\n User checkLogin(String username, String password);\n}", "void logout();", "void logout();", "public interface LoginService {\n E3Result userLogin(String username, String password);\n}", "void login(String user, String password);", "@PostMapping(value = \"/login\") \n\t public LoginResponseDto usersLogin(@RequestBody LoginDto loginDto) { \n\t\t LOGGER.info(\"login method\");\n\t\t return userService.usersLogin(loginDto);\n\t }", "public interface AuthService {\n User register(User user, CheckError checkError);\n \n String login(String username, String password);\n \n String refresh(String oldToken);\n}", "public UsuarioDTO obtener(String login) throws ReizzelException;", "void logoutSuccessful();", "public interface UserFacade extends Serializable {\n UserFacadeModel getLoginUser(String userName, String password);\n}", "@Override\n\tpublic void logout() {\n\t}", "void logoutRequest() throws Exception;", "@GetMapping(\"/user\")\n public User login(@RequestParam String username, @RequestParam String password) { return userDataTierConnection.login(username,password); }", "public interface UserService {\n ResultVo register(UserClassAddVo userClassAddVo);\n\n ResultVo login(LoginClassVo loginClassVo, HttpServletResponse response);\n\n ResultVo inputInvitationCode(String inputInvitationCode, HttpServletRequest request,HttpServletResponse response);\n}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "@Override\r\n\tpublic void logout() {\n\t\t\r\n\t}", "public interface UserDAO {\n void register(User user);\n User getUser(String userName);\n User login(String userName, String password);\n}", "public interface UserService {\r\n\r\n //注册方法\r\n Integer register(UserForm userForm) throws IOException;\r\n\r\n //登录\r\n UserDTO login(String userName, String userPassword);\r\n\r\n //检查用户名是否有效(str可以是用户名也可以是手机号。对应的type是username和userPhone)\r\n Integer checkValid(String str, String type);\r\n\r\n //获取用户登录信息\r\n UserDTO getUserInfo(String userPhone);\r\n\r\n //忘记密码获取问题\r\n String getQuestion(String userPhone);\r\n\r\n //提交问题答案(返回一个token)\r\n String checkAnswer(String userPhone, String userQuestion, String userAnswer);\r\n\r\n //忘记密码的重设密码\r\n Integer forgetResetPassword(String userPhone, String newPassword, String forgetToken);\r\n\r\n //登录状态中重设密码\r\n Integer resetPassword(String oldPassword, String newPassword, UserDTO userDTO);\r\n\r\n //登录状态更新个人信息\r\n Integer updateInformation(UserDTO userDTO,String userName, String userMail,String userPhone,String userQuestion,String userAnswer);\r\n\r\n //获取当前登录用户的详细信息,并强制登录\r\n UserForm getInformation(UserDTO userDTO);\r\n\r\n //退出登录\r\n Integer logout();\r\n\r\n //管理员查询用户列表\r\n List<UserInfo> list();\r\n\r\n //添加收货地址\r\n Shipping createShipping(ShippingForm shippingForm, String userId);\r\n\r\n //更新收货地址\r\n Shipping updateShipping(ShippingForm shippingForm, String shippingId, String userId);\r\n\r\n //查看收货地址\r\n Shipping shippingDetail(String shippingId);\r\n\r\n //查看收货地址列表\r\n List<Shipping> shippingList(String userId);\r\n\r\n //删除收货地址\r\n void deleteShipping(String shippingId);\r\n\r\n}", "public interface UserBiz {\n public void login(UserBean login);\n}", "public interface UserService {\n public UserDto signUp(UserDto userDto);\n public List<UserDto> listAll();\n public List<UserDto> findByFilter(UserFilterDto userFilterDto);\n}", "private void login(String username,String password){\n\n }", "public interface LoginRespository {\n void signUp(final String email, final String password);\n void signIn(String email, String password);\n void checkAlreadyAuthenticated();\n}", "public interface LoginDao {\n\n int login(LoginBean loginBean);\n}", "public interface UserService {\n\n User login(User user);\n\n /**\n * 用户列表\n *\n * @param user\n * @param pageHelper\n * @return\n */\n List<User> userGrid(User user, PageHelper pageHelper);\n\n /**\n * 保存或者更新\n *\n * @param user\n */\n void saveOrUpdate(User user) throws Exception;\n\n /**\n * 通过主键list集合删除\n *\n * @param list\n */\n void delete(List<String> list);\n\n /**\n * 加载男女管理员\n *\n * @return\n */\n List<Map<String, Object>> userMaleAndFemale();\n}", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "public interface UserService {\n\n User getById(int id);\n\n User login(User user);\n\n List<User> getByParam(String param,Object value);\n\n List<User> getPageByMap(Map<String,Object> map, int pageIndex, int pageSize);\n\n List<User> getListByMap(Map<String,Object> map);\n\n void addUser(User user);\n\n boolean isExsit(User user);\n\n void logout(User user);\n\n void update (User user);\n\n void delete(int id);\n}", "public interface UserService {\n public User userLogin(String sql);\n}", "public interface LoginScoinFacade {\n// public BaseDataResponse loginScoin(Map<String, Object> dataRequest);\n\n public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);\n}", "User loginUser(User userLoginRequest, HttpSession httpSession) throws Exception;", "public interface UserService {\n /**\n * 后台用户登陆\n * @param loginName\n * @param password\n * @return\n * @throws UserNotFoundException\n * @throws UserRoleException\n * @throws UserStatusException\n */\n public User backLogin(String loginName, String password) throws UserNotFoundException, UserRoleException, UserStatusException;\n\n public User frontLogin(String loginName, String password) throws UserNotFoundException, UserRoleException, UserStatusException;\n\n public PageInfo<User> findAllUserByAjax(int pageNo, User user) throws UserNotFoundException;\n\n public User findByUserId(Integer userId) throws UserNotFoundException;\n\n\n public void findByUsername(String username) throws UserExistException;\n\n public void addUser(User user) throws UserExistException;\n\n public void modifyUser(User user) throws UserExistException;\n\n public void modifyUserStatus(User user);\n\n\n\n}", "public interface Login {\n public User findUser(String username, String userpwd);\n public boolean insert(User user);\n}", "public interface UserService {\n public Map<String, List<User>> getRespUsers();\n\n public boolean checkLogin(String login);\n\n public User loginUser(String login, String password);\n\n public void saveNewUser(User user, String pass);\n}", "@PostMapping(value = {\"/login\", \"/login/\"})\n public PersonDto login(@RequestParam(\"email\") String email,\n @RequestParam(\"password\") String password) throws IllegalArgumentException {\n Person person = personService.login(email, password);\n if (person instanceof Manager) {\n return DtoConverter.toDto(person);\n } else if (person instanceof Tutor) {\n return DtoConverter.toDto(person);\n } else if (person instanceof Student) {\n return DtoConverter.toDto(person);\n } else {\n return null;\n }\n }", "String signIn(String userName, String password) throws UserNotFoundException;", "public interface UserService {\n\n public Object save(UserEntity test);\n\n UserEntity get(Long id);\n\n boolean exists(String username);\n\n UserEntity checkLogin(Map<String, String> dataMap);\n\n UserEntity checkLogin(String username, String password);\n}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public interface IUser {\n public void userLogin(String userName,String password,ApiCallBack callBack);\n}", "public interface UserDAO {\n\n boolean createUser(User user);\n\n boolean findUser(String userName, String password);\n\n User updateUser(User user);\n\n boolean deleteUser(String userName);\n\n List<User> findAllUsers();\n\n // User logIn(User user);\n //\n // User logOut(User user);\n}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "public interface IUserService {\n UserDTO registerNewUserAccount(UserBean accountBean) throws EmailExistsException;\n\n UserDTO getUser(String verificationToken);\n\n void saveRegisteredUser(UserDTO user);\n\n void deleteUser(UserDTO user);\n\n void createVerificationTokenForUser(UserDTO user, String token);\n\n VerificationTokenDTO getVerificationToken(String VerificationToken);\n\n VerificationTokenDTO generateNewVerificationToken(String token);\n\n void createPasswordResetTokenForUser(UserDTO user, String token);\n\n// UserDTO findUserByEmail(String email);\n\n PasswordResetTokenDTO getPasswordResetToken(String token);\n\n UserDTO getUserByPasswordResetToken(String token);\n\n UserDTO getUserByID(long id);\n\n void changeUserPassword(UserDTO user, String password);\n\n boolean checkIfValidOldPassword(UserDTO user, String password);\n}", "public AgentDTO login(String login, String senha);", "public interface UserService {\n User authorize(Login login) throws Exception;\n\n User findUser(UUID userApiKey);\n\n}", "public interface LoginService {\n /** 登录接口 **/\n @POST(\"front/login/storeEmployeeLogin\")\n Observable<LoginInfo> getLoginData(@Body LoginRequest loginrequest);\n\n /** 找回密码,获取手机号码 **/\n @GET(\"front/storeEmployee/getEmployeeMobile\")\n Observable<ForgetPwInfo> getPhonebyStore(@Query(\"storeEmployeeCode\") String store);\n\n /** 发送获取验证码 **/\n @POST(\"front/message/sendVerificationSms\")\n Observable<ForgetPwInfo> getSMSCode(@Query(\"mobile\") String mobile);\n\n /** 忘记密码,修改密码 **/\n @POST(\"front/storeEmployee/findPassword\")\n Observable<ForgetPwInfo> forgetResetPwd(@Body ResetPwdRequest request);\n}", "public interface UserService {\n\n /**\n * login user\n *\n * @param login user login\n * @param password user password\n * @return optional value of user if login is successful\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> login(String login, String password) throws ServiceException;\n\n /**\n * register user\n *\n * @param login user login\n * @param password user password\n * @param passwordConfirmed password confirm\n * @return true if register successful, false, otherwise\n * @throws ServiceException if an error occurs while processing.\n */\n boolean register(String login, String password, String passwordConfirmed) throws ServiceException;\n\n /**\n * Finds user by id\n *\n * @param id user id\n * @return optional value of user.\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> findUser(int id) throws ServiceException;\n\n /**\n * Finds user with cookies\n *\n * @param login user login\n * @param userHash user hash\n * @return optional value of user.\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> findUserWithCookies(String login, String userHash) throws ServiceException;\n\n /**\n * update user\n *\n * @param user user entity\n * @return true if register successful, false, otherwise\n * @throws ServiceException if an error occurs while processing.\n */\n boolean updateUser(User user) throws ServiceException;\n\n /**\n * confirm email\n *\n * @param userId id of user\n * @param token for confirmation\n * @return optional value of user.\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> confirmEmail(int userId, String token) throws ServiceException;\n\n /**\n * Finds all users\n *\n * @return list of users.\n * @throws ServiceException if an error occurs while processing.\n */\n List<User> findALlUsers() throws ServiceException;\n\n}", "public interface UserDtoIn extends Service<UserDto, Integer> {\n UserDto getByLogin(String login);\n\n UserDto removeById(Integer id);\n}", "public interface UserDAO {\n\n public long insert(User model);\n\n public User getCurrentUser();\n\n public void logout();\n}", "public interface UserSignLoginService {\n\n /**\n * 账户登录处理\n * @param bizParamBean\n * @return\n */\n public ResultBean signLogin(BizParamBean bizParamBean) throws Exception;\n}", "public interface ILoginDAO {\n\n boolean login(User user);\n void addUser(User user);\n boolean addEmployee(Employee employee);\n List<Stop> stopsList();\n Bus selectedBus(int bus_id);\n Stop selectedStop(int bus_id);\n List<Bus> busList(int bus_id);\n}", "@Override\r\n\tpublic void userLogout(String login) {\n\r\n\t}", "public interface UserFacade {\n\n /**\n * Get data from registration page and validate it.\n * Perform register if user with specified data not exists in datasource.\n * Before register encrypt password for safety.\n *\n * @param data registration data.\n */\n void register(RegisterData data) throws Exception;\n\n /**\n * Checks in database if data passed form registration form is already exists.\n * User login and email must be unique.\n *\n * @param data registration data.\n */\n boolean isUserExists(RegisterData data) throws DuplicateUserException;\n}", "public interface UserDAO {\n\n public void createUser(User user) throws DBException;\n\n void deleteUser(Long id) throws DBException;\n\n void updateUserData(User user) throws DBException;\n\n User getUserById(Long id) throws DBException;\n\n List<User> getAllUsers() throws DBException;\n\n String getUserByMail(String mail) throws DBException;\n\n String getUserByName(String name) throws DBException;\n\n boolean checkLoginData(String email, String password) throws DBException;\n\n User getUserByLoginData(String email, String password) throws DBException;\n\n User getPasswordByMail(String email) throws DBException;\n\n}", "@POST(\"login\")\n Call<User> login();", "@Override\n\tpublic void loginAuth(String userId, String password) {\n\t\tUserDTO loginUserInfo = loginDao.loginAuthDAO(userId);\n\t}", "public interface LoginService {\n int isValidUser(String username,String password);\n}", "public AuthToken loginUser(){\n return null;\n }", "public interface UserAccount {\n\n public String registration(String name, String password);\n\n public String logIn(String name, String password);\n\n public String deleteAccount(String name, String password);\n}", "public interface LoginService {\n @GET(\"user/rigister\") Call<UserRegister> getRegister\n\n (\n @Query(\"key\") String key, @Query(\"username\") String username,\n @Query(\"password\") String passowrd, @Query(\"email\") String email\n );\n\n @GET(\"user/login\") Call<UserLogin> getLogin(\n @Query(\"key\") String key, @Query(\"username\") String username,\n @Query(\"password\") String password\n );\n}", "public interface AuthenticatedUserApi {\n\n void sync(SyncStatusListener listener);\n\n void changePassword(String newPassword, ChangePasswordResponseListener listener);\n\n void changeEmail(String newEmail, ChangeEmailResponseListener listener);\n\n void changeMobile(String newMobileNumber, ChangeMobileResponseListener listener);\n\n void deleteAccount(DeleteAccountResponseListener listener);\n\n void changeUsername(String newUsername, ChangeUserNameResponseListener listener);\n\n void logout(LogoutResponseListener listener);\n\n}", "public interface MineInterface {\n //登出\n @POST(\"mobile/mobile/service/dwsqRequestloginout.do\")\n Call<CommonResult> logout(@Query(\"type\") String type, @Query(\"userId\") String userId, @Query(\"imei\") String imei);\n}", "public interface UserService {\n boolean hasMatchUser(String userName, String password);\n\n User findUserByUserName(String userName);\n\n void loginSuccess(User user);\n\n void createNewUser(User user) throws IOException;\n\n String makeMD5(String password);\n}", "public interface UserService {\n Result register(RegisterUser registerUser);\n Result login(LogInUser logInUser);\n Result logout(LogOutUser logOutUser);\n Result updatejpushIDByToken(UpdateJpush updateJpush);\n}", "Customer authenticateCustomer(LoginRequestDto loginRequestDto) throws UserNotFoundException;", "public interface IUserMedol {\n /**\n * 登陆\n * @param username\n * @param password\n */\n public void login(String username, String password, ICallBack callBack);\n}", "@Override\n\tpublic User login(String user, String pass) {\n\t\treturn null;\n\t}", "public interface UserService {\n\n //创建一个用户\n public void createUser(Sysuser sysuser);\n //修改用户信息\n public void saveUser(Sysuser sysuser);\n\n //根据传入的用户信息查询用户主要用户名和密码,返回list<map>\n public List<Map<String,Object>> signIn(Sysuser sysuser);\n\n //根据传入的用户信息查询用户主要用户名和密码,返回list<Sysuser>\n public List<Sysuser> getUserInfo1(Sysuser Sysuser);\n\n //修改密码\n public int modifyPassword(Map<String, Object> params);\n\n //修改头像\n public int modifyPhoto(String userId, String photoPath, String userType);\n\n //根据用户ID查询用户\n public Sysuser getUserInfoFromId(String userId);\n\n //设置用户是否可登陆后台\n public int setUserConsole(int userId,int state);\n\n //设置用户是否可登陆前台\n public int setUserFront(int userId,int state);\n\n}", "@Override\n\tpublic void logout(user theUser) {\n\t}", "public interface LoginRegisterService {\n /**\n *\n * @param user 已经知道账号和密码\n * @return 返回提示字符串\n */\n String login(User user, HttpServletRequest request, HttpServletResponse response);\n //注册\n String register(User user);\n\n //android端登录的service\n Map<String,Objects> androidLogin(User user);\n //android端注册账号\n Map<String,Objects> androidRegister(User user);\n //android端查询用户通过用户的id\n Map androidSelectUserByUserId(User user);\n}", "public interface UserDaoInterface {\n /**\n * Save the user in the DB\n * @param entity\n * @return boolean - if creation was success return true, else return false\n * @throws UserDaoException\n */\n boolean saveUser(User entity) throws UserDaoException;\n\n /**\n * Update the user tuple in the DB\n * @param entity\n * @throws UserDaoException\n */\n void updateUser(User entity) throws UserDaoException;\n\n /**\n * Delete the user tuple from DB\n * @param username\n * @throws UserDaoException\n */\n void deleteUser(String username) throws UserDaoException;\n\n /**\n * Gets the user tuple from the DB by username\n * @param username\n * @return User - tuple from the DB\n * @throws UserDaoException\n */\n User findByUsername(String username) throws UserDaoException;\n\n /**\n * Get all the users from the DB\n * @return list of all users in DB\n * @throws UserDaoException\n */\n List<User> findAll() throws UserDaoException;\n\n /**\n * Check if the username and password that entered are as same as in the user tuple in the DB.\n * @param username\n * @param password\n * @return boolean - return true if user exists in the DB and his password is correct, else false\n * @throws UserDaoException\n */\n boolean isAuthenticate(String username, String password) throws UserDaoException;\n}", "@Override\n\tpublic void logOutUser() {\n\t\t\n\t}", "User login(String email, String password) throws AuthenticationException;", "public interface ILoginBiz {\n void login(User user, OnLoginListener loginListener);\n}", "public interface UserService {\n public Map enroll(String username,String password,String name);\n public Map login(String username,String password);\n public Map modify(String username,String newPassword);\n //2017.8.15\n public Map consumeTimes(String username);\n public Map personMessage(String username);\n public Map queryHadPublishTrade(String username);\n\n //2017.8.19\n public Map uploadIcon(MultipartFile img, HttpServletRequest request,String username);\n}", "public interface LoginMapper {\n\n\t/**\n\t * 注册时查询用户是否已存在\n\t * \n\t * @param username\n\t * @return\n\t */\n\tpublic User findUserName(String username);\n\n\tpublic User findUserByU_P(@Param(\"username\") String username, @Param(\"password\") String password);\n\n\tpublic int finUserState(String userId);\n\n\tpublic String findMailById(String userId);\n\n\tpublic User findUserById(String id);\n\n\tpublic User findUserById(@Param(\"userId\") String id, @Param(\"username\") String username);\n\n\tpublic void updateUserState(@Param(\"userId\") String userId, @Param(\"state\") int state);\n\n\t// hgy\n\tpublic List<UserInfo> getFriendsByuserId(String userId);\n\n\tpublic void updateLoginTime(@Param(\"userId\") String userId,@Param(\"date\") Date date);\n\n}", "public interface LoginService {\n\n boolean checkPassWord(UserInfo userInfo, String password);\n}", "@Override\n public void performLogout(){\n }", "public interface UserDAO {\n /**\n * Searches for the user in database with the passed in username and returns a User object with this user's data.\n * @param username username to search for\n * @return User object if user is found, null if otherwise.\n */\n User getUser(String username);\n\n /**\n * Performs login verification, recieves a user object and a password attempt String as parameters and returns true if\n * there is a match for a user with such username and password. If match is found, logs in user by setting the user object's\n * loggedIn field to true and returning true; otherwise, returns false.\n * @param user The user object whose password is being verified.\n * @param password The password attempt\n * @return true if the user is verified, false if verification failed.\n */\n boolean verifyUser(User user, char[] password);\n}" ]
[ "0.7433842", "0.732045", "0.72874707", "0.7276711", "0.7149035", "0.71348375", "0.6868706", "0.68102247", "0.6795833", "0.6752332", "0.67357606", "0.6723965", "0.67129403", "0.6710913", "0.66348433", "0.66286546", "0.6603703", "0.6595938", "0.65958077", "0.6594884", "0.6576286", "0.6548838", "0.6517715", "0.6501704", "0.6497757", "0.6476514", "0.6476514", "0.64762855", "0.64567524", "0.636741", "0.6340513", "0.63330626", "0.6306573", "0.6299236", "0.6287796", "0.6273765", "0.6273018", "0.62610066", "0.6241361", "0.6237161", "0.6235869", "0.62347734", "0.6219988", "0.62160563", "0.62127316", "0.621054", "0.62088805", "0.619628", "0.619469", "0.61759067", "0.6175711", "0.6165636", "0.616332", "0.6158391", "0.61450547", "0.6143051", "0.6132962", "0.61279386", "0.611046", "0.6107096", "0.6103176", "0.6102806", "0.6102302", "0.609907", "0.6095277", "0.6086739", "0.6079868", "0.60764176", "0.60730624", "0.6072801", "0.6068814", "0.6066785", "0.606494", "0.60628545", "0.60583645", "0.60569793", "0.6051091", "0.60488814", "0.60479844", "0.604369", "0.6039312", "0.60316986", "0.6031028", "0.6024021", "0.60185623", "0.6018452", "0.6013591", "0.6004287", "0.60000867", "0.5996557", "0.5994053", "0.5991415", "0.5988079", "0.59831005", "0.5979823", "0.5979131", "0.5970593", "0.5966456", "0.5964799", "0.5958145" ]
0.6508796
23
=========================================================== Constants =========================================================== =========================================================== Fields =========================================================== =========================================================== Constructors =========================================================== =========================================================== Getter & Setter =========================================================== =========================================================== Methods from SuperClass/Interfaces =========================================================== =========================================================== Methods =========================================================== &lt;wfs:GetFeature service=&quot;WFS&quot; version=&quot;1.1.0&quot; xmlns:wfs=&quot; xmlns:ogc=&quot; xmlns:gml=&quot; xmlns:xsi=&quot; xsi:schemaLocation=&quot; &lt;wfs:Query typeName=&quot;traffic:messages&quot;&gt; &lt;wfs:PropertyName&gt;traffic:description&lt;/wfs:PropertyName&gt; &lt;wfs:PropertyName&gt;traffic:severity&lt;/wfs:PropertyName&gt; &lt;wfs:PropertyName&gt;traffic:the_geom&lt;/wfs:PropertyName&gt; &lt;ogc:Filter&gt; &lt;ogc:BBOX&gt; &lt;ogc:PropertyName&gt;the_geom&lt;/ogc:PropertyName&gt; &lt;gml:Envelope srsName=&quot; &lt;gml:lowerCorner&gt;10.44161 58.82350&lt;/gml:lowerCorner&gt; &lt;gml:upperCorner&gt;2.26089 41.512517&lt;/gml:upperCorner&gt; &lt;/gml:Envelope&gt; &lt;/ogc:BBOX&gt; &lt;/ogc:Filter&gt; &lt;/wfs:Query&gt; &lt;/wfs:GetFeature&gt;
public static String createGML1(final BoundingBoxE6 pBoundingBoxE6){ Assert.assertNotNull(pBoundingBoxE6); final StringBuilder sb = new StringBuilder(); final Formatter f = new Formatter(sb, Locale.ENGLISH); sb.append(WFS_GETFEATURE_TAG_OPEN); f.format(WFS_QUERY_TAG_OPEN, "traffic:t_traffic_view"); // @HOME SERVER traffic:messages | @UNI traffic:t_traffic_view f.format(WFS_PROPERTY_TAG, "traffic:severity"); f.format(WFS_PROPERTY_TAG, "traffic:description"); f.format(WFS_PROPERTY_TAG, "traffic:the_geom"); sb.append(OGC_FILTER_TAG_OPEN) .append(OGC_BBOX_TAG_OPEN); f.format(OGC_PROPERTY_TAG, "the_geom"); /* The BoundingBox... */ sb.append(GML_ENVELOPE_TAG_OPEN); f.format(GML_LOWERCORNER_TAG, pBoundingBoxE6.getLonWest(), pBoundingBoxE6.getLatSouth()); f.format(GML_UPPERCORNER_TAG, pBoundingBoxE6.getLonEast(), pBoundingBoxE6.getLatNorth()); sb.append(GML_ENVELOPE_TAG_CLOSE) .append(OGC_BBOX_TAG_CLOSE) .append(OGC_FILTER_TAG_CLOSE) .append(WFS_QUERY_TAG_CLOSE) .append(WFS_GETFEATURE_TAG_CLOSE); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface GetFeatureRequest extends Request{\n\n /**\n * @return QName : requested type name, can be null\n * if not yet configured.\n */\n QName getTypeName();\n\n /**\n * @param type : requested type name, must not be null\n */\n void setTypeName(QName type);\n\n /**\n * @return Filter : the request filter, null for no filter\n */\n Filter getFilter();\n\n /**\n * @param filter : the request filter, null for no filter\n */\n void setFilter(Filter filter);\n\n /**\n * @return Integer : maximum features returned by this request,\n * null for no limit.\n */\n Integer getMaxFeatures();\n\n /**\n * @param max : maximum features returned by this request,\n * null for no limit.\n */\n void setMaxFeatures(Integer max);\n\n /**\n * @return String[] : array of requested properties,\n * null if all properties, empty for only the id.\n */\n GenericName[] getPropertyNames();\n\n /**\n * @param properties : array of requested properties,\n * null if all properties, empty for only the id.\n */\n void setPropertyNames(GenericName[] properties);\n\n /**\n * Return the output format to use for the response.\n * text/xml; subtype=gml/3.1.1 must be supported.\n * Other output formats are possible as well as long as their MIME\n * type is advertised in the capabilities document.\n *\n * @return The current outputFormat\n */\n String getOutputFormat();\n\n /**\n * Set the output format to use for the response.\n * text/xml; subtype=gml/3.1.1 must be supported.\n * Other output formats are possible as well as long as their MIME\n * type is advertised in the capabilities document.\n *\n * @param outputFormat The current outputFormat\n */\n void setOutputFormat(String outputFormat);\n}", "String getFeature();", "String getFeature();", "Feature getFeature();", "Feature getFeature();", "public org.pentaho.pms.cwm.pentaho.meta.core.CwmStructuralFeature getFeature();", "public String getFeature() {\r\n return feature;\r\n }", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og, String url_geofenceWfs, String serviceIdentifier) {\r\n\t\t\r\n\t\t//logger.debug(xml_og);\r\n\t\tnameSpaceUri = getArbeitsbereichXmlTagFromWfs(url_geofenceWfs); //z.B. focus\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(nameSpaceUri.equals(args)){\r\n\t\t\t \treturn nameSpaceUri;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\r\n\t \tString pathToObjectid = \"//\"+nameSpaceUri +\":objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi test!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t//\tlogger.debug(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(serviceIdentifier.equals(\"within\")){\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBoxWithin.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "public KmlGeometryFeature(){\r\n }", "public GeoJson extractDataForGeoJsonFromIo(String xml_og){\r\n\t\t\r\n\t\tGeoJson geoJson = new GeoJson();\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\tDocument doc = null;\r\n\t\tString xml_final;\r\n\t\t\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(\"swe\".equals(args)) {\r\n\t\t\t return \"http://www.opengis.net/swe/1.0.1\";\r\n\t\t\t }else if(\"env\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\";\r\n\t\t\t }else if(\"sos\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/sos/2.0\";\r\n\t\t\t }else if(\"ows\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/ows/1.1\";\r\n\t\t\t }else if(\"soap\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\"; \t\r\n\t\t\t }else if(\"om\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/om/2.0\";\r\n\t\t\t }else if(\"xlink\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/1999/xlink\";\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\";\r\n\t\t\t }else if(\"sams\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/samplingSpatial/2.0\";\r\n\t\t\t }else{\r\n\t\t\t return null;}\r\n\t\t\t }\r\n\t\t\t\t});\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n\t\t\t\t//String path_loading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t \t\r\n\t \t//The path to the time is only for the first observation block valid; other blocks have another path\r\n\t \t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t \t\r\n\t \t\r\n\t\t\t\t\r\n\t\t\t\tString path_SamplingFOIIdentifier = \"//sams:SF_SpatialSamplingFeature/gml:identifier\";\r\n\t\t\t\tNodeList nodes_path_SamplingFOIIdentifier = (NodeList)xPath.compile(path_SamplingFOIIdentifier).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t\r\n\t\t\t\tString path_y_lat_x_long = \"//gml:pos\";\r\n\t\t\t\tNodeList nodes_path_y_lat_x_long = (NodeList)xPath.compile(path_y_lat_x_long).evaluate(doc, XPathConstants.NODESET);\t\t\t\t\t\t\r\n\t \t\r\n\t\t\t\t\r\n\t\t\t\tString messwert = \"\";\t\r\n\t\t\t\t\r\n\t\t\t\t//for(int n = 0; n<nodes_procedure.getLength(); n++){\r\n\t\t\t\t//we need the data from only the first observation block\r\n\t\t\t\tfor(int n = 0; n<1; n++){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tString path_time = \"//gml:timePosition\";\r\n\t\t\t\t\tNodeList nodes_path_time = (NodeList)xPath.compile(path_time).evaluate(doc, XPathConstants.NODESET);\t\t\t\t\r\n\t\t\t\t\tString path_SamplingFOIName = \"//sams:SF_SpatialSamplingFeature/gml:name\";\r\n\t\t\t\t\tNodeList nodes_path_SamplingFOIName = (NodeList)xPath.compile(path_SamplingFOIName).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t\tString path_procedure = \"//om:OM_Observation/om:procedure/@xlink:href\";\r\n\t\t\t\t\tNodeList nodes_procedure = (NodeList)xPath.compile(path_procedure).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\tGeoJson gjson = new GeoJson();\r\n\t\t\t\t\t\tgeoJson.list_geoJson.add(gjson);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tgjson.observationPhenomenonTime = nodes_path_time.item(0).getTextContent();\t\t\t\t\t\t\r\n\t\t\t\t\t\tgjson.samplingFOIName = nodes_path_SamplingFOIName.item(n).getTextContent();\t\t\t\t\t\t\r\n\t\t\t\t\t\tgjson.samplingFOIIdentifier = nodes_path_SamplingFOIIdentifier.item(n).getTextContent();\r\n\t\t\t\t\t\tgjson.procedure = nodes_procedure.item(n).getTextContent();\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tString coords = nodes_path_y_lat_x_long.item(n).getTextContent();\r\n\t\t\t\t\t\tString [] stray = coords.split(\" \");\r\n\t\t\t\t\t\tgjson.y_lat = Double.parseDouble(coords.split(\" \")[0]);\r\n\t\t\t\t\t\tgjson.x_long = Double.parseDouble(coords.split(\" \")[1]);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(stray.length==3){\r\n\t\t\t\t\t\t\tgjson.z_alt = Double.parseDouble(coords.split(\" \")[2]); \r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}catch(Exception ex){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlogger.error(\"some error\", ex);\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\t\r\n\t\t\t\tGeoJson gj = geoJson.list_geoJson.get(0);\r\n\t\t\t\tfor (Field field : gj.getClass().getDeclaredFields()) {\r\n\t\t\t\t\tlogger.debug(field.getName()+ \": \"+field.get(gj));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\r\n\t\t//xml_final = TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2);\r\n\t\treturn geoJson.list_geoJson.get(0);\r\n\t}", "FTCommand getFeature();", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return GPSSetupImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { GPSSetupImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return GPSSetupImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();", "java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();", "public FeatureStream getFeatureStream() {\n\treturn stream;\n }", "@Override\n protected SimpleFeature buildFeature() {\n synchronized(EDGE_FEATURE_BUILDER) {\n EDGE_FEATURE_BUILDER.add(getId());\n EDGE_FEATURE_BUILDER.add(displayName);\n EDGE_FEATURE_BUILDER.add(url);\n EDGE_FEATURE_BUILDER.add(selected);\n EDGE_FEATURE_BUILDER.add(lineString);\n return EDGE_FEATURE_BUILDER.buildFeature(null);\n }\n }", "java.util.List<iet.distributed.telemetry.Feature> \n getFeatureList();", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og) {\r\n\t\tSystem.out.println(\"ParserXmlJson.extractBoundingBoxFromWfsXml: \"+ xml_og);\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon.equals(args)){\r\n\t\t\t \treturn LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t \tString pathToObjectid = \"//geofence_sbg:objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO: \"+nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO objectid: \"+nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return IntersectionImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { IntersectionImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "Feature createFeature();", "com.google.protobuf.Struct getCustomFeatures();", "public FeatureExtraction() {\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "@Override\n\tpublic String getFeatureCode() {\n\t\treturn featureCode;\n\t}", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return SurfaceImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { SurfaceImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return SurfaceImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "public org.pentaho.pms.cwm.pentaho.meta.expressions.CwmFeatureNode getFeatureNode();", "public String feature() {\n return feature;\n }", "public java.util.List getFeature() \n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\n \t\tList list = instance.getFeature(this.refMofId());\n \t\tlist.addAll(super_getFeature());\n \t\t\n \t\treturn list; \t\t\n \t}\n \n \treturn super_getFeature();\n }", "org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();", "org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();", "public Features() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "private void filterFeatureswithtext() throws Exception {\n\t\ttry {\r\n\t\t\t//source = dataStore.getFeatureSource(typeName);\r\n\t\t\tString sql = text.getText();\r\n\t\t\tString filtertype = \"include\";\r\n\t\t\tString[] cql = sql.split(\":\");\r\n\t\t\tHints h = new Hints();\r\n \t\t\th.put(Hints.FILTER_FACTORY, ISOFilterFactoryImpl.class);\r\n \t\t\tFilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(h);\r\n \t\t\tWKTReader wktr = new WKTReader(DefaultGeographicCRS.WGS84_3D);\r\n \t\t\tFilter filter = CQL.toFilter(\"include\");\r\n \t\t\tlong start = System.currentTimeMillis();\r\n \t\t\tList<SimpleFeature> sfs = new ArrayList<SimpleFeature>();\r\n \t\t\tSimpleFeatureIterator iterator = currentfeatures.features();\r\n \t\t\t\r\n \t\t\tif(cql.length > 1 && cql[2].startsWith(\"BBOX3D\")) {\r\n \t\t\t cql[2] = cql[2].replaceAll(\"BBOX3D\", \"\");\r\n \t\t\t cql[2] = cql[2].replaceAll(\"\\\\(\", \"\");\r\n \t\t\t cql[2] = cql[2].replaceAll(\"\\\\)\", \"\");\r\n \t\t\t \r\n \t\t\t String[] coords = cql[2].split(\",\");\r\n \t\t\t \r\n \t\t\t String[] lowerStr = coords[0].trim().split(\" \");\r\n \t\t\t String[] upperStr = coords[1].trim().split(\" \");\r\n \t\t\t \r\n \t\t\t double[] lower = new double[3];\r\n \t\t\t double[] upper = new double[3];\r\n \t\t\t \r\n \t\t\t lower[0] = Double.parseDouble(lowerStr[0]);\r\n lower[1] = Double.parseDouble(lowerStr[1]);\r\n lower[2] = Double.parseDouble(lowerStr[2]);\r\n \r\n upper[0] = Double.parseDouble(upperStr[0]);\r\n upper[1] = Double.parseDouble(upperStr[1]);\r\n upper[2] = Double.parseDouble(upperStr[2]);\r\n \r\n DirectPosition lowerCorner = builder.createDirectPosition(lower);\r\n DirectPosition upperCorner = builder.createDirectPosition(upper);\r\n \r\n Solid s = makeFromEnvelope(builder, lowerCorner, upperCorner);\r\n cql[2] = s.toString();\r\n\r\n Document d = encode(s);\r\n //System.out.println(d);\r\n\r\n //System.out.println(cql[2]);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(cql[0].equalsIgnoreCase(\"contains\")) {\r\n \t\t\t\tfeatureid = \"\";\r\n \t\t\t\tfilter = ff.contains(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"contains \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"within\")) {\r\n \t\t\t\tfeatureid = \"\";\r\n \t\t\t\tfilter = ff.within(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"within \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"equals\")) {\r\n \t\t\t\tfilter = ff.equals(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"equals \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"intersects\")) {\r\n \t\t\t\tFilter getidfilter = ff.equals(cql[1], wktr.read(cql[2]));\r\n \t\t\t\t\r\n \t\t\t\twhile (iterator.hasNext()) {\r\n \t\t\t\t\tSimpleFeature feature = iterator.next();\r\n \t\t\t\t\t\r\n \t\t\t\t\tif(getidfilter.evaluate(feature)) {\r\n \t\t\t\t\t\tfeatureid = feature.getID();\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tfilter = ff.intersects(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"intersects \";\r\n \t\t\t}\r\n \t\t\t\r\n\t\t\t//SimpleFeatureCollection features = source.getFeatures(filter);\r\n \t\t\titerator = currentfeatures.features();\r\n\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\tSimpleFeature feature = iterator.next();\r\n\t\t\t\tSystem.out.print(featureid + \" : \" + feature.getID() + \" \");\r\n\t\t\t\tif(filter.evaluate(feature)) {\r\n\t\t\t\t\tsfs.add(feature);\r\n\t\t\t\t\tSystem.out.println(\"true\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tSystem.out.println(\"false\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(sfs.size() == 0) {\r\n\t\t\t\ttable.setModel(new DefaultTableModel(5, 5));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tSimpleFeatureCollection result = ISODataUtilities.collection(sfs);\r\n \t\t\t\r\n\t\t\tlong end = System.currentTimeMillis();\r\n\t\t\t//System.out.println( \"실행 시간 : \" + ( end - start )/1000.0 );\r\n\t\t\tlabel.setText(filtertype + \"complete : \" + ( end - start )/1000.0 + \" sec\");\r\n\t\t\tFeatureCollectionTableModel model = new FeatureCollectionTableModel(result);\r\n\t\t\ttable.setModel(model);\r\n\t\t\t\r\n\t\t} catch (CQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}", "List<Feature> getFeatures();", "public String getArbeitsbereichXmlTagFromWfs(String url){\r\n\t\tString arbeitsbereichXmlTag = \"\"; //z.B. focus\r\n\t\tString url2Wfs =url.toLowerCase();\r\n\t\ttry{\t\t\t\r\n\t\t\tString separator = \"typename\";\r\n\t\t\t//e.g. http://ispacevm22.researchstudio.at/geoserver/geofence_sbg/wfs?service=WFS&version=1.0.0&request=GetFeature&typename=geofence_sbg:geofence_sbg_151215_bbox\r\n\t\t//\tlogger.debug(\"url:\"+url);\r\n\t\t\tString [] stray = url2Wfs.split(separator);\r\n\t\t\tString typenamePlusRest = stray[1]; //e.g.=geofence_sbg:geofence_sbg_151215_bbox\r\n\t\t\tString [] stray2 = typenamePlusRest.substring(1).split(\":\");\r\n\t\t\tarbeitsbereichXmlTag = stray2[0];\r\n\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn arbeitsbereichXmlTag; \r\n\t}", "iet.distributed.telemetry.Feature getFeature(int index);", "int getFeatureValue();", "FeatureCall getFec();", "public Integer getFeature() {\n return feature;\n }", "@Override\n public String toString() {\n return mFeatureStructures.toString();\n }", "java.util.List<? extends iet.distributed.telemetry.FeatureOrBuilder> \n getFeatureOrBuilderList();", "private static List<IFeature> parseFeatures(WMElement features) {\n List<IFeature> trainingFeatures = new ArrayList<>();\n for (int i = 0; i < features.ConvertToIdentifier().GetNumberChildren(); i++) {\n IFeature res;\n WMElement curFeatureType = features.ConvertToIdentifier().GetChild(i);\n WMElement curFeature = curFeatureType.ConvertToIdentifier().GetChild(0);\n String featureName = curFeature.GetAttribute();\n String featureVal = curFeature.GetValueAsString();\n double featureValNumerical = -1.0;\n try {\n featureValNumerical = Double.parseDouble(featureVal);\n } catch (Exception e) {\n if (featureVal.equalsIgnoreCase(\"true\")) {\n featureValNumerical = 1.0;\n } else if (featureVal.equalsIgnoreCase(\"false\")) {\n featureValNumerical = 0.0;\n }\n }\n\n switch (curFeatureType.GetAttribute()) {\n case \"boolean\":\n res = new BooleanFeature(featureName, featureValNumerical);\n break;\n case \"numerical\":\n res = new NumericalFeature(featureName, featureValNumerical);\n break;\n case \"categorical\":\n res = new CategoricalFeature(featureName, featureVal);\n break;\n default:\n throw new IllegalArgumentException(\"Given feature type is not supported.\");\n }\n\n trainingFeatures.add(res);\n }\n return trainingFeatures;\n }", "public PointPolygon extractPointFromIO(String xml_og) {\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(\"swe\".equals(args)) {\r\n\t\t\t return \"http://www.opengis.net/swe/1.0.1\";\r\n\t\t\t }else if(\"env\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\";\r\n\t\t\t }else if(\"sos\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/sos/2.0\";\r\n\t\t\t }else if(\"ows\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/ows/1.1\";\r\n\t\t\t }else if(\"soap\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\"; \t\r\n\t\t\t }else if(\"om\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/om/2.0\";\r\n\t\t\t }else if(\"xlink\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/1999/xlink\";\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\";\r\n\t\t\t }else{\r\n\t\t\t return null;}\r\n\t\t\t }\r\n\t\t\t\t});\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n\t\t\t\t//String pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t\t\t\tString pathToCoordinates =\"//gml:Point/gml:pos\";\r\n\t\t\t\t//String pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\tArrayList<String> list_xy = new ArrayList<String>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO: \"+nodes_position.item(n).getTextContent());\t\t\r\n\t\t\t\t\tlist_xy.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\t\tpoint.y_latitude = Double.parseDouble(list_xy.get(0).split(\" \")[0]);\r\n\t\t\t\t\tpoint.x_longitude = Double.parseDouble(list_xy.get(0).split(\" \")[1]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tpoint.point2D.setLocation(point.x_longitude, point.y_latitude);\r\n\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\treturn point;\t\t\t\t\r\n\t}", "public PointPolygon extractPointFromIO(String xml_og) {\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(\"swe\".equals(args)) {\r\n\t\t\t return \"http://www.opengis.net/swe/1.0.1\";\r\n\t\t\t }else if(\"env\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\";\r\n\t\t\t }else if(\"sos\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/sos/2.0\";\r\n\t\t\t }else if(\"ows\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/ows/1.1\";\r\n\t\t\t }else if(\"soap\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\"; \t\r\n\t\t\t }else if(\"om\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/om/2.0\";\r\n\t\t\t }else if(\"xlink\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/1999/xlink\";\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\";\r\n\t\t\t }else{\r\n\t\t\t return null;}\r\n\t\t\t }\r\n\t\t\t\t});\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n\t\t\t\t//String pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t\t\t\t\r\n\t\t\t\t//String pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t \t\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi test!\");\r\n\t\t\t\t\r\n\t \tString pathToCoordinates =\"//gml:Point/gml:pos\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tArrayList<String> list_xy = new ArrayList<String>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\t\t\r\n\t\t\t\t\tlist_xy.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\r\n\t\t\t\ttry{\t\t\t\t\r\n\t\t\t\t\tpoint.y_latitude = Double.parseDouble(list_xy.get(0).split(\" \")[0]);\r\n\t\t\t\t\tpoint.x_longitude = Double.parseDouble(list_xy.get(0).split(\" \")[1]);\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tpoint.point2D.setLocation(point.y_latitude, point.x_longitude);\r\n\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\t\t\t\t\t\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\treturn point;\t\t\t\t\r\n\t}", "@Test\n public void testLayerQualified() throws Exception {\n Document dom = dom(get(\"cite/Forests/wms?service=WMS&request=getCapabilities&version=1.3.0\"), true);\n // print(dom);\n Element e = dom.getDocumentElement();\n Assert.assertEquals(\"WMS_Capabilities\", e.getLocalName());\n XpathEngine xpath = XMLUnit.newXpathEngine();\n Assert.assertEquals(0, xpath.getMatchingNodes(\"//wms:Layer/wms:Name[starts-with(., 'cite:Forests')]\", dom).getLength());\n Assert.assertEquals(1, xpath.getMatchingNodes(\"//wms:Layer/wms:Layer\", dom).getLength());\n NodeList nodes = xpath.getMatchingNodes(\"//wms:Layer//wms:OnlineResource\", dom);\n Assert.assertTrue(((nodes.getLength()) > 0));\n for (int i = 0; i < (nodes.getLength()); i++) {\n e = ((Element) (nodes.item(i)));\n String attribute = e.getAttribute(\"xlink:href\");\n Assert.assertTrue(attribute.contains(\"geoserver/cite/Forests/ows\"));\n }\n }", "public FeaturePath_impl(String featurePath) {\n this.featurePathString = featurePath;\n this.featurePathElementNames = new ArrayList<String>();\n this.featurePathElements = null;\n }", "public String getFeatureFlagString() {\n return featureFlagString;\n }", "private List<XmlElementNameAndContents> encodeFeatures(TOP fs, AttributesImpl attrs,\n boolean insideListNode) throws SAXException {\n List<XmlElementNameAndContents> childElements = new ArrayList<>();\n // int heapValue = cds.cas.getHeapValue(addr);\n // int[] feats = cds.tsi.ll_getAppropriateFeatures(heapValue);\n\n String attrValue;\n // boolean isSofa = false;\n // if (sofaTypeCode == heapValue)\n // {\n // // set isSofa flag to apply SofaID mapping and to store sofaNum->xmi:id mapping\n // isSofa = true;\n // }\n for (final FeatureImpl fi : fs._getTypeImpl().getFeatureImpls()) {\n\n if (cds.isFiltering) {\n // skip features that aren't in the target type system\n String fullFeatName = fi.getName();\n if (cds.filterTypeSystem_inner.getFeatureByFullName(fullFeatName) == null) {\n continue;\n }\n }\n\n final String featName = fi.getShortName();\n final int featureValueClass = fi.rangeTypeClass;\n\n switch (featureValueClass) {\n\n case LowLevelCAS.TYPE_CLASS_BYTE:\n case LowLevelCAS.TYPE_CLASS_SHORT:\n case LowLevelCAS.TYPE_CLASS_INT:\n case LowLevelCAS.TYPE_CLASS_LONG:\n case LowLevelCAS.TYPE_CLASS_FLOAT:\n case LowLevelCAS.TYPE_CLASS_DOUBLE:\n case LowLevelCAS.TYPE_CLASS_BOOLEAN:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n case LowLevelCAS.TYPE_CLASS_STRING:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n // Arrays\n case LowLevelCAS.TYPE_CLASS_INTARRAY:\n case LowLevelCAS.TYPE_CLASS_FLOATARRAY:\n case LowLevelCAS.TYPE_CLASS_BOOLEANARRAY:\n case LowLevelCAS.TYPE_CLASS_BYTEARRAY:\n case LowLevelCAS.TYPE_CLASS_SHORTARRAY:\n case LowLevelCAS.TYPE_CLASS_LONGARRAY:\n case LowLevelCAS.TYPE_CLASS_DOUBLEARRAY:\n case LowLevelCAS.TYPE_CLASS_FSARRAY:\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n attrValue = arrayToString(fs.getFeatureValue(fi), featureValueClass);\n }\n break;\n\n // special case for StringArrays, which stored values as child elements rather\n // than attributes.\n case LowLevelCAS.TYPE_CLASS_STRINGARRAY:\n StringArray stringArray = (StringArray) fs.getFeatureValue(fi);\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(stringArray);\n } else if (stringArray != null && stringArray.size() == 0) {\n attrValue = \"\"; // https://issues.apache.org/jira/browse/UIMA-5558\n } else {\n stringArrayToElementList(featName, (StringArray) fs.getFeatureValue(fi),\n childElements);\n attrValue = null;\n }\n break;\n\n // Lists\n case CasSerializerSupport.TYPE_CLASS_INTLIST:\n case CasSerializerSupport.TYPE_CLASS_FLOATLIST:\n case CasSerializerSupport.TYPE_CLASS_FSLIST:\n TOP startNode = fs.getFeatureValue(fi);\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n // If the feature has multipleReferencesAllowed = true OR if we're already\n // inside another list node (i.e. this is the \"tail\" feature), serialize as a normal\n // FS.\n // Otherwise, serialize as a multi-valued property.\n // if (cds.isStaticMultRef(feats[i]) ||\n // cds.embeddingNotAllowed.contains(featVal) ||\n // insideListNode) {\n\n attrValue = cds.getXmiId(startNode);\n } else {\n attrValue = listToString((CommonList) fs.getFeatureValue(fi));\n }\n break;\n\n // special case for StringLists, which stored values as child elements rather\n // than attributes.\n case CasSerializerSupport.TYPE_CLASS_STRINGLIST:\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n // it is not safe to use a space-separated attribute, which would\n // break for strings containing spaces. So use child elements instead.\n StringList stringList = (StringList) fs.getFeatureValue(fi);\n if (stringList == null) {\n attrValue = null;\n } else {\n if (stringList instanceof EmptyStringList) {\n attrValue = \"\";\n } else {\n List<String> listOfStrings = stringList.anyListToStringList(null, cds);\n // if (array.length > 0 && !arrayAndListFSs.put(featVal, featVal)) {\n // reportWarning(\"Warning: multiple references to a ListFS. Reference identity\n // will not be preserved.\");\n // }\n for (String string : listOfStrings) {\n childElements.add(new XmlElementNameAndContents(\n new XmlElementName(\"\", featName, featName), string));\n }\n attrValue = null;\n }\n }\n }\n break;\n\n default: // Anything that's not a primitive type, array, or list.\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n break;\n\n } // end of switch\n\n if (attrValue != null && featName != null) {\n addAttribute(attrs, featName, attrValue, \"\");\n }\n } // end of for loop over all features\n\n // add out-of-typesystem features, if any\n if (cds.sharedData != null) {\n OotsElementData oed = cds.sharedData.getOutOfTypeSystemFeatures(fs);\n if (oed != null) {\n // attributes\n Iterator<XmlAttribute> attrIter = oed.attributes.iterator();\n while (attrIter.hasNext()) {\n XmlAttribute attr = attrIter.next();\n addAttribute(workAttrs, attr.name, attr.value);\n }\n // child elements\n childElements.addAll(oed.childElements);\n }\n }\n return childElements;\n }", "public MdnFeatures()\n {\n }", "org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);", "public AbstractMFeature2 getFeature() {\n return feature;\n }", "private StringBuffer tableToGML(Table table, ParameterList pl,\r\n StringBuffer gml) throws Exception {\r\n Debug.debugMethodBegin( this, \"tableToGML\" );\r\n \r\n HashMap propNameCache = new HashMap();\r\n \r\n String tableName = table.getTableName();\r\n FeatureType ft = (FeatureType)pl.getParameter( WFSConstants.FEATURETYPE ).getValue();\r\n String[] columnNames = table.getColumnNames();\r\n\r\n TableDescription td = ft.getTableByName( tableName );\r\n // get id property name\r\n String idProp = td.getIdField();\r\n // create coordinate reference system for the tables (feature types)\r\n // geometries\r\n Parameter p = pl.getParameter( WFSConstants.CRS );\r\n String crs = (String)p.getValue();\r\n ConvenienceCSFactory fac = ConvenienceCSFactory.getInstance();\r\n\r\n CoordinateSystem cs_ = fac.getCSByName( crs );\r\n Adapters ada = Adapters.getDefault();\r\n CS_CoordinateSystem cs = ada.export( cs_ );\r\n \r\n for (int r = 0; r < table.getRowCount(); r++) {\r\n \r\n gml.append( \"<gml:featureMember>\" ); \r\n \r\n StringBuffer feat = new StringBuffer(10000);\r\n \r\n String id = \"ID\" + r;\r\n Object[] row = table.getRow( r );\r\n // transform the current row of the table to a GMLFeature\r\n for (int i = 0; i < row.length; i++) {\r\n // get feature id\r\n if ( columnNames[i].equalsIgnoreCase( idProp ) ) {\r\n id = row[i].toString(); \r\n try {\r\n double d = Double.parseDouble( id );\r\n id = \"ID\" + (int)d;\r\n } catch (Exception ee) {\r\n id = id.replace(' ','_');\r\n }\r\n }\r\n \r\n String pn = null;\r\n if ( columnNames[i].equals( \"COUNTCOUNT\" ) ) {\r\n pn = \"_COUNT_\";\r\n } else {\r\n String s = ft.getPropertyFromAlias( columnNames[i] );\r\n if ( s == null ) s = ft.getPropertyFromAlias( tableName + \".\" + columnNames[i] );\r\n if ( s == null ) s = tableName + \".\" + columnNames[i];\r\n pn = (String)propNameCache.get( s ); \r\n if ( pn == null ) {\r\n pn = formatPropertyName( s );\r\n propNameCache.put( s, pn );\r\n }\r\n }\r\n \r\n if ( !(row[i] instanceof ByteArrayOutputStream) ) {\r\n // create and add none-geometry properties to the feature\r\n if ( row[i] != null ) {\r\n if ( row[i] instanceof Table ) {\r\n if ( ((Table)row[i]).getRowCount() > -10 ) {\r\n // create complex property \r\n StringBuffer gml_ = new StringBuffer( \"<gml:Collection>\" );\r\n // recursive call of the method\r\n gml_ = tableToGML( (Table)row[i], pl, gml_ );\r\n gml_.append( \"</gml:Collection>\" );\r\n feat.append( \"<\" + pn + \">\" ).append( gml_.toString() );\r\n feat.append( \"</\" + pn + \">\" );\r\n }\r\n } else { \r\n feat.append( \"<\" + pn + \">\" ); \r\n if ( row[i] != null ) {\r\n String sr = row[i].toString().replace('\"', '\\'');\r\n feat.append( XMLTools.validateCDATA( sr ) );\r\n }\r\n feat.append( \"</\" + pn + \">\" );\r\n }\r\n } else {\r\n // create an empty property \r\n feat.append( \"<\" + pn + \"/>\" );\r\n }\r\n } else {\r\n // create and add geometry properties to the feature\r\n if ( row[i] != null ) {\r\n try {\r\n ByteArrayOutputStream bos = (ByteArrayOutputStream)row[i];\r\n GM_Object geo = createGeometry( bos, cs );\r\n String s_ = GMLAdapter.export( geo );\r\n feat.append( \"<\" + pn + \">\" ).append( s_ );\r\n feat.append( \"</\" + pn + \">\" );\r\n } catch(Exception e) {\r\n throw new Exception( \"couldn't create geo property \\n\" + e );\r\n }\r\n } else {\r\n // create an empty property\r\n feat.append( \"<\" + pn + \"/>\" );\r\n }\r\n }\r\n \r\n }\r\n gml.append( \"<\" + td.getTargetName() + \" fid=\\\"\" + id + \"\\\">\" );\r\n // add feature to the feature collection\r\n gml.append( feat );\r\n \r\n gml.append( \"</\" + td.getTargetName() + \">\" );\r\n gml.append( \"</gml:featureMember>\" ); \r\n }\r\n \r\n Debug.debugMethodEnd();\r\n return gml;\r\n }", "@Override\n\tpublic String getFeature(Message message) {\n\t\treturn null;\n\t}", "public FeatureTypeSchema_Impl() {\r\n schema = XMLTools.create();\r\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/featuregates\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<FeatureGateList, FeatureGate> listFeatureGate();", "List<IFeature> getFeatureList();", "FeatureConcept createFeatureConcept();", "com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder();", "public Class<? extends FormatFeature> getFormatReadFeatureType()\n/* */ {\n/* 415 */ return null;\n/* */ }", "@Override\n public String getFeature() {\n return this.exteriorFeature;\n }", "public void test11() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"SUBSYSTEM\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode><id:subsystemCode>client</id:subsystemCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:securityServer><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode><id:serverCode>server1</id:serverCode></xrd:securityServer><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(\"client\", response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.SUBSYSTEM, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"FI\", response.getSecurityServer().getXRoadInstance());\n assertEquals(\"GOV\", response.getSecurityServer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getSecurityServer().getMemberCode());\n assertEquals(\"server1\", response.getSecurityServer().getServerCode());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n }", "public MappedFeatureTypeReference( QualifiedName featureTypeName ) {\n this.featureTypeName = featureTypeName;\n }", "public void test6() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:serviceCode>allowedMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:allowedMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:allowedMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(null, response.getProducer().getSubsystemCode());\n assertEquals(\"allowedMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "@Test\n public void testFromXml() throws Exception\n {\n Element root = XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"kml\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Folder\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"folder description\"))),\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Document\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"document description\"))))\n .toDOM().getDocumentElement();\n\n KmlFile file = KmlFile.fromXml(root.getOwnerDocument());\n\n List<Feature<?>> features = file.getFeatures();\n\n assertEquals(\"number of features\", 2, features.size());\n assertEquals(\"first feature type\", Folder.class, features.get(0).getClass());\n assertEquals(\"first feature attribute\", \"folder description\", features.get(0).getDescription());\n assertEquals(\"second feature type\", Document.class, features.get(1).getClass());\n assertEquals(\"second feature attribute\", \"document description\", features.get(1).getDescription());\n }", "public final native GEFeatureContainer getFeatures() /*-{\r\n\t\treturn this.getFeatures();\r\n\t}-*/;", "public SimpleFeatureType getFeatureSchema() {\n final SimpleFeatureTypeBuilder simpleFeatureType = new SimpleFeatureTypeBuilder();\n simpleFeatureType.add(\"geom\", LineString.class, DefaultGeographicCRS.WGS84);\n simpleFeatureType.add(\"name\", String.class);\n simpleFeatureType.add(\"activityId\", Long.class);\n simpleFeatureType.setName(\"activity\");\n simpleFeatureType.add(\"name\", String.class);\n simpleFeatureType.add(\"sport\", String.class);\n simpleFeatureType.add(\"startTime\", String.class);\n simpleFeatureType.add(\"totalMeters\", Double.class);\n simpleFeatureType.add(\"totalSeconds\", Double.class);\n simpleFeatureType.add(\"minLat\", Double.class);\n simpleFeatureType.add(\"minLon\", Double.class);\n simpleFeatureType.add(\"maxLat\", Double.class);\n simpleFeatureType.add(\"maxLon\", Double.class);\n return simpleFeatureType.buildFeatureType();\n }", "com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature();", "public interface FeatureService {\n /**\n * 添加\n */\n public Integer addFeature(WebParam map);\n\n /**\n * 根据主键查找\n */\n public WebResultMap getFeatureByKey(WebParam map);\n\n /**\n * 根据主键批量查找\n */\n public List<WebResultMap> getFeaturesByKeys(WebParam map);\n\n /**\n * 根据主键删除\n */\n public Integer deleteByKey(WebParam map);\n\n /**\n * 根据主键批量删除\n */\n public Integer deleteByKeys(WebParam map);\n\n /**\n * 根据主键更新\n */\n public Integer updateFeatureByKey(WebParam map);\n\n /**\n * 分页查询\n */\n public Pagination getFeatureListWithPage(WebParam map);\n\n /**\n * 集合查询\n */\n public List<WebResultMap> getFeatureList(WebParam map);\n\n /**\n * 总条数\n */\n public int getFeatureListCount(WebParam map);\n}", "public com.flexnet.opsembedded.webservices.SimpleQueryType getFeatureName() {\n return featureName;\n }", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType xgetFeatureType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType)get_store().find_element_user(FEATURETYPE$4, 0);\n return target;\n }\n }", "public Iterator<SimpleFeature> getFeatures() {\n \treturn this.iterator();\n }", "public String asDublinCore(ApplicationConfiguration cfg, HttpClientRequest http) throws Exception {\n\n String url = this.getResourceUrl();\n\n String tmp;\n StringBuilder sb = new StringBuilder();\n sb.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n sb.append(\"\\r<rdf:RDF\");\n sb.append(\" xmlns:rdf=\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"\");\n sb.append(\" xmlns:dc=\\\"http://purl.org/dc/elements/1.1/\\\"\");\n sb.append(\" xmlns:dct=\\\"http://purl.org/dc/terms/\\\"\");\n sb.append(\" xmlns:dcmiBox=\\\"http://dublincore.org/documents/2000/07/11/dcmi-box/\\\"\");\n sb.append(\" xmlns:ows=\\\"http://www.opengis.net/ows\\\"\");\n sb.append(\">\");\n sb.append(\"\\r<rdf:Description\");\n\n if (url.length() > 0) {\n sb.append(\" rdf:about=\\\"\").append(Val.escapeXml(url)).append(\"\\\"\");\n }\n sb.append(\">\");\n\n // identifier\n if (url.length() > 0) {\n sb.append(\"\\r<dc:identifier>\").append(Val.escapeXml(url)).append(\"</dc:identifier>\");\n }\n\n // title, description\n tmp = Val.chkStr(this.getTitle());\n if (tmp.length() > 0) {\n sb.append(\"\\r<dc:title>\").append(Val.escapeXml(tmp)).append(\"</dc:title>\");\n }\n \n tmp = Val.chkStr(this.getDescription());\n if (tmp.length() > 0) {\n sb.append(\"\\r<dc:description>\").append(Val.escapeXml(tmp)).append(\"</dc:description>\");\n }\n\n if (url.length() > 0) {\n String scheme = \"urn:x-esri:specification:ServiceType:ArcGIS\";\n tmp = \"MapService\"; // parent type\n if (tmp.length() > 0) {\n scheme += \":\" + tmp;\n }\n tmp = \"Layer\"; // type\n if (tmp.length() > 0) {\n scheme += \":\" + tmp;\n }\n sb.append(\"\\r<dct:references\");\n sb.append(\" scheme=\\\"\").append(Val.escapeXml(scheme)).append(\"\\\">\");\n sb.append(Val.escapeXml(url)).append(\"</dct:references>\");\n }\n\n // envelope\n EnvelopeValidator validator = new EnvelopeValidator();\n double[] env = validator.validateEnvelope(cfg, http, this.getExtent());\n if (env != null) {\n String lower = env[0] + \" \" + env[1];\n String upper = env[2] + \" \" + env[3];\n sb.append(\"\\r<ows:WGS84BoundingBox>\");\n sb.append(\"\\r<ows:LowerCorner>\").append(Val.escapeXml(lower)).append(\"</ows:LowerCorner>\");\n sb.append(\"\\r<ows:UpperCorner>\").append(Val.escapeXml(upper)).append(\"</ows:UpperCorner>\");\n sb.append(\"\\r</ows:WGS84BoundingBox>\");\n }\n\n sb.append(\"\\r</rdf:Description>\");\n sb.append(\"\\r</rdf:RDF>\");\n\n return sb.toString();\n\n }", "java.util.List<org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature> getPlanFeatureList();", "public WebServiceFeature[] getFeatures() {\n\t\treturn null;\n\t}", "private MessageFeatureMap() {}", "private List<GeneralResultRow> getData(FeatureSource<?, ?> featureSource)\n\t\t\tthrows Exception {\n\t\tif (featureSource == null) {\n\t\t\tException mple = new Exception(\"featureSource is null\");\n\t\t\tmple.printStackTrace();\n\t\t\tthrow mple;\n\t\t}\n\t\tthis.crs=featureSource.getSchema()\n\t\t\t\t.getCoordinateReferenceSystem();\n\t\tString crs = org.geotools.gml2.bindings.GML2EncodingUtils\n\t\t\t\t.epsgCode(this.crs);\n\t\tif (crs == null) {\n\t\t\tcrs = \"\" + Config.EPSG_CODE + \"\";\n\t\t}else{\n\t\t\ttry {\n\t\t\t\tint code=CRS.lookupEpsgCode(featureSource.getSchema().getCoordinateReferenceSystem(), true);\n\t\t\t\t//System.out.println(\"the code is: \"+code);\n\t\t\t\tcrs = String.valueOf(code);\n\t\t\t} catch (FactoryException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tthis.crsstring=crs;\n\t\t\n\t\tFeatureCollection<?, ?> collection = featureSource.getFeatures();\n\t\tFeatureIterator<?> iterator = collection.features();\n\t\tList<GeneralResultRow> resultlist = new ArrayList<GeneralResultRow>();\n\t\ttry {\n\t\t\tdouble total_thematic_duration=0.0;\n\t\t\tdouble total_duration_geom=0.0;\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\n\t\t\t\tlong startTime = System.nanoTime();\n\t\t\t\tFeature feature = iterator.next();\n\t\t\t\tGeneralResultRow newrow = new GeneralResultRow(); // new row\n\t\t\t\tfor (Property p : feature.getProperties()) {\n\t\t\t\t\tnewrow.addPair(p.getName().getLocalPart(), p.getValue());\n\t\t\t\t}\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tdouble duration = (endTime - startTime) / 1000000; // divide by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1000000 to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// get\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// milliseconds.\n\t\t\t\ttotal_thematic_duration += duration;\n\t\t\t\tPrintTimeStats.printTime(\"Read Thematic from file\", duration);\n\t\t\t\t\n\t\t\t\tnewrow.addPair(primarykey, KeyGenerator.Generate()); // Add\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// primary\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// key\n\t\t\t\tstartTime = System.nanoTime();\n\t\t\t\tGeometryAttribute sourceGeometryAttribute = feature\n\t\t\t\t\t\t.getDefaultGeometryProperty();\n\t\t\t\tendTime = System.nanoTime();\n\t\t\t\tduration = (endTime - startTime) ; // divide by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1000000 to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// get\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// milliseconds.\n\t\t\t\ttotal_duration_geom+= duration;\n\t\t\t\tPrintTimeStats.printTime(\"Read Geometry from file\", duration);\n\t\t\t\t\n\n\t\t\t\t//RowHandler.handleGeometry(newrow, (Geometry)sourceGeometryAttribute.getValue(), crs);\n\t\t\t\tresultlist.add(newrow);\n\t\t\t}\n\t\t\tPrintTimeStats.printTime(\"Read Thematic data (total) from file\", total_thematic_duration);\n\t\t\tPrintTimeStats.printTime(\"Read Geometries (total) from file\", total_duration_geom);\n\t\t} finally {\n\t\t\titerator.close();\n\t\t}\n\n\t\treturn resultlist;\n\t}", "String getExternalFeatureModelURI();", "@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}", "public Object format(HashMap map, ParameterList paramList) throws Exception {\r\n Debug.debugMethodBegin( this, \"format\" );\r\n\r\n Parameter p = paramList.getParameter( WFSConstants.NAMESPACE );\r\n String s = \"\";\r\n if ( p != null ) s = (String)p.getValue();\r\n \r\n // create the basic StringBuffer\r\n StringBuffer gml = new StringBuffer(100000); \r\n gml.append( \"<?xml version=\\\"1.0\\\" encoding=\\\"iso-8859-1\\\"?>\" );\r\n gml.append( \"<gml:Collection xmlns:gml=\\\"http://www.opengis.net/gml\\\" \" + s + \">\");\r\n gml.append( \"<gml:boundedBy><gml:Box><gml:coord><gml:X>-9E99</gml:X>\" );\r\n gml.append( \"<gml:Y>-9E99</gml:Y></gml:coord><gml:coord><gml:X>9E99</gml:X>\" );\r\n gml.append( \"<gml:Y>9E99</gml:Y></gml:coord></gml:Box></gml:boundedBy>\" );\r\n \r\n // get iterator to iterate each feature collection contained within\r\n // the HashMap\r\n Iterator iterator = map.values().iterator();\r\n \r\n while ( iterator.hasNext() ) {\r\n \r\n ParameterList pl = (ParameterList)iterator.next();\r\n p = pl.getParameter( WFSConstants.TABLE );\r\n Table table = (Table)p.getValue();\r\n gml = tableToGML( table, pl, gml );\r\n \r\n }\r\n gml.append(\"</gml:Collection>\");\r\n\r\n Document doc = XMLTools.parse( new StringReader( gml.toString() ) );\r\n \r\n // create the feature collection that will contain all requested\r\n // features (table rows)\r\n GMLFeatureCollection fc = new GMLFeatureCollection_Impl( doc.getDocumentElement() ); \r\n fc.setBoundingBox( minx, miny, maxx, maxy );\r\n \r\n p = paramList.getParameter( WFSConstants.FILTER );\r\n if ( p != null ) {\r\n s = DOMPrinter.nodeToString( ((GMLFeatureCollection_Impl)fc).getAsElement(), \"\" );\r\n doc = xsltTransformGetFeature(s, (String)p.getValue() );\r\n fc = new GMLFeatureCollection_Impl( doc.getDocumentElement() );\r\n }\r\n \r\n Debug.debugMethodEnd();\r\n return fc;\r\n }", "public java.util.List<sparqles.avro.analytics.EPViewInteroperabilityData> getSPARQL11Features() {\n return SPARQL11Features;\n }", "List<String> getFeatures();", "public interface ElevatorSystemFloorsProperty extends ElevatorSystemProperty<ElevatorSystem>, ManyReferenceProperty<FloorProperty<Floor>, ElevatorSystem> {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\"\n\t * annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return org.tetrabox.example.xelevator.elevator.ElevatorPackage.Literals.ELEVATOR_SYSTEM__FLOORS;'\"\n\t * @generated\n\t */\n\tEStructuralFeature getFeature();\n\n}", "private void addFeature()\r\n {\r\n MapGeometrySupport mgs = myCurrentGeometryHandler.getGeometry();\r\n MetaDataProvider mdp = myMetaDataHandler.getMetaDataProvider();\r\n TimeSpan span = buildTimeSpan(mdp);\r\n mgs.setTimeSpan(span);\r\n MapDataElement element = new DefaultMapDataElement(myFeatureId, span, myType, mdp, mgs);\r\n Color typeColor = myType.getBasicVisualizationInfo().getTypeColor().equals(DEFAULT_FEATURE_COLOR) ? myFeatureColor\r\n : myType.getBasicVisualizationInfo().getTypeColor();\r\n element.getVisualizationState().setColor(typeColor);\r\n myConsumer.addFeature(element);\r\n myFeatureCount++;\r\n }", "public void test2() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "public void test5() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>allowedMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:allowedMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:allowedMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"allowedMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "public interface GeoData{\r\n /**\r\n * Most geodata sets contain features for which there is no data, or the data is missing.<br>\r\n * In these cases a specific value is often used to represent these special cases.<p>\r\n * The static final value MISSING is the default value used by GeoDatas to represent\r\n * these cases.\r\n * @see #setMissingValueCode\r\n * @see #getMissingValueCode\r\n */\r\n public static final double MISSING = Double.NaN;\r\n\r\n\t\t/** \r\n\t\t * All geodata have a type - this is particularly important when\r\n\t\t * interfacing with other data sources/formats.\r\n\t\t * @see #setDataType\r\n\t\t * @see #getDataType\r\n\t\t */\r\n\t\tpublic static final int CHARACTER = 0;\r\n\t\tpublic static final int INTEGER = 1;\r\n\t\tpublic static final int FLOATING = 2;\r\n \r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n * @author James Macgill JM\r\n * @return String The name associated with this GeoData.\r\n */\r\n String getName();\r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param name_ The name to be associated with this GeoData.\r\n */\r\n void setName(String name_);\r\n \r\n \r\n /**\r\n * looks up and matches a value to the specifed feature id.<br>\r\n * Used for example by shaders to obtain vaules for thematic mapping.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature id to retreve a value for.\r\n * @return double The value for the specified id, if no id matches the one given then the value specifed by setMissingValue should be returned.\r\n * @see #setMissingValue\r\n */\r\n double getValue(int id);\r\n \r\n /**\r\n * Looks up and retreves a string for the specifed feature id.<br>\r\n * Used for example by the ToolTip feature in Themes to provide tool tip text for each feature.\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature to retreve the text for.\r\n * @return String A piece of text for the chosen feature id. If no id matches then an empty string should be returned \" \"\r\n */\r\n String getText(int id);\r\n \r\n /**\r\n * In order to allow systems to iterate through all of the data contained within the GeoData object this\r\n * method provides a list of all of the IDs which have associated values stored.\r\n *\r\n * @author James Macgill JM\r\n * @return Enumeration An enumeration of all of the IDs which can then be iterated through.\r\n */\r\n Enumeration getIds();\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * By default that value is set to MISSING, however this behavoir can be changed by calling this method with a new value.<br>\r\n * \r\n * @see #getMissingValueCode\r\n * @author James Macgill JM\r\n * @param mv A double containing the new value to represent missing data.\r\n */\r\n public void setMissingValueCode(double mv);\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * A call to this method will return the current code in use to represent that situation.<br>\r\n *\r\n * @see #setMissingValueCode\r\n * @author James Macgill JM\r\n * @return double The current value representing missing data.\r\n */ \r\n public double getMissingValueCode();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The largest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMax();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The smallest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMin();\r\n \r\n /**\r\n * The total number of stored id/value pairs stored in this GeoData.\r\n * @author James Macgill JM\r\n * @return int The number of values stored in this GeoData.\r\n */\r\n int getSize();\r\n \r\n /**\r\n * The total number of stored values stored in this GeoData which equal the missing value code.\r\n * @author James Macgill JM\r\n * @return int The number of missing values stored in this GeoData.\r\n */\r\n int getMissingCount();\r\n\r\n\t\t/** \r\n\t\t * Gets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.CHARACTER</li> \r\n\t\t * <li>Integer - GeoData.INTEGER</li>\r\n\t\t * <li>Double - GeoData.FLOATING</li></ul>\r\n\t\t */\r\n\t\t int getDataType();\r\n\t\t/** \r\n\t\t * Sets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.character</li> \r\n\t\t * <li>Integer - GeoData.integer</li>\r\n\t\t * <li>Double - GeoData.float</li></ul>\r\n\t\t */\r\n\t\t void setDataType(int type );\r\n}", "public boolean getFeature(String featureId)\n throws SAXNotRecognizedException, SAXNotSupportedException\n {\n if ((FEATURE + \"validation\").equals(featureId))\n {\n return false;\n }\n \n // external entities (both types) are optionally included\n if ((FEATURE + \"external-general-entities\").equals(featureId))\n {\n return extGE;\n }\n if ((FEATURE + \"external-parameter-entities\").equals(featureId))\n {\n return extPE;\n }\n \n // element/attribute names are as written in document; no mangling\n if ((FEATURE + \"namespace-prefixes\").equals(featureId))\n {\n return xmlNames;\n }\n \n // report element/attribute namespaces?\n if ((FEATURE + \"namespaces\").equals(featureId))\n {\n return namespaces;\n }\n \n // all PEs and GEs are reported\n if ((FEATURE + \"lexical-handler/parameter-entities\").equals(featureId))\n {\n return true;\n }\n \n // default is true\n if ((FEATURE + \"string-interning\").equals(featureId))\n {\n return stringInterning;\n }\n \n // EXTENSIONS 1.1\n \n // always returns isSpecified info\n if ((FEATURE + \"use-attributes2\").equals(featureId))\n {\n return true;\n }\n \n // meaningful between startDocument/endDocument\n if ((FEATURE + \"is-standalone\").equals(featureId))\n {\n if (parser == null)\n {\n throw new SAXNotSupportedException(featureId);\n }\n return parser.isStandalone();\n }\n \n // optionally don't absolutize URIs in declarations\n if ((FEATURE + \"resolve-dtd-uris\").equals(featureId))\n {\n return resolveAll;\n }\n \n // optionally use resolver2 interface methods, if possible\n if ((FEATURE + \"use-entity-resolver2\").equals(featureId))\n {\n return useResolver2;\n }\n \n throw new SAXNotRecognizedException(featureId);\n }", "public interface Facility extends WrappedIndividual {\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#hasCFD\n */\n \n /**\n * Gets all property values for the hasCFD property.<p>\n * \n * @returns a collection of values for the hasCFD property.\n */\n Collection<? extends CFD> getHasCFD();\n\n /**\n * Checks if the class has a hasCFD property value.<p>\n * \n * @return true if there is a hasCFD property value.\n */\n boolean hasHasCFD();\n\n /**\n * Adds a hasCFD property value.<p>\n * \n * @param newHasCFD the hasCFD property value to be added\n */\n void addHasCFD(CFD newHasCFD);\n\n /**\n * Removes a hasCFD property value.<p>\n * \n * @param oldHasCFD the hasCFD property value to be removed.\n */\n void removeHasCFD(CFD oldHasCFD);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#hasEnergyCF\n */\n \n /**\n * Gets all property values for the hasEnergyCF property.<p>\n * \n * @returns a collection of values for the hasEnergyCF property.\n */\n Collection<? extends EnergyCF> getHasEnergyCF();\n\n /**\n * Checks if the class has a hasEnergyCF property value.<p>\n * \n * @return true if there is a hasEnergyCF property value.\n */\n boolean hasHasEnergyCF();\n\n /**\n * Adds a hasEnergyCF property value.<p>\n * \n * @param newHasEnergyCF the hasEnergyCF property value to be added\n */\n void addHasEnergyCF(EnergyCF newHasEnergyCF);\n\n /**\n * Removes a hasEnergyCF property value.<p>\n * \n * @param oldHasEnergyCF the hasEnergyCF property value to be removed.\n */\n void removeHasEnergyCF(EnergyCF oldHasEnergyCF);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#host\n */\n \n /**\n * Gets all property values for the host property.<p>\n * \n * @returns a collection of values for the host property.\n */\n Collection<? extends Service> getHost();\n\n /**\n * Checks if the class has a host property value.<p>\n * \n * @return true if there is a host property value.\n */\n boolean hasHost();\n\n /**\n * Adds a host property value.<p>\n * \n * @param newHost the host property value to be added\n */\n void addHost(Service newHost);\n\n /**\n * Removes a host property value.<p>\n * \n * @param oldHost the host property value to be removed.\n */\n void removeHost(Service oldHost);\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}", "public void test3() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(null, response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "java.util.List<java.lang.String> getFeaturesList();", "public static String createGML2(final BoundingBoxE6 pBoundingBoxE6){\r\n\t\tAssert.assertNotNull(pBoundingBoxE6);\r\n\r\n\t\tfinal StringBuilder sb = new StringBuilder();\r\n\t\tfinal Formatter f = new Formatter(sb, Locale.ENGLISH);\r\n\r\n\t\tsb.append(WFS_GETFEATURE_TAG_GML2_OPEN);\r\n\t\tf.format(WFS_QUERY_TAG_OPEN, \"traffic:t_traffic_view\"); // @HOME SERVER traffic:messages | @UNI traffic:t_traffic_view\r\n\t\tf.format(WFS_PROPERTY_TAG, \"traffic:severity\");\r\n\t\tf.format(WFS_PROPERTY_TAG, \"traffic:description\");\r\n\t\tf.format(WFS_PROPERTY_TAG, \"traffic:the_geom\");\r\n\r\n\t\tsb.append(OGC_FILTER_TAG_OPEN)\r\n\t\t.append(OGC_BBOX_TAG_OPEN);\r\n\r\n\t\tf.format(OGC_PROPERTY_TAG, \"the_geom\");\r\n\r\n\t\t/* The BoundingBox... */\r\n\t\tsb.append(GML_BOX_TAG_OPEN);\r\n\r\n\t\tf.format(GML_COORDINATES_TAG,\r\n\t\t\t\tpBoundingBoxE6.getLonEast(),\r\n\t\t\t\tpBoundingBoxE6.getLatSouth(),\r\n\t\t\t\tpBoundingBoxE6.getLonWest(),\r\n\t\t\t\tpBoundingBoxE6.getLatNorth());\r\n\r\n\t\tsb.append(GML_BOX_TAG_CLOSE)\r\n\t\t.append(OGC_BBOX_TAG_CLOSE)\r\n\t\t.append(OGC_FILTER_TAG_CLOSE)\r\n\t\t.append(WFS_QUERY_TAG_CLOSE)\r\n\t\t.append(WFS_GETFEATURE_TAG_CLOSE);\r\n\r\n\t\treturn sb.toString();\r\n\t}", "void drawMyPoint(double x, double y, MapContent map, String nombre) { \n// SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n// builder.setName(\"MyFeatureType\");\n// builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs \n// builder.add(\"location\", Point.class); // add geometry\n//\n// // build the type\n// SimpleFeatureType TYPE = builder.buildFeatureType();\n//\n// // create features using the type defined\n// SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(TYPE);\n// org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n// org.locationtech.jts.geom.Point point = geometryFactory.createPoint(new Coordinate(x, y));\n// //\n// \n// //\n// featureBuilder.add(point);\n// SimpleFeature feature = featureBuilder.buildFeature(\"FeaturePoint\");\n// DefaultFeatureCollection featureCollection = new DefaultFeatureCollection(\"internal\", TYPE);\n// featureCollection.add(feature); // Add feature 1, 2, 3, etc\n//\n// Style style = SLD.createPointStyle(\"Star\", Color.BLUE, Color.BLUE, 0.3f, 200);\n// Layer layer = new FeatureLayer(featureCollection, style);\n// layer.setTitle(\"NewPointLayer\");\n// map.addLayer(layer);\n// //mapFrame.getMapPane().repaint();// MapPane.repaint();\n//}\n\tSimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n builder.setName(\"MyFeatureType\"); // \n builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs // Definimos las caracteristicas de tipo del punto q vamos a crear\n builder.add(\"location\", Point.class); // add geometry //\n org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(); //objeto q usaremos para crear el punto\n Coordinate coord = new Coordinate( x,y ); //creamos la coordenada con los puntos pasados como parametros\n org.locationtech.jts.geom.Point point = geometryFactory.createPoint(coord); // Creamos el punto geometrico\n\nSimpleFeatureType pointtype = null; //definimos el typo de punto que necesitamos apra agregarlo a la capa del mapa\n try {\n pointtype = DataUtilities.createType(\"POINT\", \"geom:Point,name:String\");\n } catch (SchemaException ex) {\n Logger.getLogger(SelectionLab.class.getName()).log(Level.SEVERE, null, ex);\n }\nSimpleFeatureBuilder featureBuilderPoints = new SimpleFeatureBuilder(pointtype); //creamos el constructor de lo que agregaremos\nDefaultFeatureCollection collectionPoints = new DefaultFeatureCollection(\"internal\", pointtype); //creamos el contenedor donde pondremos lo que agregaremos\n//PointString Point=builder.createPointString(Point);\n//LineString Point = builder.createLineString(Point);\nfeatureBuilderPoints.add(point); //agregamos el punto en el constructor\nSimpleFeature featureLine = featureBuilderPoints.buildFeature(null); \n((DefaultFeatureCollection)collectionPoints).add(featureLine); \nStyle PointStyle = SLD.createPointStyle(\"circle\", Color.RED, Color.RED,(float) 0.5,(float) 10); //definimos el estilo del punto (icono, color contorno, color, opacidad y tamaño)\n//Obserervacion: el dibujo del punto siempre se mantiene del mismo tamaño por mas que se use el zoom\nmap.addLayer(new FeatureLayer(collectionPoints, PointStyle)); //agregamos el punto a la capa\n\nguardarCoordenadas(nombre,x,y);\n}", "@Override\n public FeatureContainer getFeatureContainer() {\n return featureContainer;\n }", "public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}", "FeatureId getFeatureId();", "public EStructuralFeature getFeatureByXMLElementName(String namespace, String xmlElementName) {\n \t\t\t// try to find the EStructural feature locally\n \t\t\t// TODO: consider namespace\n \t\t\tEStructuralFeature result = xmlNameToEStructuralFeatureMap.get(xmlElementName);\n \t\t\tif (null == result) {\n \t\t\t\tIterator<EStructuralFeature> allFeaturesIter = eClass.getEAllStructuralFeatures().iterator();\n \t\t\t\tList<EStructuralFeature> results = new ArrayList<EStructuralFeature>();\n \t\t\t\twhile (allFeaturesIter.hasNext()) {\n \t\t\t\t\tEStructuralFeature feature = allFeaturesIter.next();\n \t\t\t\t\tString xmlWrapperName = getRMFExtendedMetaData(feature).getXMLWrapperName();\n \n \t\t\t\t\t// search by feature wrapper\n \t\t\t\t\tif (xmlWrapperName.equals(xmlElementName)) {\n \t\t\t\t\t\tif (isIdentifiedByFeatureWrapper(feature)) {\n \t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t}\n \t\t\t\t\t} else {\n \t\t\t\t\t\t// search by feature name\n \t\t\t\t\t\tString xmlName = getRMFExtendedMetaData(feature).getXMLName();\n \t\t\t\t\t\tif (xmlName.equals(xmlElementName)) {\n \t\t\t\t\t\t\tif (isIdentifiedByFeature(feature)) {\n \t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// search by type wrapper (assuming type is type of feature)\n \t\t\t\t\t\t\tString classifierWrapperXMLName = getRMFExtendedMetaData(feature.getEType()).getXMLWrapperName();\n \t\t\t\t\t\t\tif (classifierWrapperXMLName.equals(xmlElementName)) {\n \t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// search by type wrapper name (assuming type not type of feature)\n \t\t\t\t\t\t\t\tEClassifier classifier = getTypeByXMLWrapperName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\tEClass eClass = (EClass) classifier;\n \t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// search by type name (assuming type not type of feature)\n \t\t\t\t\t\t\t\t\tclassifier = getTypeByXMLName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} // if (null != classifier && classifier instanceof EClass)\n \t\t\t\t\t\t\t} // if (classifierXMLName.equals(xmlElementName))\n \t\t\t\t\t\t} // if (xmlName.equals(xmlElementName))\n \t\t\t\t\t} // if (xmlWrapperName.equals(xmlElementName))\n \t\t\t\t} // while\n \n \t\t\t\t// if there are multiple valid features, we prefer the feature that is many and is not NONE\n \t\t\t\tint size = results.size();\n \t\t\t\tif (1 == size) {\n \t\t\t\t\tresult = results.get(0);\n \t\t\t\t} else if (0 < size) {\n \t\t\t\t\t// rule 1 we like the features that are explicitly selected\n \t\t\t\t\tList<EStructuralFeature> identifiedFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tList<EStructuralFeature> noneFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tfor (int i = 0; i < size; i++) {\n \t\t\t\t\t\tEStructuralFeature feature = results.get(i);\n \t\t\t\t\t\tif (isNone(feature)) {\n \t\t\t\t\t\t\tnoneFeatures.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tidentifiedFeatures.add(feature);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (identifiedFeatures.isEmpty()) {\n \t\t\t\t\t\t// there are none Features only\n \t\t\t\t\t\tresults = noneFeatures;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tresults = identifiedFeatures;\n \t\t\t\t\t}\n \n \t\t\t\t\tresult = results.get(0);\n \n \t\t\t\t\t// try to find a better features that is many\n \t\t\t\t\tfor (EStructuralFeature feature : results) {\n \t\t\t\t\t\tif (feature.isMany()) {\n \t\t\t\t\t\t\tresult = feature;\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}\n\t\t\t}\n \n \t\t\t// TODO: fall back to standard serialization?\n \n \t\t\treturn result;\n \t\t}", "FeatureProvider getFeatureProvider() {\n return this.provider;\n }", "@Override\r\n\t\tpublic Object getFeature(String feature, String version)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Test\n public void getFeatureFlagTest() throws ApiException {\n String projectKey = null;\n String featureFlagKey = null;\n String env = null;\n FeatureFlag response = api.getFeatureFlag(projectKey, featureFlagKey, env);\n\n // TODO: test validations\n }" ]
[ "0.667659", "0.62489855", "0.62489855", "0.599318", "0.599318", "0.5965465", "0.59203273", "0.5901488", "0.58508784", "0.5835227", "0.57998186", "0.579332", "0.5791677", "0.5791677", "0.57746375", "0.5768353", "0.57668847", "0.5729685", "0.5696767", "0.56633717", "0.560395", "0.5592131", "0.5578239", "0.5578239", "0.55632573", "0.5560178", "0.555236", "0.55155385", "0.5493893", "0.5442234", "0.5442234", "0.54203635", "0.53807837", "0.5379199", "0.53670615", "0.53598344", "0.53582615", "0.5358177", "0.5351677", "0.5341511", "0.5301632", "0.5296927", "0.5277821", "0.5277821", "0.5273661", "0.5273342", "0.52720934", "0.5271327", "0.5261429", "0.5259188", "0.5259188", "0.5257988", "0.5230996", "0.5230483", "0.5230176", "0.52301735", "0.5218352", "0.521577", "0.52124166", "0.5206398", "0.5189523", "0.51878446", "0.51682836", "0.5164017", "0.5160286", "0.51549226", "0.5153245", "0.51510835", "0.5142653", "0.5139864", "0.51395667", "0.5134649", "0.5125817", "0.51250136", "0.5121301", "0.51188034", "0.5116657", "0.51122576", "0.51120627", "0.5110048", "0.51027125", "0.5097066", "0.5081925", "0.5076649", "0.5075488", "0.50695837", "0.5056046", "0.5054836", "0.5051697", "0.50500876", "0.5046847", "0.5038213", "0.5027285", "0.5024262", "0.5018527", "0.501596", "0.501008", "0.5007555", "0.50010526", "0.4999412" ]
0.5134167
72
&lt;wfs:GetFeature service=&quot;WFS&quot; version=&quot;1.0.0&quot; outputFormat=&quot;GML2&quot; xmlns:topp=&quot; xmlns:wfs=&quot; xmlns:ogc=&quot; xmlns:gml=&quot; xmlns:xsi=&quot; xsi:schemaLocation=&quot; &lt;wfs:Query typeName=&quot;traffic:messages&quot;&gt; &lt;wfs:PropertyName&gt;traffic:id&lt;/wfs:PropertyName&gt; &lt;wfs:PropertyName&gt;traffic:description&lt;/wfs:PropertyName&gt; &lt;wfs:PropertyName&gt;traffic:severity&lt;/wfs:PropertyName&gt; &lt;wfs:PropertyName&gt;traffic:the_geom&lt;/wfs:PropertyName&gt; &lt;ogc:Filter&gt; &lt;ogc:BBOX&gt; &lt;ogc:PropertyName&gt;the_geom&lt;/ogc:PropertyName&gt; &lt;gml:Box srsName=&quot; &lt;gml:coordinates&gt;0.0,51.0 1.0,52.0&lt;/gml:coordinates&gt; &lt;/gml:Box&gt; &lt;/ogc:BBOX&gt; &lt;/ogc:Filter&gt; &lt;/wfs:Query&gt; &lt;/wfs:GetFeature&gt;
public static String createGML2(final BoundingBoxE6 pBoundingBoxE6){ Assert.assertNotNull(pBoundingBoxE6); final StringBuilder sb = new StringBuilder(); final Formatter f = new Formatter(sb, Locale.ENGLISH); sb.append(WFS_GETFEATURE_TAG_GML2_OPEN); f.format(WFS_QUERY_TAG_OPEN, "traffic:t_traffic_view"); // @HOME SERVER traffic:messages | @UNI traffic:t_traffic_view f.format(WFS_PROPERTY_TAG, "traffic:severity"); f.format(WFS_PROPERTY_TAG, "traffic:description"); f.format(WFS_PROPERTY_TAG, "traffic:the_geom"); sb.append(OGC_FILTER_TAG_OPEN) .append(OGC_BBOX_TAG_OPEN); f.format(OGC_PROPERTY_TAG, "the_geom"); /* The BoundingBox... */ sb.append(GML_BOX_TAG_OPEN); f.format(GML_COORDINATES_TAG, pBoundingBoxE6.getLonEast(), pBoundingBoxE6.getLatSouth(), pBoundingBoxE6.getLonWest(), pBoundingBoxE6.getLatNorth()); sb.append(GML_BOX_TAG_CLOSE) .append(OGC_BBOX_TAG_CLOSE) .append(OGC_FILTER_TAG_CLOSE) .append(WFS_QUERY_TAG_CLOSE) .append(WFS_GETFEATURE_TAG_CLOSE); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getArbeitsbereichXmlTagFromWfs(String url){\r\n\t\tString arbeitsbereichXmlTag = \"\"; //z.B. focus\r\n\t\tString url2Wfs =url.toLowerCase();\r\n\t\ttry{\t\t\t\r\n\t\t\tString separator = \"typename\";\r\n\t\t\t//e.g. http://ispacevm22.researchstudio.at/geoserver/geofence_sbg/wfs?service=WFS&version=1.0.0&request=GetFeature&typename=geofence_sbg:geofence_sbg_151215_bbox\r\n\t\t//\tlogger.debug(\"url:\"+url);\r\n\t\t\tString [] stray = url2Wfs.split(separator);\r\n\t\t\tString typenamePlusRest = stray[1]; //e.g.=geofence_sbg:geofence_sbg_151215_bbox\r\n\t\t\tString [] stray2 = typenamePlusRest.substring(1).split(\":\");\r\n\t\t\tarbeitsbereichXmlTag = stray2[0];\r\n\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn arbeitsbereichXmlTag; \r\n\t}", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og, String url_geofenceWfs, String serviceIdentifier) {\r\n\t\t\r\n\t\t//logger.debug(xml_og);\r\n\t\tnameSpaceUri = getArbeitsbereichXmlTagFromWfs(url_geofenceWfs); //z.B. focus\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(nameSpaceUri.equals(args)){\r\n\t\t\t \treturn nameSpaceUri;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\r\n\t \tString pathToObjectid = \"//\"+nameSpaceUri +\":objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi test!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t//\tlogger.debug(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(serviceIdentifier.equals(\"within\")){\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBoxWithin.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og) {\r\n\t\tSystem.out.println(\"ParserXmlJson.extractBoundingBoxFromWfsXml: \"+ xml_og);\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon.equals(args)){\r\n\t\t\t \treturn LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t \tString pathToObjectid = \"//geofence_sbg:objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO: \"+nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO objectid: \"+nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "public GeoJson extractDataForGeoJsonFromIo(String xml_og){\r\n\t\t\r\n\t\tGeoJson geoJson = new GeoJson();\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\tDocument doc = null;\r\n\t\tString xml_final;\r\n\t\t\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(\"swe\".equals(args)) {\r\n\t\t\t return \"http://www.opengis.net/swe/1.0.1\";\r\n\t\t\t }else if(\"env\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\";\r\n\t\t\t }else if(\"sos\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/sos/2.0\";\r\n\t\t\t }else if(\"ows\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/ows/1.1\";\r\n\t\t\t }else if(\"soap\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\"; \t\r\n\t\t\t }else if(\"om\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/om/2.0\";\r\n\t\t\t }else if(\"xlink\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/1999/xlink\";\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\";\r\n\t\t\t }else if(\"sams\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/samplingSpatial/2.0\";\r\n\t\t\t }else{\r\n\t\t\t return null;}\r\n\t\t\t }\r\n\t\t\t\t});\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n\t\t\t\t//String path_loading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t \t\r\n\t \t//The path to the time is only for the first observation block valid; other blocks have another path\r\n\t \t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t \t\r\n\t \t\r\n\t\t\t\t\r\n\t\t\t\tString path_SamplingFOIIdentifier = \"//sams:SF_SpatialSamplingFeature/gml:identifier\";\r\n\t\t\t\tNodeList nodes_path_SamplingFOIIdentifier = (NodeList)xPath.compile(path_SamplingFOIIdentifier).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t\r\n\t\t\t\tString path_y_lat_x_long = \"//gml:pos\";\r\n\t\t\t\tNodeList nodes_path_y_lat_x_long = (NodeList)xPath.compile(path_y_lat_x_long).evaluate(doc, XPathConstants.NODESET);\t\t\t\t\t\t\r\n\t \t\r\n\t\t\t\t\r\n\t\t\t\tString messwert = \"\";\t\r\n\t\t\t\t\r\n\t\t\t\t//for(int n = 0; n<nodes_procedure.getLength(); n++){\r\n\t\t\t\t//we need the data from only the first observation block\r\n\t\t\t\tfor(int n = 0; n<1; n++){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tString path_time = \"//gml:timePosition\";\r\n\t\t\t\t\tNodeList nodes_path_time = (NodeList)xPath.compile(path_time).evaluate(doc, XPathConstants.NODESET);\t\t\t\t\r\n\t\t\t\t\tString path_SamplingFOIName = \"//sams:SF_SpatialSamplingFeature/gml:name\";\r\n\t\t\t\t\tNodeList nodes_path_SamplingFOIName = (NodeList)xPath.compile(path_SamplingFOIName).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t\tString path_procedure = \"//om:OM_Observation/om:procedure/@xlink:href\";\r\n\t\t\t\t\tNodeList nodes_procedure = (NodeList)xPath.compile(path_procedure).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\tGeoJson gjson = new GeoJson();\r\n\t\t\t\t\t\tgeoJson.list_geoJson.add(gjson);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tgjson.observationPhenomenonTime = nodes_path_time.item(0).getTextContent();\t\t\t\t\t\t\r\n\t\t\t\t\t\tgjson.samplingFOIName = nodes_path_SamplingFOIName.item(n).getTextContent();\t\t\t\t\t\t\r\n\t\t\t\t\t\tgjson.samplingFOIIdentifier = nodes_path_SamplingFOIIdentifier.item(n).getTextContent();\r\n\t\t\t\t\t\tgjson.procedure = nodes_procedure.item(n).getTextContent();\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tString coords = nodes_path_y_lat_x_long.item(n).getTextContent();\r\n\t\t\t\t\t\tString [] stray = coords.split(\" \");\r\n\t\t\t\t\t\tgjson.y_lat = Double.parseDouble(coords.split(\" \")[0]);\r\n\t\t\t\t\t\tgjson.x_long = Double.parseDouble(coords.split(\" \")[1]);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(stray.length==3){\r\n\t\t\t\t\t\t\tgjson.z_alt = Double.parseDouble(coords.split(\" \")[2]); \r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}catch(Exception ex){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlogger.error(\"some error\", ex);\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\t\r\n\t\t\t\tGeoJson gj = geoJson.list_geoJson.get(0);\r\n\t\t\t\tfor (Field field : gj.getClass().getDeclaredFields()) {\r\n\t\t\t\t\tlogger.debug(field.getName()+ \": \"+field.get(gj));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\r\n\t\t//xml_final = TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2);\r\n\t\treturn geoJson.list_geoJson.get(0);\r\n\t}", "public interface GetFeatureRequest extends Request{\n\n /**\n * @return QName : requested type name, can be null\n * if not yet configured.\n */\n QName getTypeName();\n\n /**\n * @param type : requested type name, must not be null\n */\n void setTypeName(QName type);\n\n /**\n * @return Filter : the request filter, null for no filter\n */\n Filter getFilter();\n\n /**\n * @param filter : the request filter, null for no filter\n */\n void setFilter(Filter filter);\n\n /**\n * @return Integer : maximum features returned by this request,\n * null for no limit.\n */\n Integer getMaxFeatures();\n\n /**\n * @param max : maximum features returned by this request,\n * null for no limit.\n */\n void setMaxFeatures(Integer max);\n\n /**\n * @return String[] : array of requested properties,\n * null if all properties, empty for only the id.\n */\n GenericName[] getPropertyNames();\n\n /**\n * @param properties : array of requested properties,\n * null if all properties, empty for only the id.\n */\n void setPropertyNames(GenericName[] properties);\n\n /**\n * Return the output format to use for the response.\n * text/xml; subtype=gml/3.1.1 must be supported.\n * Other output formats are possible as well as long as their MIME\n * type is advertised in the capabilities document.\n *\n * @return The current outputFormat\n */\n String getOutputFormat();\n\n /**\n * Set the output format to use for the response.\n * text/xml; subtype=gml/3.1.1 must be supported.\n * Other output formats are possible as well as long as their MIME\n * type is advertised in the capabilities document.\n *\n * @param outputFormat The current outputFormat\n */\n void setOutputFormat(String outputFormat);\n}", "public static String createGML1(final BoundingBoxE6 pBoundingBoxE6){\r\n\t\tAssert.assertNotNull(pBoundingBoxE6);\r\n\r\n\t\tfinal StringBuilder sb = new StringBuilder();\r\n\t\tfinal Formatter f = new Formatter(sb, Locale.ENGLISH);\r\n\r\n\t\tsb.append(WFS_GETFEATURE_TAG_OPEN);\r\n\t\tf.format(WFS_QUERY_TAG_OPEN, \"traffic:t_traffic_view\"); // @HOME SERVER traffic:messages | @UNI traffic:t_traffic_view\r\n\t\tf.format(WFS_PROPERTY_TAG, \"traffic:severity\");\r\n\t\tf.format(WFS_PROPERTY_TAG, \"traffic:description\");\r\n\t\tf.format(WFS_PROPERTY_TAG, \"traffic:the_geom\");\r\n\r\n\t\tsb.append(OGC_FILTER_TAG_OPEN)\r\n\t\t.append(OGC_BBOX_TAG_OPEN);\r\n\r\n\t\tf.format(OGC_PROPERTY_TAG, \"the_geom\");\r\n\r\n\t\t/* The BoundingBox... */\r\n\t\tsb.append(GML_ENVELOPE_TAG_OPEN);\r\n\r\n\t\tf.format(GML_LOWERCORNER_TAG, pBoundingBoxE6.getLonWest(), pBoundingBoxE6.getLatSouth());\r\n\t\tf.format(GML_UPPERCORNER_TAG, pBoundingBoxE6.getLonEast(), pBoundingBoxE6.getLatNorth());\r\n\r\n\t\tsb.append(GML_ENVELOPE_TAG_CLOSE)\r\n\t\t.append(OGC_BBOX_TAG_CLOSE)\r\n\t\t.append(OGC_FILTER_TAG_CLOSE)\r\n\t\t.append(WFS_QUERY_TAG_CLOSE)\r\n\t\t.append(WFS_GETFEATURE_TAG_CLOSE);\r\n\r\n\t\treturn sb.toString();\r\n\t}", "public PointPolygon extractPointFromIO(String xml_og) {\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(\"swe\".equals(args)) {\r\n\t\t\t return \"http://www.opengis.net/swe/1.0.1\";\r\n\t\t\t }else if(\"env\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\";\r\n\t\t\t }else if(\"sos\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/sos/2.0\";\r\n\t\t\t }else if(\"ows\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/ows/1.1\";\r\n\t\t\t }else if(\"soap\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\"; \t\r\n\t\t\t }else if(\"om\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/om/2.0\";\r\n\t\t\t }else if(\"xlink\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/1999/xlink\";\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\";\r\n\t\t\t }else{\r\n\t\t\t return null;}\r\n\t\t\t }\r\n\t\t\t\t});\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n\t\t\t\t//String pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t\t\t\t\r\n\t\t\t\t//String pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t \t\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi test!\");\r\n\t\t\t\t\r\n\t \tString pathToCoordinates =\"//gml:Point/gml:pos\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tArrayList<String> list_xy = new ArrayList<String>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\t\t\r\n\t\t\t\t\tlist_xy.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\r\n\t\t\t\ttry{\t\t\t\t\r\n\t\t\t\t\tpoint.y_latitude = Double.parseDouble(list_xy.get(0).split(\" \")[0]);\r\n\t\t\t\t\tpoint.x_longitude = Double.parseDouble(list_xy.get(0).split(\" \")[1]);\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tpoint.point2D.setLocation(point.y_latitude, point.x_longitude);\r\n\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\t\t\t\t\t\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\treturn point;\t\t\t\t\r\n\t}", "public PointPolygon extractPointFromIO(String xml_og) {\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(\"swe\".equals(args)) {\r\n\t\t\t return \"http://www.opengis.net/swe/1.0.1\";\r\n\t\t\t }else if(\"env\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\";\r\n\t\t\t }else if(\"sos\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/sos/2.0\";\r\n\t\t\t }else if(\"ows\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/ows/1.1\";\r\n\t\t\t }else if(\"soap\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\"; \t\r\n\t\t\t }else if(\"om\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/om/2.0\";\r\n\t\t\t }else if(\"xlink\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/1999/xlink\";\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\";\r\n\t\t\t }else{\r\n\t\t\t return null;}\r\n\t\t\t }\r\n\t\t\t\t});\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n\t\t\t\t//String pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t\t\t\tString pathToCoordinates =\"//gml:Point/gml:pos\";\r\n\t\t\t\t//String pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\tArrayList<String> list_xy = new ArrayList<String>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO: \"+nodes_position.item(n).getTextContent());\t\t\r\n\t\t\t\t\tlist_xy.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\t\tpoint.y_latitude = Double.parseDouble(list_xy.get(0).split(\" \")[0]);\r\n\t\t\t\t\tpoint.x_longitude = Double.parseDouble(list_xy.get(0).split(\" \")[1]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tpoint.point2D.setLocation(point.x_longitude, point.y_latitude);\r\n\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\treturn point;\t\t\t\t\r\n\t}", "private Document xsltTransformGetFeature(String gml, String xsltURL) {\r\n Debug.debugMethodBegin( this, \"xsltTransformGetFeature\" );\r\n\r\n Document document = null;\r\n try {\r\n document = XMLTools.parse( new StringReader( gml ) );\r\n \r\n // Use the static TransformerFactory.newInstance() method to instantiate\r\n // a TransformerFactory. The javax.xml.transform.TransformerFactory\r\n // system property setting determines the actual class to instantiate --\r\n // org.apache.xalan.transformer.TransformerImpl.\r\n TransformerFactory tFactory = TransformerFactory.newInstance();\r\n \r\n // Use the TransformerFactory to instantiate a Transformer that will work with\r\n // the stylesheet you specify. This method call also processes the stylesheet\r\n // into a compiled Templates object.\r\n URL url = new URL( xsltURL );\r\n Transformer transformer =\r\n tFactory.newTransformer( new StreamSource( url.openStream() ) );\r\n \r\n // Use the Transformer to apply the associated Templates object to an XML document\r\n // (foo.xml) and write the output to a file (foo.out).\r\n StringWriter sw = new StringWriter();\r\n transformer.transform(new DOMSource(document), new StreamResult( sw ));\r\n\r\n document = XMLTools.parse( new StringReader( sw.toString() ) );\r\n } catch(Exception e) {\r\n Debug.debugException( e, \"an error/fault body for the soap message will be created\");\r\n //TODO exception\r\n }\r\n \r\n Debug.debugMethodEnd();\r\n return document;\r\n }", "public void test11() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"SUBSYSTEM\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode><id:subsystemCode>client</id:subsystemCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:securityServer><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode><id:serverCode>server1</id:serverCode></xrd:securityServer><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(\"client\", response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.SUBSYSTEM, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"FI\", response.getSecurityServer().getXRoadInstance());\n assertEquals(\"GOV\", response.getSecurityServer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getSecurityServer().getMemberCode());\n assertEquals(\"server1\", response.getSecurityServer().getServerCode());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n }", "@Test\n public void testLayerQualified() throws Exception {\n Document dom = dom(get(\"cite/Forests/wms?service=WMS&request=getCapabilities&version=1.3.0\"), true);\n // print(dom);\n Element e = dom.getDocumentElement();\n Assert.assertEquals(\"WMS_Capabilities\", e.getLocalName());\n XpathEngine xpath = XMLUnit.newXpathEngine();\n Assert.assertEquals(0, xpath.getMatchingNodes(\"//wms:Layer/wms:Name[starts-with(., 'cite:Forests')]\", dom).getLength());\n Assert.assertEquals(1, xpath.getMatchingNodes(\"//wms:Layer/wms:Layer\", dom).getLength());\n NodeList nodes = xpath.getMatchingNodes(\"//wms:Layer//wms:OnlineResource\", dom);\n Assert.assertTrue(((nodes.getLength()) > 0));\n for (int i = 0; i < (nodes.getLength()); i++) {\n e = ((Element) (nodes.item(i)));\n String attribute = e.getAttribute(\"xlink:href\");\n Assert.assertTrue(attribute.contains(\"geoserver/cite/Forests/ows\"));\n }\n }", "String getFeature();", "String getFeature();", "public void test2() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "public void test6() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:serviceCode>allowedMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:allowedMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:allowedMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(null, response.getProducer().getSubsystemCode());\n assertEquals(\"allowedMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "public void test5() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>allowedMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:allowedMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:allowedMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(\"subsystem\", response.getProducer().getSubsystemCode());\n assertEquals(\"allowedMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "@Test\n public void testFromXml() throws Exception\n {\n Element root = XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"kml\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Folder\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"folder description\"))),\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Document\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"document description\"))))\n .toDOM().getDocumentElement();\n\n KmlFile file = KmlFile.fromXml(root.getOwnerDocument());\n\n List<Feature<?>> features = file.getFeatures();\n\n assertEquals(\"number of features\", 2, features.size());\n assertEquals(\"first feature type\", Folder.class, features.get(0).getClass());\n assertEquals(\"first feature attribute\", \"folder description\", features.get(0).getDescription());\n assertEquals(\"second feature type\", Document.class, features.get(1).getClass());\n assertEquals(\"second feature attribute\", \"document description\", features.get(1).getDescription());\n }", "public void test3() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:id=\\\"http://x-road.eu/xsd/identifiers\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Header><xrd:client id:objectType=\\\"MEMBER\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>GOV</id:memberClass><id:memberCode>MEMBER1</id:memberCode></xrd:client><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>COM</id:memberClass><id:memberCode>MEMBER2</id:memberCode><id:serviceCode>listMethods</id:serviceCode></xrd:service><xrd:userId>EE1234567890</xrd:userId><xrd:id>ID-1234567890</xrd:id><xrd:protocolVersion>4.0</xrd:protocolVersion><xrd:requestHash algorithmId=\\\"SHA-512\\\">ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==</xrd:requestHash></SOAP-ENV:Header><SOAP-ENV:Body><xrd:listMethodsResponse><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-6</id:memberCode><id:subsystemCode>subsystem</id:subsystemCode><id:serviceCode>testService</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-7</id:memberCode><id:subsystemCode>subsystem1</id:subsystemCode><id:serviceCode>testService1</id:serviceCode></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-8</id:memberCode><id:serviceCode>testService2</id:serviceCode><id:serviceVersion>v1</id:serviceVersion></xrd:service><xrd:service id:objectType=\\\"SERVICE\\\"><id:xRoadInstance>FI</id:xRoadInstance><id:memberClass>PRI</id:memberClass><id:memberCode>12345-9</id:memberCode><id:serviceCode>testService3</id:serviceCode></xrd:service></xrd:listMethodsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, List<ProducerMember>> response = deserializer.deserialize(msg);\n\n assertEquals(\"FI\", response.getConsumer().getXRoadInstance());\n assertEquals(\"GOV\", response.getConsumer().getMemberClass());\n assertEquals(\"MEMBER1\", response.getConsumer().getMemberCode());\n assertEquals(null, response.getConsumer().getSubsystemCode());\n assertEquals(ObjectType.MEMBER, response.getConsumer().getObjectType());\n\n assertEquals(\"FI\", response.getProducer().getXRoadInstance());\n assertEquals(\"COM\", response.getProducer().getMemberClass());\n assertEquals(\"MEMBER2\", response.getProducer().getMemberCode());\n assertEquals(null, response.getProducer().getSubsystemCode());\n assertEquals(\"listMethods\", response.getProducer().getServiceCode());\n assertEquals(null, response.getProducer().getServiceVersion());\n assertEquals(\"ID-1234567890\", response.getId());\n assertEquals(\"EE1234567890\", response.getUserId());\n assertEquals(\"4.0\", response.getProtocolVersion());\n assertEquals(ObjectType.SERVICE, response.getProducer().getObjectType());\n assertEquals(null, response.getRequestData());\n\n assertEquals(\"SHA-512\", response.getRequestHashAlgorithm());\n assertEquals(\"ZPbWPAOcJxzE81EmSk//R3DUQtqwMcuMMF9tsccJypdNcukzICQtlhhr3a/bTmexDrn8e/BrBVyl2t0ni/cUvw==\", response.getRequestHash());\n assertEquals(true, response.getSoapMessage() != null);\n\n assertEquals(\"FI\", response.getResponseData().get(0).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(0).getMemberClass());\n assertEquals(\"12345-6\", response.getResponseData().get(0).getMemberCode());\n assertEquals(\"subsystem\", response.getResponseData().get(0).getSubsystemCode());\n assertEquals(\"testService\", response.getResponseData().get(0).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(0).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(0).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(1).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(1).getMemberClass());\n assertEquals(\"12345-7\", response.getResponseData().get(1).getMemberCode());\n assertEquals(\"subsystem1\", response.getResponseData().get(1).getSubsystemCode());\n assertEquals(\"testService1\", response.getResponseData().get(1).getServiceCode());\n assertEquals(null, response.getResponseData().get(1).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(1).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(2).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(2).getMemberClass());\n assertEquals(\"12345-8\", response.getResponseData().get(2).getMemberCode());\n assertEquals(null, response.getResponseData().get(2).getSubsystemCode());\n assertEquals(\"testService2\", response.getResponseData().get(2).getServiceCode());\n assertEquals(\"v1\", response.getResponseData().get(2).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(2).getObjectType());\n\n assertEquals(\"FI\", response.getResponseData().get(3).getXRoadInstance());\n assertEquals(\"PRI\", response.getResponseData().get(3).getMemberClass());\n assertEquals(\"12345-9\", response.getResponseData().get(3).getMemberCode());\n assertEquals(null, response.getResponseData().get(3).getSubsystemCode());\n assertEquals(\"testService3\", response.getResponseData().get(3).getServiceCode());\n assertEquals(null, response.getResponseData().get(3).getServiceVersion());\n assertEquals(ObjectType.SERVICE, response.getResponseData().get(3).getObjectType());\n }", "public org.pentaho.pms.cwm.pentaho.meta.expressions.CwmFeatureNode getFeatureNode();", "java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();", "java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();", "public SimpleFeatureType getFeatureSchema() {\n final SimpleFeatureTypeBuilder simpleFeatureType = new SimpleFeatureTypeBuilder();\n simpleFeatureType.add(\"geom\", LineString.class, DefaultGeographicCRS.WGS84);\n simpleFeatureType.add(\"name\", String.class);\n simpleFeatureType.add(\"activityId\", Long.class);\n simpleFeatureType.setName(\"activity\");\n simpleFeatureType.add(\"name\", String.class);\n simpleFeatureType.add(\"sport\", String.class);\n simpleFeatureType.add(\"startTime\", String.class);\n simpleFeatureType.add(\"totalMeters\", Double.class);\n simpleFeatureType.add(\"totalSeconds\", Double.class);\n simpleFeatureType.add(\"minLat\", Double.class);\n simpleFeatureType.add(\"minLon\", Double.class);\n simpleFeatureType.add(\"maxLat\", Double.class);\n simpleFeatureType.add(\"maxLon\", Double.class);\n return simpleFeatureType.buildFeatureType();\n }", "private void filterFeatureswithtext() throws Exception {\n\t\ttry {\r\n\t\t\t//source = dataStore.getFeatureSource(typeName);\r\n\t\t\tString sql = text.getText();\r\n\t\t\tString filtertype = \"include\";\r\n\t\t\tString[] cql = sql.split(\":\");\r\n\t\t\tHints h = new Hints();\r\n \t\t\th.put(Hints.FILTER_FACTORY, ISOFilterFactoryImpl.class);\r\n \t\t\tFilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(h);\r\n \t\t\tWKTReader wktr = new WKTReader(DefaultGeographicCRS.WGS84_3D);\r\n \t\t\tFilter filter = CQL.toFilter(\"include\");\r\n \t\t\tlong start = System.currentTimeMillis();\r\n \t\t\tList<SimpleFeature> sfs = new ArrayList<SimpleFeature>();\r\n \t\t\tSimpleFeatureIterator iterator = currentfeatures.features();\r\n \t\t\t\r\n \t\t\tif(cql.length > 1 && cql[2].startsWith(\"BBOX3D\")) {\r\n \t\t\t cql[2] = cql[2].replaceAll(\"BBOX3D\", \"\");\r\n \t\t\t cql[2] = cql[2].replaceAll(\"\\\\(\", \"\");\r\n \t\t\t cql[2] = cql[2].replaceAll(\"\\\\)\", \"\");\r\n \t\t\t \r\n \t\t\t String[] coords = cql[2].split(\",\");\r\n \t\t\t \r\n \t\t\t String[] lowerStr = coords[0].trim().split(\" \");\r\n \t\t\t String[] upperStr = coords[1].trim().split(\" \");\r\n \t\t\t \r\n \t\t\t double[] lower = new double[3];\r\n \t\t\t double[] upper = new double[3];\r\n \t\t\t \r\n \t\t\t lower[0] = Double.parseDouble(lowerStr[0]);\r\n lower[1] = Double.parseDouble(lowerStr[1]);\r\n lower[2] = Double.parseDouble(lowerStr[2]);\r\n \r\n upper[0] = Double.parseDouble(upperStr[0]);\r\n upper[1] = Double.parseDouble(upperStr[1]);\r\n upper[2] = Double.parseDouble(upperStr[2]);\r\n \r\n DirectPosition lowerCorner = builder.createDirectPosition(lower);\r\n DirectPosition upperCorner = builder.createDirectPosition(upper);\r\n \r\n Solid s = makeFromEnvelope(builder, lowerCorner, upperCorner);\r\n cql[2] = s.toString();\r\n\r\n Document d = encode(s);\r\n //System.out.println(d);\r\n\r\n //System.out.println(cql[2]);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(cql[0].equalsIgnoreCase(\"contains\")) {\r\n \t\t\t\tfeatureid = \"\";\r\n \t\t\t\tfilter = ff.contains(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"contains \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"within\")) {\r\n \t\t\t\tfeatureid = \"\";\r\n \t\t\t\tfilter = ff.within(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"within \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"equals\")) {\r\n \t\t\t\tfilter = ff.equals(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"equals \";\r\n \t\t\t}\r\n \t\t\telse if(cql[0].equalsIgnoreCase(\"intersects\")) {\r\n \t\t\t\tFilter getidfilter = ff.equals(cql[1], wktr.read(cql[2]));\r\n \t\t\t\t\r\n \t\t\t\twhile (iterator.hasNext()) {\r\n \t\t\t\t\tSimpleFeature feature = iterator.next();\r\n \t\t\t\t\t\r\n \t\t\t\t\tif(getidfilter.evaluate(feature)) {\r\n \t\t\t\t\t\tfeatureid = feature.getID();\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tfilter = ff.intersects(cql[1], wktr.read(cql[2]));\r\n \t\t\t\tfiltertype = \"intersects \";\r\n \t\t\t}\r\n \t\t\t\r\n\t\t\t//SimpleFeatureCollection features = source.getFeatures(filter);\r\n \t\t\titerator = currentfeatures.features();\r\n\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\tSimpleFeature feature = iterator.next();\r\n\t\t\t\tSystem.out.print(featureid + \" : \" + feature.getID() + \" \");\r\n\t\t\t\tif(filter.evaluate(feature)) {\r\n\t\t\t\t\tsfs.add(feature);\r\n\t\t\t\t\tSystem.out.println(\"true\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tSystem.out.println(\"false\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(sfs.size() == 0) {\r\n\t\t\t\ttable.setModel(new DefaultTableModel(5, 5));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tSimpleFeatureCollection result = ISODataUtilities.collection(sfs);\r\n \t\t\t\r\n\t\t\tlong end = System.currentTimeMillis();\r\n\t\t\t//System.out.println( \"실행 시간 : \" + ( end - start )/1000.0 );\r\n\t\t\tlabel.setText(filtertype + \"complete : \" + ( end - start )/1000.0 + \" sec\");\r\n\t\t\tFeatureCollectionTableModel model = new FeatureCollectionTableModel(result);\r\n\t\t\ttable.setModel(model);\r\n\t\t\t\r\n\t\t} catch (CQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}", "private StringBuffer tableToGML(Table table, ParameterList pl,\r\n StringBuffer gml) throws Exception {\r\n Debug.debugMethodBegin( this, \"tableToGML\" );\r\n \r\n HashMap propNameCache = new HashMap();\r\n \r\n String tableName = table.getTableName();\r\n FeatureType ft = (FeatureType)pl.getParameter( WFSConstants.FEATURETYPE ).getValue();\r\n String[] columnNames = table.getColumnNames();\r\n\r\n TableDescription td = ft.getTableByName( tableName );\r\n // get id property name\r\n String idProp = td.getIdField();\r\n // create coordinate reference system for the tables (feature types)\r\n // geometries\r\n Parameter p = pl.getParameter( WFSConstants.CRS );\r\n String crs = (String)p.getValue();\r\n ConvenienceCSFactory fac = ConvenienceCSFactory.getInstance();\r\n\r\n CoordinateSystem cs_ = fac.getCSByName( crs );\r\n Adapters ada = Adapters.getDefault();\r\n CS_CoordinateSystem cs = ada.export( cs_ );\r\n \r\n for (int r = 0; r < table.getRowCount(); r++) {\r\n \r\n gml.append( \"<gml:featureMember>\" ); \r\n \r\n StringBuffer feat = new StringBuffer(10000);\r\n \r\n String id = \"ID\" + r;\r\n Object[] row = table.getRow( r );\r\n // transform the current row of the table to a GMLFeature\r\n for (int i = 0; i < row.length; i++) {\r\n // get feature id\r\n if ( columnNames[i].equalsIgnoreCase( idProp ) ) {\r\n id = row[i].toString(); \r\n try {\r\n double d = Double.parseDouble( id );\r\n id = \"ID\" + (int)d;\r\n } catch (Exception ee) {\r\n id = id.replace(' ','_');\r\n }\r\n }\r\n \r\n String pn = null;\r\n if ( columnNames[i].equals( \"COUNTCOUNT\" ) ) {\r\n pn = \"_COUNT_\";\r\n } else {\r\n String s = ft.getPropertyFromAlias( columnNames[i] );\r\n if ( s == null ) s = ft.getPropertyFromAlias( tableName + \".\" + columnNames[i] );\r\n if ( s == null ) s = tableName + \".\" + columnNames[i];\r\n pn = (String)propNameCache.get( s ); \r\n if ( pn == null ) {\r\n pn = formatPropertyName( s );\r\n propNameCache.put( s, pn );\r\n }\r\n }\r\n \r\n if ( !(row[i] instanceof ByteArrayOutputStream) ) {\r\n // create and add none-geometry properties to the feature\r\n if ( row[i] != null ) {\r\n if ( row[i] instanceof Table ) {\r\n if ( ((Table)row[i]).getRowCount() > -10 ) {\r\n // create complex property \r\n StringBuffer gml_ = new StringBuffer( \"<gml:Collection>\" );\r\n // recursive call of the method\r\n gml_ = tableToGML( (Table)row[i], pl, gml_ );\r\n gml_.append( \"</gml:Collection>\" );\r\n feat.append( \"<\" + pn + \">\" ).append( gml_.toString() );\r\n feat.append( \"</\" + pn + \">\" );\r\n }\r\n } else { \r\n feat.append( \"<\" + pn + \">\" ); \r\n if ( row[i] != null ) {\r\n String sr = row[i].toString().replace('\"', '\\'');\r\n feat.append( XMLTools.validateCDATA( sr ) );\r\n }\r\n feat.append( \"</\" + pn + \">\" );\r\n }\r\n } else {\r\n // create an empty property \r\n feat.append( \"<\" + pn + \"/>\" );\r\n }\r\n } else {\r\n // create and add geometry properties to the feature\r\n if ( row[i] != null ) {\r\n try {\r\n ByteArrayOutputStream bos = (ByteArrayOutputStream)row[i];\r\n GM_Object geo = createGeometry( bos, cs );\r\n String s_ = GMLAdapter.export( geo );\r\n feat.append( \"<\" + pn + \">\" ).append( s_ );\r\n feat.append( \"</\" + pn + \">\" );\r\n } catch(Exception e) {\r\n throw new Exception( \"couldn't create geo property \\n\" + e );\r\n }\r\n } else {\r\n // create an empty property\r\n feat.append( \"<\" + pn + \"/>\" );\r\n }\r\n }\r\n \r\n }\r\n gml.append( \"<\" + td.getTargetName() + \" fid=\\\"\" + id + \"\\\">\" );\r\n // add feature to the feature collection\r\n gml.append( feat );\r\n \r\n gml.append( \"</\" + td.getTargetName() + \">\" );\r\n gml.append( \"</gml:featureMember>\" ); \r\n }\r\n \r\n Debug.debugMethodEnd();\r\n return gml;\r\n }", "@Override\n\tpublic String toGeoJSON(FeatureDto featureDto) {\n\t\tif (featureDto == null) {\n\t\t\treturn BuilderConstants.NULL_VALUE;\n\t\t}\n\t\n\t\tStringBuilder builder = initializeBuilder();\n\t\tbuildTypePart(builder, GeoJSONObjectTypeEnum.Feature);\n\n\t\tbuilder.append(BuilderConstants.GEOMETRY_SPACE);\n\t\tif (featureDto.getGeometry() == null) {\n\t\t\tbuilder.append(BuilderConstants.NULL_VALUE);\n\t\t} else {\n\t\t\tbuilder.append(CommonGeometryBuilder.toGeometryGeoJSON(featureDto.getGeometry()));\n\t\t}\n\n\t\tbuilder.append(BuilderConstants.COMMA_NEWLINE);\n\t\tbuilder.append(BuilderConstants.PROPERTIES_SPACE);\n\n\t\tbuilder.append(featureDto.getProperties());\n\n\t\tif (featureDto.getId() != null) {\n\t\t\tbuilder.append(BuilderConstants.COMMA_NEWLINE);\n\t\t\tbuilder.append(BuilderConstants.ID_SPACE);\n\t\t\tbuilder.append(featureDto.getId());\n\t\t}\n\n\t\tbuildBbox(builder, featureDto.getBbox());\n\t\tendBuilder(builder);\n\n\t\treturn builder.toString();\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();", "org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();", "public String getFeature() {\r\n return feature;\r\n }", "public org.pentaho.pms.cwm.pentaho.meta.core.CwmStructuralFeature getFeature();", "public FeatureStream getFeatureStream() {\n\treturn stream;\n }", "String getExternalFeatureModelURI();", "public boolean parseGeoJSON(File file, String target_epsg) {\n OGRDataStoreFactory factory = new BridjOGRDataStoreFactory();\n Map<String, String> connectionParams = new HashMap<String, String>();\n connectionParams.put(\"DriverName\", \"GPX\");\n connectionParams.put(\"DatasourceName\", file.getAbsolutePath());\n DataStore store = null;\n SimpleFeatureSource source;\n SimpleFeatureCollection collection;\n SimpleFeatureIterator it;\n SimpleFeature feature;\n SimpleFeatureType featureType = null;\n CoordinateReferenceSystem sourceCrs;\n CoordinateReferenceSystem targetCrs;\n MathTransform transform = null;\n JSONArray features = new JSONArray();\n\n try {\n // Transform\n // Gpx epsg:4326 and longitude 1st\n sourceCrs = CRS.decode(\"EPSG:4326\",true);\n // Oskari crs\n //(oskari OL map crs)\n targetCrs = CRS.decode(target_epsg, true);\n if (!targetCrs.getName().equals(sourceCrs.getName())) {\n transform = CRS.findMathTransform(sourceCrs, targetCrs, true);\n }\n store = factory.createDataStore(connectionParams);\n String[] typeNames = store.getTypeNames();\n for (String typeName : typeNames) {\n // Skip track points\n if (typeName.equals(\"track_points\")) {\n continue;\n }\n source = store.getFeatureSource(typeName);\n collection = source.getFeatures();\n it = collection.features();\n while (it.hasNext()) {\n feature = it.next();\n featureType = feature.getFeatureType();\n if (transform != null) {\n Geometry geometry = (Geometry) feature.getDefaultGeometry();\n feature.setDefaultGeometry(JTS.transform(geometry, transform));\n }\n JSONObject geojs = JSONHelper.createJSONObject(io.toString(feature));\n if (geojs != null) {\n features.put(geojs);\n }\n }\n it.close();\n }\n if (features.length() > 0) {\n setGeoJson(JSONHelper.createJSONObject(\"features\", features));\n setFeatureType((FeatureType)featureType);\n setTypeName(\"GPX_\");\n }\n } catch (Exception e) {\n log.error(\"Couldn't create geoJSON from the GPX file \", file.getName(), e);\n return false;\n }\n finally {\n store.dispose();\n }\n return true;\n }", "public static void main(String[] args) {\n JSONParser jsonParser = new JSONParser();\n\n try (FileReader reader = new FileReader(\"countries.geojson\")) {\n // lecture du fichier\n Object obj = jsonParser.parse(reader);\n JSONObject feature = (JSONObject) obj;\n\n JSONArray jsonArray = (JSONArray) feature.get(\"features\");\n\n final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n final DocumentBuilder builder = factory.newDocumentBuilder();\n\n final Document document = builder.newDocument();\n\n final Element kmlTag = document.createElement(\"kml\");\n kmlTag.setAttribute(\"xmlns\", \"http://www.opengis.net/kml/2.2\");\n document.appendChild(kmlTag);\n\n final Element documentTag = document.createElement(\"Document\");\n kmlTag.appendChild(documentTag);\n\n for (Object feat : jsonArray) {\n final Element placeMark = document.createElement(\"Placemark\");\n documentTag.appendChild(placeMark);\n\n JSONObject featJ = (JSONObject) feat;\n\n JSONObject featJSON = (JSONObject) featJ.get(\"properties\");\n Properties properties = new Properties((String) featJSON.get(\"ADMIN\"), (String) featJSON.get(\"ISO_A3\"));\n JSONObject coordJSON = (JSONObject) featJ.get(\"geometry\");\n String type = (String) coordJSON.get(\"type\");\n String titre = \"(\" + properties.getIsoA3() + \") \" + properties.getAdmin();\n\n Element extData = document.createElement(\"ExtendedData\");\n placeMark.appendChild(extData);\n\n Element dataAdmin = document.createElement(\"Data\");\n dataAdmin.setAttribute(\"name\", \"ADMIN\");\n extData.appendChild(dataAdmin);\n\n Element dataISO = document.createElement(\"Data\");\n dataISO.setAttribute(\"name\", \"ISO_A3\");\n extData.appendChild(dataISO);\n\n Element valueAdmin = document.createElement(\"value\");\n valueAdmin.appendChild(document.createTextNode(properties.getAdmin()));\n dataAdmin.appendChild(valueAdmin);\n\n Element valueISO = document.createElement(\"value\");\n valueISO.appendChild(document.createTextNode(properties.getIsoA3()));\n dataISO.appendChild(valueISO);\n\n System.out.println(titre);\n if (type.equals(\"Polygon\")){\n Element polygon = document.createElement(\"Polygon\");\n placeMark.appendChild(polygon);\n\n Element outerBoundaryIs = document.createElement(\"outerBoundaryIs\");\n polygon.appendChild(outerBoundaryIs);\n\n Element linearRing = document.createElement(\"LinearRing\");\n outerBoundaryIs.appendChild(linearRing);\n\n Element coordinates = document.createElement(\"coordinates\");\n\n JSONArray coords = (JSONArray) coordJSON.get(\"coordinates\");\n for (Object coord: coords){\n JSONArray coordJ = (JSONArray) coord;\n for (Object o : coordJ) {\n StringBuilder sb = new StringBuilder(o.toString());\n sb.deleteCharAt(0);\n sb.deleteCharAt(sb.length() - 1);\n sb.append(\" \");\n coordinates.appendChild(document.createTextNode(sb.toString()));\n }\n linearRing.appendChild(coordinates);\n\n String nbCoord = \"\\t - \" + coordJ.size() + \" coordinates\";\n System.out.println(nbCoord);\n\n }\n } else if (type.equals(\"MultiPolygon\")){\n Element multiGeometry = document.createElement(\"MultiGeometry\");\n placeMark.appendChild(multiGeometry);\n\n Element polygon = document.createElement(\"Polygon\");\n multiGeometry.appendChild(polygon);\n\n Element outerBoundaryIs = document.createElement(\"outerBoundaryIs\");\n polygon.appendChild(outerBoundaryIs);\n\n Element linearRing = document.createElement(\"LinearRing\");\n outerBoundaryIs.appendChild(linearRing);\n\n Element coordinates = document.createElement(\"coordinates\");\n\n JSONArray coords = (JSONArray) coordJSON.get(\"coordinates\");\n for (Object coord : coords) {\n JSONArray coordJ = (JSONArray) coord;\n for (Object c : coordJ){\n JSONArray c1 = (JSONArray) c;\n for (Object o : c1){\n StringBuilder sb = new StringBuilder(o.toString());\n sb.deleteCharAt(0);\n sb.deleteCharAt(sb.length() - 1);\n sb.append(\" \");\n coordinates.appendChild(document.createTextNode(sb.toString()));\n }\n linearRing.appendChild(coordinates);\n\n String nbCoord = \"\\t - \" + c1.size() + \" coordinates\";\n System.out.println(nbCoord);\n }\n }\n } else {\n throw new Error(\"Type mal forme !\");\n }\n }\n\n // Etape 7 : finalisation\n final TransformerFactory transformerFactory = TransformerFactory.newInstance();\n final Transformer transformer = transformerFactory.newTransformer();\n final DOMSource source = new DOMSource(document);\n final StreamResult sortie = new StreamResult(new File(\"src/output.kml\"));\n\n //prologue\n document.setXmlStandalone(true);\n document.setXmlVersion(\"1.0\");\n transformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n\n //formatage\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"2\");\n\n //sortie\n transformer.transform(source, sortie);\n\n } catch (IOException | ParseException | ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }", "public String modifyIoXml(String xml_og){\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\tDocument doc = null;\r\n\t\tString xml_final;\r\n\t\t\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(\"swe\".equals(args)) {\r\n\t\t\t return \"http://www.opengis.net/swe/1.0.1\";\r\n\t\t\t }else if(\"env\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\";\r\n\t\t\t }else if(\"sos\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/sos/2.0\";\r\n\t\t\t }else if(\"ows\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/ows/1.1\";\r\n\t\t\t }else if(\"soap\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\"; \t\r\n\t\t\t }else if(\"om\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/om/2.0\";\r\n\t\t\t }else if(\"xlink\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/1999/xlink\";\r\n\t\t\t }else{\r\n\t\t\t return null;}\r\n\t\t\t }\r\n\t\t\t\t});\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n\t\t\t\tString path_loading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\tNodeList nodes = (NodeList)xPath.compile(path_loading).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t\t\t\tString messwert = \"\";\r\n\t\t\t\tfor(int n = 0; n<nodes.getLength(); n++){\r\n\t\t\t\t\tmesswert = nodes.item(n).getTextContent();\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.parseInsertObservation:parser Loading OG: \"+messwert);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(messwert.equals(\"1\")){\r\n\t\t\t\t\t\tnodes.item(n).setTextContent(\"2222\");;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.parseInsertObservation:parser Loading EDITED:\"+nodes.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\r\n\t\txml_final = TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2);\r\n\t\treturn xml_final;\r\n\t}", "public String modifyIoXml(String xml_og){\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\tDocument doc = null;\r\n\t\tString xml_final;\r\n\t\t\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(\"swe\".equals(args)) {\r\n\t\t\t return \"http://www.opengis.net/swe/1.0.1\";\r\n\t\t\t }else if(\"env\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\";\r\n\t\t\t }else if(\"sos\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/sos/2.0\";\r\n\t\t\t }else if(\"ows\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/ows/1.1\";\r\n\t\t\t }else if(\"soap\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/2003/05/soap-envelope\"; \t\r\n\t\t\t }else if(\"om\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/om/2.0\";\r\n\t\t\t }else if(\"xlink\".equals(args)){\r\n\t\t\t \treturn \"http://www.w3.org/1999/xlink\";\r\n\t\t\t }else{\r\n\t\t\t return null;}\r\n\t\t\t }\r\n\t\t\t\t});\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n\t \t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t \t\r\n\t \t\r\n\t \t//find Loading value\r\n\t\t\t\tString path_loading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\tNodeList nodes = (NodeList)xPath.compile(path_loading).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\r\n\t\t\t\tString messwert = \"\";\r\n\t\t\t\tfor(int n = 0; n<nodes.getLength(); n++){\r\n\t\t\t\t\tmesswert = nodes.item(n).getTextContent();\r\n\t\t\t\t\t//replace original value with new value\r\n\t\t\t\t\tif(messwert.equals(LoadOnStartAppConfiguration.value_from)){\r\n\t\t\t\t\t\tnodes.item(n).setTextContent(LoadOnStartAppConfiguration.value_to);;\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\r\n\t\txml_final = TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2);\r\n\t\treturn xml_final;\r\n\t}", "@GET\n @Produces(MediaType.APPLICATION_XML)\n \n public String getXml() {\n \n return \"<gps_data>\"\n + \"<gps_id>1</gps_id>\"\n + \"<gps_coord>107,-40</gps_coord>\"\n + \"<gps_time>12:00</gps_time>\"\n + \"</gps_data>\";\n }", "private static List<IFeature> parseFeatures(WMElement features) {\n List<IFeature> trainingFeatures = new ArrayList<>();\n for (int i = 0; i < features.ConvertToIdentifier().GetNumberChildren(); i++) {\n IFeature res;\n WMElement curFeatureType = features.ConvertToIdentifier().GetChild(i);\n WMElement curFeature = curFeatureType.ConvertToIdentifier().GetChild(0);\n String featureName = curFeature.GetAttribute();\n String featureVal = curFeature.GetValueAsString();\n double featureValNumerical = -1.0;\n try {\n featureValNumerical = Double.parseDouble(featureVal);\n } catch (Exception e) {\n if (featureVal.equalsIgnoreCase(\"true\")) {\n featureValNumerical = 1.0;\n } else if (featureVal.equalsIgnoreCase(\"false\")) {\n featureValNumerical = 0.0;\n }\n }\n\n switch (curFeatureType.GetAttribute()) {\n case \"boolean\":\n res = new BooleanFeature(featureName, featureValNumerical);\n break;\n case \"numerical\":\n res = new NumericalFeature(featureName, featureValNumerical);\n break;\n case \"categorical\":\n res = new CategoricalFeature(featureName, featureVal);\n break;\n default:\n throw new IllegalArgumentException(\"Given feature type is not supported.\");\n }\n\n trainingFeatures.add(res);\n }\n return trainingFeatures;\n }", "com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature();", "public static String getGeometryType(EsriShapefile.EsriFeature feature,\r\n int numParts) {\r\n String tag = null;\r\n if (numParts == 0) {\r\n return tag;\r\n }\r\n if ((feature instanceof EsriShapefile.EsriPoint)\r\n || (feature instanceof EsriShapefile.EsriPointZ)) {\r\n if (numParts == 1) {\r\n tag = Geometry.TYPE_POINT;\r\n } else {\r\n tag = Geometry.TYPE_MULTIPOINT;\r\n }\r\n } else if ((feature instanceof EsriShapefile.EsriPolyline)\r\n || (feature instanceof EsriShapefile.EsriPolylineZ)) {\r\n if (numParts == 1) {\r\n tag = Geometry.TYPE_LINESTRING;\r\n } else {\r\n tag = Geometry.TYPE_MULTILINESTRING;\r\n }\r\n } else if ((feature instanceof EsriShapefile.EsriPolygon)\r\n || (feature instanceof EsriShapefile.EsriPolygonZ)) {\r\n if (numParts == 1) {\r\n tag = Geometry.TYPE_POLYGON;\r\n } else {\r\n tag = Geometry.TYPE_MULTIPOLYGON;\r\n }\r\n }\r\n\r\n return tag;\r\n }", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType xgetFeatureType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType)get_store().find_element_user(FEATURETYPE$4, 0);\n return target;\n }\n }", "public static String getGeometryType(int featureType) {\r\n String tag = null;\r\n switch (featureType) {\r\n\r\n case EsriShapefile.POINT : // 1\r\n case EsriShapefile.POINTZ : // 11\r\n tag = Geometry.TYPE_POINT;\r\n\r\n break;\r\n\r\n case EsriShapefile.POLYLINE : // 3\r\n case EsriShapefile.POLYLINEZ : // 13\r\n tag = Geometry.TYPE_LINESTRING;\r\n\r\n break;\r\n\r\n case EsriShapefile.POLYGON : // 5\r\n case EsriShapefile.POLYGONZ : // 15\r\n tag = Geometry.TYPE_POLYGON;\r\n\r\n break;\r\n\r\n default :\r\n tag = null;\r\n\r\n break;\r\n }\r\n\r\n return tag;\r\n }", "@Test\n public void testOpenlayersFormat() throws Exception {\n Document doc = getAsDOM(\"wms?service=WMS&request=getCapabilities&version=1.3.0\", true);\n assertXpathEvaluatesTo(\"1\", ((\"count(//wms:GetMap[wms:Format = '\" + (OpenLayersMapOutputFormat.MIME_TYPE)) + \"'])\"), doc);\n }", "com.synergyj.cursos.webservices.ordenes.XMLBFactura getXMLBFactura();", "com.google.protobuf.Struct getCustomFeatures();", "public Object format(HashMap map, ParameterList paramList) throws Exception {\r\n Debug.debugMethodBegin( this, \"format\" );\r\n\r\n Parameter p = paramList.getParameter( WFSConstants.NAMESPACE );\r\n String s = \"\";\r\n if ( p != null ) s = (String)p.getValue();\r\n \r\n // create the basic StringBuffer\r\n StringBuffer gml = new StringBuffer(100000); \r\n gml.append( \"<?xml version=\\\"1.0\\\" encoding=\\\"iso-8859-1\\\"?>\" );\r\n gml.append( \"<gml:Collection xmlns:gml=\\\"http://www.opengis.net/gml\\\" \" + s + \">\");\r\n gml.append( \"<gml:boundedBy><gml:Box><gml:coord><gml:X>-9E99</gml:X>\" );\r\n gml.append( \"<gml:Y>-9E99</gml:Y></gml:coord><gml:coord><gml:X>9E99</gml:X>\" );\r\n gml.append( \"<gml:Y>9E99</gml:Y></gml:coord></gml:Box></gml:boundedBy>\" );\r\n \r\n // get iterator to iterate each feature collection contained within\r\n // the HashMap\r\n Iterator iterator = map.values().iterator();\r\n \r\n while ( iterator.hasNext() ) {\r\n \r\n ParameterList pl = (ParameterList)iterator.next();\r\n p = pl.getParameter( WFSConstants.TABLE );\r\n Table table = (Table)p.getValue();\r\n gml = tableToGML( table, pl, gml );\r\n \r\n }\r\n gml.append(\"</gml:Collection>\");\r\n\r\n Document doc = XMLTools.parse( new StringReader( gml.toString() ) );\r\n \r\n // create the feature collection that will contain all requested\r\n // features (table rows)\r\n GMLFeatureCollection fc = new GMLFeatureCollection_Impl( doc.getDocumentElement() ); \r\n fc.setBoundingBox( minx, miny, maxx, maxy );\r\n \r\n p = paramList.getParameter( WFSConstants.FILTER );\r\n if ( p != null ) {\r\n s = DOMPrinter.nodeToString( ((GMLFeatureCollection_Impl)fc).getAsElement(), \"\" );\r\n doc = xsltTransformGetFeature(s, (String)p.getValue() );\r\n fc = new GMLFeatureCollection_Impl( doc.getDocumentElement() );\r\n }\r\n \r\n Debug.debugMethodEnd();\r\n return fc;\r\n }", "org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);", "@Test\n public void testCoverageTrimmingLatitudeNativeCRSXMLMultipart() throws Exception {\n final File xml = new File(\"./src/test/resources/requestGetCoverageTrimmingLatitudeNativeCRSXMLMultipart.xml\");\n final String request = FileUtils.readFileToString(xml);\n MockHttpServletResponse response = postAsServletResponse(\"wcs\", request);\n TestCase.assertEquals(\"multipart/related\", response.getContentType());\n // parse the multipart, check there are two parts\n Multipart multipart = getMultipart(response);\n TestCase.assertEquals(2, multipart.getCount());\n BodyPart xmlPart = multipart.getBodyPart(0);\n TestCase.assertEquals(\"application/gml+xml\", xmlPart.getHeader(\"Content-Type\")[0]);\n TestCase.assertEquals(\"wcs\", xmlPart.getHeader(\"Content-ID\")[0]);\n Document gml = dom(xmlPart.getInputStream());\n // print(gml);\n // check the gml part refers to the file as its range\n XMLAssert.assertXpathEvaluatesTo(\"fileReference\", \"//gml:rangeSet/gml:File/gml:rangeParameters/@xlink:arcrole\", gml);\n XMLAssert.assertXpathEvaluatesTo(\"cid:/coverages/wcs__BlueMarble.tif\", \"//gml:rangeSet/gml:File/gml:rangeParameters/@xlink:href\", gml);\n XMLAssert.assertXpathEvaluatesTo(\"http://www.opengis.net/spec/GMLCOV_geotiff-coverages/1.0/conf/geotiff-coverage\", \"//gml:rangeSet/gml:File/gml:rangeParameters/@xlink:role\", gml);\n XMLAssert.assertXpathEvaluatesTo(\"cid:/coverages/wcs__BlueMarble.tif\", \"//gml:rangeSet/gml:File/gml:fileReference\", gml);\n XMLAssert.assertXpathEvaluatesTo(\"image/tiff\", \"//gml:rangeSet/gml:File/gml:mimeType\", gml);\n BodyPart coveragePart = multipart.getBodyPart(1);\n TestCase.assertEquals(\"/coverages/wcs__BlueMarble.tif\", coveragePart.getHeader(\"Content-ID\")[0]);\n TestCase.assertEquals(\"image/tiff\", coveragePart.getContentType());\n // make sure we can read the coverage back and perform checks on it\n byte[] tiffContents = IOUtils.toByteArray(coveragePart.getInputStream());\n checkCoverageTrimmingLatitudeNativeCRS(tiffContents);\n }", "private Geometry findGeometry(final Feature feature, final String geomName) {\n Geometry geom = null;\n \n if (geomName == null) {\n geom = feature.getDefaultGeometry();\n } else {\n geom = (Geometry) feature.getAttribute(geomName);\n }\n \n return geom;\n }", "java.util.List<iet.distributed.telemetry.Feature> \n getFeatureList();", "public String feature() {\n return feature;\n }", "public boolean getFeature(String featureId)\n throws SAXNotRecognizedException, SAXNotSupportedException\n {\n if ((FEATURE + \"validation\").equals(featureId))\n {\n return false;\n }\n \n // external entities (both types) are optionally included\n if ((FEATURE + \"external-general-entities\").equals(featureId))\n {\n return extGE;\n }\n if ((FEATURE + \"external-parameter-entities\").equals(featureId))\n {\n return extPE;\n }\n \n // element/attribute names are as written in document; no mangling\n if ((FEATURE + \"namespace-prefixes\").equals(featureId))\n {\n return xmlNames;\n }\n \n // report element/attribute namespaces?\n if ((FEATURE + \"namespaces\").equals(featureId))\n {\n return namespaces;\n }\n \n // all PEs and GEs are reported\n if ((FEATURE + \"lexical-handler/parameter-entities\").equals(featureId))\n {\n return true;\n }\n \n // default is true\n if ((FEATURE + \"string-interning\").equals(featureId))\n {\n return stringInterning;\n }\n \n // EXTENSIONS 1.1\n \n // always returns isSpecified info\n if ((FEATURE + \"use-attributes2\").equals(featureId))\n {\n return true;\n }\n \n // meaningful between startDocument/endDocument\n if ((FEATURE + \"is-standalone\").equals(featureId))\n {\n if (parser == null)\n {\n throw new SAXNotSupportedException(featureId);\n }\n return parser.isStandalone();\n }\n \n // optionally don't absolutize URIs in declarations\n if ((FEATURE + \"resolve-dtd-uris\").equals(featureId))\n {\n return resolveAll;\n }\n \n // optionally use resolver2 interface methods, if possible\n if ((FEATURE + \"use-entity-resolver2\").equals(featureId))\n {\n return useResolver2;\n }\n \n throw new SAXNotRecognizedException(featureId);\n }", "FTCommand getFeature();", "private String getGeomInsert( String gml ) throws Exception {\r\n Debug.debugMethodBegin( this, \"getGeomInsert\" );\r\n\r\n Document doc = XMLTools.parse( new StringReader( gml ) );\r\n\r\n GMLPoint point = (GMLPoint)GMLFactory.createGMLGeometry( doc.getDocumentElement() );\r\n\r\n StringBuffer geom = new StringBuffer();\r\n\r\n GMLCoord coord = point.getCoord();\r\n\r\n if ( coord != null ) {\r\n geom.append( coord.getX() ).append( \",\" ).append( coord.getY() );\r\n } else {\r\n GMLCoordinates coordinates = point.getCoordinates();\r\n String s = coordinates.getCoordinates();\r\n String sep = \"\" + coordinates.getCoordinateSeperator();\r\n String[] vals = StringExtend.toArray( s, sep, false );\r\n geom.append( vals[0] ).append( \",\" ).append( vals[1] );\r\n }\r\n\r\n Debug.debugMethodEnd();\r\n return geom.toString();\r\n }", "public String getFeatureFlagString() {\n return featureFlagString;\n }", "private String parseXML(String is) throws\n XmlPullParserException, IOException, URISyntaxException {\n\n // xml classes used to read xml file\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n factory.setNamespaceAware(true);\n XmlPullParser parser = factory.newPullParser();\n\n // Set xml string to input\n parser.setInput(new StringReader(is));\n\n // Start and end tags and end document\n int eventType = parser.getEventType();\n\n // current tag\n String currentTag;\n\n // current value of tag/element\n String currentElement;\n\n int counter = 0;\n StringBuilder sb = new StringBuilder();\n\n // parse the entire xml file until done\n while (eventType != XmlPullParser.END_DOCUMENT) {\n // look for start tags\n if (eventType == XmlPullParser.START_TAG) {\n // get the name of the start tag\n currentTag = parser.getName();\n\n if (currentTag.equals(\"step\")) {\n sb.append(\"Step \" + ++counter + \":\\n\");\n sb.append(\"-----------------------------------------\\n\");\n }\n // Driving directions\n else if (currentTag.equals(\"html_instructions\")) {\n currentElement = parser.nextText();\n\n // Replace html bold tags\n currentElement = currentElement.replace(\"<b>\", \"\");\n currentElement = currentElement.replace(\"</b>\", \"\");\n\n // Get rid of div tags\n String s;\n while (currentElement.contains(\"<\")) {\n if (currentElement.indexOf(\">\") == currentElement.lastIndexOf(\">\")){\n s = \"\";\n } else {\n s = \" \";\n }\n currentElement = currentElement.replace(currentElement.substring(currentElement.indexOf(\"<\"),\n currentElement.indexOf(\">\") + 1), s);\n }\n\n // Append html parsed string to directions string\n currentElement += \".\\n\\n\";\n sb.append(currentElement);\n }\n }\n\n // If the end of the string is reached\n else if (eventType == XmlPullParser.END_TAG) {\n currentTag = parser.getName();\n\n if (currentTag.equals(\"DirectionsResponse\")) {\n\n // return displayable string\n sb.append(\"------------------------------------\\n\\n\");\n return sb.toString();\n }\n }\n\n // get next tag\n eventType = parser.next();\n }\n\n // return null if something went wrong\n return null;\n }", "@Override\n protected SimpleFeature buildFeature() {\n synchronized(EDGE_FEATURE_BUILDER) {\n EDGE_FEATURE_BUILDER.add(getId());\n EDGE_FEATURE_BUILDER.add(displayName);\n EDGE_FEATURE_BUILDER.add(url);\n EDGE_FEATURE_BUILDER.add(selected);\n EDGE_FEATURE_BUILDER.add(lineString);\n return EDGE_FEATURE_BUILDER.buildFeature(null);\n }\n }", "public static GetGhlb parse(javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n GetGhlb object = new GetGhlb();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"GetGhlb\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (GetGhlb) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"request\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"request\").equals(\r\n reader.getName())) {\r\n object.setRequest(Request.Factory.parse(reader));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "java.util.List<org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature> getPlanFeatureList();", "public java.lang.String getXml();", "@Test\n public void testCoverageTrimmingLatitudeNativeCRSXML() throws Exception {\n final File xml = new File(\"./src/test/resources/trimming/requestGetCoverageTrimmingLatitudeNativeCRSXML.xml\");\n final String request = FileUtils.readFileToString(xml);\n MockHttpServletResponse response = postAsServletResponse(\"wcs\", request);\n TestCase.assertEquals(\"image/tiff\", response.getContentType());\n byte[] tiffContents = getBinary(response);\n checkCoverageTrimmingLatitudeNativeCRS(tiffContents);\n }", "org.apache.xmlbeans.XmlString xgetContent();", "Feature getFeature();", "Feature getFeature();", "public static String stringDecode(Context context,String strFeatureName)\r\n \t throws Exception {\r\n \t \r\n \t if(strFeatureName.indexOf(\"&\")>-1){\r\n\r\n \t \t strFeatureName = strFeatureName.replaceAll(\"&\",\"&amp;\");\r\n\r\n \t }else if(strFeatureName.indexOf(\"<\")>-1){\r\n\r\n \t \t strFeatureName = strFeatureName.replaceAll(\"<\",\"&lt;\");\r\n\r\n \t }else if(strFeatureName.indexOf(\">\")>-1){\r\n\r\n \t \tstrFeatureName = strFeatureName.replaceAll(\">\",\"&gt;\");\r\n \t }\r\n\r\n \t return strFeatureName;\r\n \t }", "@Test\n public void testGetXmlPayload() {\n System.out.println(\"getXmlPayload\");\n String expResult = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><json xmlns=\\\"uk.nhs.digital.mait.tkwx.jsonconverter.JsonXmlConverter\\\" aud=\\\"https://authorize.fhir.nhs.net/token\\\" exp=\\\"1503995882\\\" iat=\\\"1503995582\\\" iss=\\\"https://ConsumerSystemURL\\\" reason_for_request=\\\"directcare\\\" requested_scope=\\\"patient/*.read\\\" sub=\\\"1\\\"><requesting_device id=\\\"1\\\" model=\\\"v1\\\" resourceType=\\\"Device\\\" version=\\\"1.1\\\"><identifiers><identifier system=\\\"GPConnectTestSystem\\\" value=\\\"Client\\\"/></identifiers><type><codings><coding code=\\\"DeviceIdentifier\\\" system=\\\"DeviceIdentifierSystem\\\"/></codings></type></requesting_device><requesting_organization id=\\\"1\\\" name=\\\"GP Connect Assurance\\\" resourceType=\\\"Organization\\\"><identifiers><identifier system=\\\"http://fhir.nhs.net/Id/ods-organization-code\\\" value=\\\"GPCA0001\\\"/></identifiers></requesting_organization><requesting_practitioner id=\\\"1\\\" resourceType=\\\"Practitioner\\\"><identifiers><identifier system=\\\"http://fhir.nhs.net/sds-user-id\\\" value=\\\"GCASDS0001\\\"/><identifier system=\\\"LocalIdentifierSystem\\\" value=\\\"1\\\"/></identifiers><name><familys><family>AssurancePractitioner</family></familys><givens><given>AssuranceTest</given></givens><prefixs><prefix>Mr</prefix></prefixs></name><practitionerRoles><practitionerRole><role><codings><coding code=\\\"AssuranceJobRole\\\" system=\\\"http://fhir.nhs.net/ValueSet/sds-job-role-name-1\\\"/></codings></role></practitionerRole></practitionerRoles></requesting_practitioner><requested_record resourceType=\\\"Patient\\\"><identifiers><identifier system=\\\"https://fhir.nhs.uk/Id/nhs-number\\\" value=\\\"9476719931\\\"/></identifiers></requested_record></json>\";\n String result = instance.getXmlPayload();\n System.out.println(xmlReformat(result));\n assertEquals(expResult, result);\n }", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "public final native GEFeatureContainer getFeatures() /*-{\r\n\t\treturn this.getFeatures();\r\n\t}-*/;", "public com.flexnet.opsembedded.webservices.SimpleQueryType getFeatureName() {\n return featureName;\n }", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return GPSSetupImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { GPSSetupImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return GPSSetupImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "public String getCoordinates(String address){\n\t\ttry\n {\n String thisLine;\n String address1 = address;\n address1 = address1.replace(' ', '+');\n address1 = address1.replace(',', '+');\n System.out.println(\"address: \"+address1);\n URL u = new URL(\"http://maps.google.com/maps/geo?q=\\'\" + address1 + \"\\'&output=xml&key=AIzaSyDA6y535k8_IQu-3XLpVn865SiEkBLSQ74\");\n \n BufferedReader theHTML = new BufferedReader(new InputStreamReader(u.openStream()));\n \n FileWriter fstream = new FileWriter(\"url.xml\");\n BufferedWriter out = new BufferedWriter(fstream);\n while ((thisLine = theHTML.readLine()) != null)\n out.write(thisLine);\n out.close();\n File file = new File(\"url.xml\");\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(file);\n doc.getDocumentElement().normalize();\n NodeList nl = doc.getElementsByTagName(\"code\");\n Element n = (Element)nl.item(0);\n String st = n.getFirstChild().getNodeValue();\n \n if (st.equals(\"200\"))\n {\n NodeList n2 = doc.getElementsByTagName(\"coordinates\");\n Element nn = (Element)n2.item(0);\n String st1 = nn.getFirstChild().getNodeValue();\n \n return st1;\n }\n else\n {\n \treturn null;\n }\n }\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Exception Occured\");\n return null;\n }\n\t}", "public final String getURI() {\n/* 314 */ return this.constructionElement.getAttributeNS(null, \"Algorithm\");\n/* */ }", "protected abstract String getFeatureName(Map<String, Object> data);", "public void startElement(String uri, String localName,String qName,\n Attributes attributes) throws SAXException {\n\n if(qName.equalsIgnoreCase(\"sce:PLPExtract\") | (qName.equalsIgnoreCase(\"sce:Payload\"))\n | (qName.equalsIgnoreCase(\"sce:Header\"))) {\n return;\n }\n\n builder.append(\"<\").append(qName).append(\">\");\n\n if (qName.equalsIgnoreCase(\"sce:mRID\")) {\n mRID = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:aliasName\")) {\n aliasName = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:name\")) {\n name = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:grandFatherFlag\")) {\n grandFather = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:type\")) {\n pType = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:value\")) {\n value = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:baseKind\")) {\n baseKind = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:classification\")) {\n classification = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:unit\")) {\n unit = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:speciesType\")) {\n speciesT = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:rSMVal\")) {\n rSMVal = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:specialProjectName\")) {\n specialProj = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:currentRating\")) {\n cRating = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:inServiceRating\")) {\n iRating = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:highWindFlag\")) {\n highWind = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:highFireFlag\")) {\n highFire = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:srsName\")) {\n srsName = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:xPosition\")) {\n xPos = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:yPosition\")) {\n yPos = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:description\")) {\n desc = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:street\")) {\n street = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:city\")) {\n city = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:mapRefNumber\")) {\n mapRef = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:installationDate\")) {\n installDate = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:symbolRef\")) {\n symbolRef = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:orientation\")) {\n orientation = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:substationMRID\")) {\n substationMRID = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:owner\")) {\n owner = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:ownerType\")) {\n ownerType = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:ratedVoltage\")) {\n ratedVoltage = true;\n }\n\n if (qName.equalsIgnoreCase(\"gml:pos\")) {\n pos = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:bundleType\")) {\n bundleType = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:circuitName\")) {\n circuitName = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:circuitSection\")) {\n circuitSection = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:material\")) {\n material = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:size\")) {\n size = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:quantity\")) {\n quantity = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:phase\")) {\n phase = true;\n }\n\n if (qName.equalsIgnoreCase(\"gml:posList\")) {\n posList = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:no_of_wires\")) {\n no_of_wires = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:commIndicator\")) {\n commIndicator = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:structureID\")) {\n structureID = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:strucRefMRID\")) {\n strucRefMRID = true;\n }\n\n if (qName.equalsIgnoreCase(\"sce:serviceType\")) {\n serviceType = true;\n }\n\n }", "@Override\n\tpublic String getFeature(Message message) {\n\t\treturn null;\n\t}", "public static String getPointsOfInterestJSON(ArrayList<ArrayList<Double>> geoList){\n Map featureCollectionObj = new LinkedHashMap();\n featureCollectionObj.put(\"type\", \"FeatureCollection\");\n\n /*\"features\": [\n { type\": \"Feature\",\n \"geometry\": {\n */\n JSONArray geoJSON = new JSONArray();\n\n /*\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"LineString\",\n */\n Map featureObj = new LinkedHashMap();\n featureObj.put(\"type\",\"Feature\");\n\n /*\n \"type\": \"Polygon\",\n \"coordinates\": [ [ [102.0, 0.0], [103.0, 1.0] ..\n */\n Map polygonObj = new LinkedHashMap();\n polygonObj.put(\"type\",\"Polygon\");\n\n ArrayList<ArrayList<ArrayList<Double>>> geoArrayList = new ArrayList<>();\n geoArrayList.add(geoList);\n polygonObj.put(\"coordinates\", geoArrayList);\n\n featureObj.put(\"geometry\",polygonObj);\n\n geoJSON.add(featureObj);\n\n featureCollectionObj.put(\"features\",geoJSON);\n\n String geoJSONtoString = JSONValue.toJSONString(featureCollectionObj);\n System.out.print(geoJSONtoString);\n return geoJSONtoString;\n\n }", "private Object getFeature (EObject o, String feature) {\n\n if(o == null){\n System.out.println(\"Null object given\");\n }\n\n return o.eGet(o.eClass().getEStructuralFeature(feature));\n }", "void simpleContent(ComplexTypeSG type) throws SAXException;", "public Object getPayload(JAXBContext context);", "java.util.List<? extends iet.distributed.telemetry.FeatureOrBuilder> \n getFeatureOrBuilderList();", "@Override\n public String toString() {\n return mFeatureStructures.toString();\n }", "private List<String> usingXml(String urladd) {\n List<String> retLst = new ArrayList<String>();\n try {\n\n URL url = new URL(urladd);\n URLConnection urlConnection = url.openConnection();\n HttpURLConnection connection = null;\n connection = (HttpURLConnection) urlConnection;\n\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(connection.getInputStream());\n\n doc.getDocumentElement().normalize();\n\n NodeList nList = doc.getElementsByTagName(\"surfaceForm\");\n\n boolean flg = true;\n for (int temp = 0; temp < nList.getLength(); temp++) {\n\n Node nNode = nList.item(temp);\n\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\n Element eElement = (Element) nNode;\n String text = eElement.getAttribute(\"name\");\n String offset = eElement.getAttribute(\"offset\");\n\n String startEnd = Integer.parseInt(offset) + \",\" + (text.length() + Integer.parseInt(offset));\n retLst.add(startEnd);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return retLst;\n }", "public static GetRoadwayPage parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetRoadwayPage object =\n new GetRoadwayPage();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getRoadwayPage\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetRoadwayPage)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestXml(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public KmlGeometryFeature(){\r\n }", "public Object parse(IXmlStreamReader parser,GPEDefaultGmlParser handler, Object feature, Object parentElement, IXSElementDeclaration parentType) throws XmlStreamException, IOException {\n\t\tboolean endFeature = false;\n\t\tboolean isGeometryTag = false;\n\t\tint currentTag;\t\t\n\t\tObject element = null;\t\n\t\tObject value = null;\n\t\tObject geometry = null;\n\t\tboolean isInitialized = false;\n\t\t//Used to finish to parse the current element\n\t\tQName elementRootType = parser.getName();\n\t\tString type = null;\t\n\t\t\n\t\tXMLAttributesIterator attributesIterator = new XMLAttributesIterator(parser);\n\t\t\n\t\t//Find the element type\n\t\tIXSElementDeclaration elementType = null;\n\t\tif (parentType != null){\n\t\t\telementType = parentType.getSubElementByName(elementRootType.getLocalPart());\n\t\t\tif (elementType == null){\n\t\t\t\ttype = TypeUtils.getXSType(String.class);\n\t\t\t}else{\n\t\t\t\ttype = elementType.getTypeName();\n\t\t\t}\n\t\t}else{\n\t\t\ttype = TypeUtils.getXSType(String.class);\n\t\t}\n\t\t\n\t\tQName tag = parser.getName();\n\t\tcurrentTag = parser.getEventType();\n\n\t\twhile (!endFeature){\n\t\t\tswitch(currentTag){\n\t\t\tcase IXmlStreamReader.START_ELEMENT:\n\t\t\t\tif (!(CompareUtils.compareWithNamespace(tag,elementRootType))){\n\t\t\t\t\t//If is a geometry\n\t\t\t\t\tif (GMLGeometries.isGML(tag)){\n\t\t\t\t\t\tgeometry = handler.getProfile().getGeometryBinding().\n\t\t\t\t\t\t\t\tparse(parser, handler);\n\t\t\t\t\t\thandler.getContentHandler().addGeometryToFeature(geometry, feature);\n\t\t\t\t\t\tif (geometry==null){\n\t\t\t\t\t\t\tSystem.out.println(\"\\t\\t\\tGEOMETRIA VACIA\");\n\t\t\t\t\t\t\t//Warning geometria vacia\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisGeometryTag=true;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t//If is not a geometry could be a complex feature\n\t\t\t\t\t\tif (!isInitialized){\n\t\t\t\t\t\t\telement = handler.getContentHandler().startElement(elementRootType.getNamespaceURI(),\n\t\t\t\t\t\t\t\t\tGMLUtilsParser.removeBlancSymbol(elementRootType.getLocalPart()),\n\t\t\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\t\tattributesIterator,\n\t\t\t\t\t\t\t\t\tparentElement);\n\t\t\t\t\t\t\tisInitialized = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\thandler.getProfile().getElementTypeBinding().\n\t\t\t\t\t\t\tparse(parser, handler, feature, element, null);\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IXmlStreamReader.END_ELEMENT:\n\t\t\t\tif (CompareUtils.compareWithNamespace(tag,elementRootType)){\t\t\t\t\t\t\n\t\t\t\t\tendFeature = true;\n\t\t\t\t\t//If not is complex the element has not been created yet\n\t\t\t\t\tif (!isInitialized){\n\t\t\t\t\t\telement = handler.getContentHandler().startElement(\n\t\t\t\t\t\t\t\telementRootType.getNamespaceURI(),\n\t\t\t\t\t\t\t\tGMLUtilsParser.removeBlancSymbol(elementRootType.getLocalPart()), \n\t\t\t\t\t\t\t\tvalue,\t\n\t\t\t\t\t\t\t\tattributesIterator,\n\t\t\t\t\t\t\t\tparentElement);\n\t\t\t\t\t\tisInitialized = true;\n\t\t\t\t\t}\n\t\t\t\t\thandler.getContentHandler().endElement(element);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IXmlStreamReader.CHARACTERS:\t\t\t\t\t\n\t\t\t\tif (geometry == null){\n\t\t\t\t\tvalue = TypeUtils.getValue(elementType, parser.getText());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (!endFeature){\t\t\t\t\t\n\t\t\t\tcurrentTag = parser.next();\n\t\t\t\ttag = parser.getName();\n\t\t\t}\n\t\t}\t\t\t\n\t\treturn element;\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void parseMapData(String filename){\n\t\ttry{\n\t\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\t\t\tInputStream in = new FileInputStream(filename);\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\t\t\t\n\t\t\t//Read through the .osm file\n\t\t\twhile(eventReader.hasNext()){\n\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\t\n\t\t\t\t//At start of a new tag\n\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\t\t\n\t\t\t\t\t//If we have bounds tag\n\t\t\t\t\tif(startElement.getName().getLocalPart() == (BOUNDS)){\n\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Found bounds tag\");\n\t\t\t\t\t\tfloat maxlon = 0,minlat = 0;\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all bounds attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(MINLAT)) minlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MINLON)) minlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLAT)) maxlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLON)) maxlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Calculate scaling values for lon and lat to screen coordinates\n\t\t\t\t\t\tfloat latDiff = maxlat-minlat;\n\t\t\t\t\t\tfloat lonDiff = maxlon-minlon;\n\t\t\t\t\t\tscaleLonX = Frame.SIM_WINDOW_LENGTH / lonDiff;\n\t\t\t\t\t\tscaleLatY = -Frame.SIM_WINDOW_LENGTH / latDiff;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a node tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\tString id = \"\";\n\t\t\t\t\t\tfloat lon = 0, lat = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(ID)) id = attribute.getValue();\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LON)) lon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LAT)) lat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode node = new Node(Math.round(scaleLonX*(lon-minlon)),Math.round(scaleLatY*(lat-maxlat)));\n\t\t\t\t\t\t\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check if node has any tags\n\t\t\t\t\t\twhile(true){\n\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\t\t\t\t\t\t\t//Does this node have any tags?\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tattributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Go through all tag attributes\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//K\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(K)){\n\t\t\t\t\t\t\t\t\t\t\t//SHOP\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(SHOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added shop\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SHOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.SHOP_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t//V\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(V)){\n\t\t\t\t\t\t\t\t\t\t\t//CROSSING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(CROSSING)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CROSSING\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CROSSING);\n\t\t\t\t\t\t\t\t\t\t\t\tnonTargetNodes.add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY ENTRANCE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY_ENTRANCE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added SUBWAY_ENTRANCE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SUBWAY_ENTRANCE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BUS_STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STATION);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STOP\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().equals(BUS_STOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STOP\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//RESTAURANT\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(RESTAURANT)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added RESTAURANT\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(RESTAURANT);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.RESTAURANT_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CAFE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CAFE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CAFE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CAFE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.CAFE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//TOILETS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(TOILETS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added Toilet\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(TOILETS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.TOILET_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WASTE BIN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WASTEBIN)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added WASTE BIN\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(WASTEBIN);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.WASTE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//FAST FOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(FAST_FOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added FAST_FOOD\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(FAST_FOOD);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.FASTFOOD_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//DOCTORS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(DOCTORS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added DOCTORS\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(DOCTORS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//HOSPITAL\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(HOSPITAL)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added HOSPITAL\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(HOSPITAL);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PHARMACY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PHARMACY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added PHARMACY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(PHARMACY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LIBRARY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LIBRARY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added LIBRARY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(LIBRARY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.STUDY.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BANK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BANK)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//ATM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(ATM)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(node.getXPos() >= 0 && node.getXPos() < Frame.SIM_WINDOW_LENGTH && \n\t\t\t\t\t\t\t\t\t\t\t\t node.getYPos() >= 0 && node.getYPos() < Frame.SIM_WINDOW_LENGTH)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(STATION);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t//END NODE\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tnodeMap.put(id, node); //Put our node into the node map\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a way tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\tLinkedList<Node> nodes = new LinkedList<Node>();\n\t\t\t\t\t\tMapObject mapObject = null;\n\t\t\t\t\t\tboolean ignore = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node references for way\n\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t//Is event a start element?\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\n\t\t\t\t\t\t\t\t//A new node has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (ND)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the single attribute the node reference\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(REF)) nodes.add(nodeMap.get(attribute.getValue()));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//A tag has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the attribute the tag references\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t//Value\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(V)) {\n\t\t\t\t\t\t\t\t\t\t\t//FOOTWAY\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(FOOTWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(FOOTWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PEDESTRIAN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PEDESTRIAN)){\n\t\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\t\tif(mapObject instanceof Area){\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t//WAY\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(PEDESTRIAN_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PARK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PARK)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PARK_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PARK_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WOOD_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WOOD_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STEPS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STEPS)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(STEPS_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SERVICE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SERVICE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(SERVICE_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(SERVICE_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(SERVICE_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CYCLE WAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CYCLEWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(CYCLEWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(CYCLEWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(CYCLEWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PLATFORM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PLATFORM)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_PLATFORM_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_PLATFORM_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_PLATFORM_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//NARROW GAUGE (RAILWAY)\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(NARROW_GAUGE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//EDUCATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(EDUCATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setTag(EDUCATION);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//Key\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().getLocalPart() == (K)){\n\t\t\t\t\t\t\t\t\t\t\t//BUILDING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(BUILDING)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Building();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(BUILDING_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BUILDING_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tignore = false;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATERWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATERWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(WATERWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AREA)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BARRIER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BARRIER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BARRIER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(BARRIER_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AMENITY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AMENITY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LANDUSE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LANDUSE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//MAN MADE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(MAN_MADE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//Is event an end element?\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//At the end of a Way element? (add way and onwards to next tag)\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject == null && !ignore){\n\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject != null && !ignore) {\n\t\t\t\t\t\t\tmapObject.addNodes(nodes);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Calculate collision and add to collection\n\t\t\t\t\t\t\tif(mapObject instanceof Building){\n\t\t\t\t\t\t\t\t((Building)mapObject).checkTargetsInside(targets);\n\t\t\t\t\t\t\t\tbuildings.add((Building)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Area){\n\t\t\t\t\t\t\t\tareas.add((Area)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Way){\n\t\t\t\t\t\t\t\tways.add((Way)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapObject.calculateCollision(collisionMatrix);\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\tprogress += 5;\n\t\t\tsetProgress(progress);\n\t\t\tcheckTargetsReachable();\n\t\t\tsetProgress(97);\n\t\t\treadIcons();\n\t\t\tsetProgress(98);\n\t\t\tsetTargetCosts();\n\t\t\tsetProgress(99);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (XMLStreamException e) {\n \t \te.printStackTrace();\n\t\t}\n\t}", "org.landxml.schema.landXML11.Station xgetStation();", "public IDataSet extractFeatures(String featureType);", "public EStructuralFeature getFeatureByXMLElementName(String namespace, String xmlElementName) {\n \t\t\t// try to find the EStructural feature locally\n \t\t\t// TODO: consider namespace\n \t\t\tEStructuralFeature result = xmlNameToEStructuralFeatureMap.get(xmlElementName);\n \t\t\tif (null == result) {\n \t\t\t\tIterator<EStructuralFeature> allFeaturesIter = eClass.getEAllStructuralFeatures().iterator();\n \t\t\t\tList<EStructuralFeature> results = new ArrayList<EStructuralFeature>();\n \t\t\t\twhile (allFeaturesIter.hasNext()) {\n \t\t\t\t\tEStructuralFeature feature = allFeaturesIter.next();\n \t\t\t\t\tString xmlWrapperName = getRMFExtendedMetaData(feature).getXMLWrapperName();\n \n \t\t\t\t\t// search by feature wrapper\n \t\t\t\t\tif (xmlWrapperName.equals(xmlElementName)) {\n \t\t\t\t\t\tif (isIdentifiedByFeatureWrapper(feature)) {\n \t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t}\n \t\t\t\t\t} else {\n \t\t\t\t\t\t// search by feature name\n \t\t\t\t\t\tString xmlName = getRMFExtendedMetaData(feature).getXMLName();\n \t\t\t\t\t\tif (xmlName.equals(xmlElementName)) {\n \t\t\t\t\t\t\tif (isIdentifiedByFeature(feature)) {\n \t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// search by type wrapper (assuming type is type of feature)\n \t\t\t\t\t\t\tString classifierWrapperXMLName = getRMFExtendedMetaData(feature.getEType()).getXMLWrapperName();\n \t\t\t\t\t\t\tif (classifierWrapperXMLName.equals(xmlElementName)) {\n \t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// search by type wrapper name (assuming type not type of feature)\n \t\t\t\t\t\t\t\tEClassifier classifier = getTypeByXMLWrapperName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\tEClass eClass = (EClass) classifier;\n \t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// search by type name (assuming type not type of feature)\n \t\t\t\t\t\t\t\t\tclassifier = getTypeByXMLName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} // if (null != classifier && classifier instanceof EClass)\n \t\t\t\t\t\t\t} // if (classifierXMLName.equals(xmlElementName))\n \t\t\t\t\t\t} // if (xmlName.equals(xmlElementName))\n \t\t\t\t\t} // if (xmlWrapperName.equals(xmlElementName))\n \t\t\t\t} // while\n \n \t\t\t\t// if there are multiple valid features, we prefer the feature that is many and is not NONE\n \t\t\t\tint size = results.size();\n \t\t\t\tif (1 == size) {\n \t\t\t\t\tresult = results.get(0);\n \t\t\t\t} else if (0 < size) {\n \t\t\t\t\t// rule 1 we like the features that are explicitly selected\n \t\t\t\t\tList<EStructuralFeature> identifiedFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tList<EStructuralFeature> noneFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tfor (int i = 0; i < size; i++) {\n \t\t\t\t\t\tEStructuralFeature feature = results.get(i);\n \t\t\t\t\t\tif (isNone(feature)) {\n \t\t\t\t\t\t\tnoneFeatures.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tidentifiedFeatures.add(feature);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (identifiedFeatures.isEmpty()) {\n \t\t\t\t\t\t// there are none Features only\n \t\t\t\t\t\tresults = noneFeatures;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tresults = identifiedFeatures;\n \t\t\t\t\t}\n \n \t\t\t\t\tresult = results.get(0);\n \n \t\t\t\t\t// try to find a better features that is many\n \t\t\t\t\tfor (EStructuralFeature feature : results) {\n \t\t\t\t\t\tif (feature.isMany()) {\n \t\t\t\t\t\t\tresult = feature;\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}\n\t\t\t}\n \n \t\t\t// TODO: fall back to standard serialization?\n \n \t\t\treturn result;\n \t\t}", "void drawMyPoint(double x, double y, MapContent map, String nombre) { \n// SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n// builder.setName(\"MyFeatureType\");\n// builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs \n// builder.add(\"location\", Point.class); // add geometry\n//\n// // build the type\n// SimpleFeatureType TYPE = builder.buildFeatureType();\n//\n// // create features using the type defined\n// SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(TYPE);\n// org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n// org.locationtech.jts.geom.Point point = geometryFactory.createPoint(new Coordinate(x, y));\n// //\n// \n// //\n// featureBuilder.add(point);\n// SimpleFeature feature = featureBuilder.buildFeature(\"FeaturePoint\");\n// DefaultFeatureCollection featureCollection = new DefaultFeatureCollection(\"internal\", TYPE);\n// featureCollection.add(feature); // Add feature 1, 2, 3, etc\n//\n// Style style = SLD.createPointStyle(\"Star\", Color.BLUE, Color.BLUE, 0.3f, 200);\n// Layer layer = new FeatureLayer(featureCollection, style);\n// layer.setTitle(\"NewPointLayer\");\n// map.addLayer(layer);\n// //mapFrame.getMapPane().repaint();// MapPane.repaint();\n//}\n\tSimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n builder.setName(\"MyFeatureType\"); // \n builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs // Definimos las caracteristicas de tipo del punto q vamos a crear\n builder.add(\"location\", Point.class); // add geometry //\n org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(); //objeto q usaremos para crear el punto\n Coordinate coord = new Coordinate( x,y ); //creamos la coordenada con los puntos pasados como parametros\n org.locationtech.jts.geom.Point point = geometryFactory.createPoint(coord); // Creamos el punto geometrico\n\nSimpleFeatureType pointtype = null; //definimos el typo de punto que necesitamos apra agregarlo a la capa del mapa\n try {\n pointtype = DataUtilities.createType(\"POINT\", \"geom:Point,name:String\");\n } catch (SchemaException ex) {\n Logger.getLogger(SelectionLab.class.getName()).log(Level.SEVERE, null, ex);\n }\nSimpleFeatureBuilder featureBuilderPoints = new SimpleFeatureBuilder(pointtype); //creamos el constructor de lo que agregaremos\nDefaultFeatureCollection collectionPoints = new DefaultFeatureCollection(\"internal\", pointtype); //creamos el contenedor donde pondremos lo que agregaremos\n//PointString Point=builder.createPointString(Point);\n//LineString Point = builder.createLineString(Point);\nfeatureBuilderPoints.add(point); //agregamos el punto en el constructor\nSimpleFeature featureLine = featureBuilderPoints.buildFeature(null); \n((DefaultFeatureCollection)collectionPoints).add(featureLine); \nStyle PointStyle = SLD.createPointStyle(\"circle\", Color.RED, Color.RED,(float) 0.5,(float) 10); //definimos el estilo del punto (icono, color contorno, color, opacidad y tamaño)\n//Obserervacion: el dibujo del punto siempre se mantiene del mismo tamaño por mas que se use el zoom\nmap.addLayer(new FeatureLayer(collectionPoints, PointStyle)); //agregamos el punto a la capa\n\nguardarCoordenadas(nombre,x,y);\n}", "JZML getJZML();", "public Class<? extends FormatFeature> getFormatReadFeatureType()\n/* */ {\n/* 415 */ return null;\n/* */ }", "public DasFeature[] getAllFeatures() {\n Vector feats = new Vector();\n while (iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9) != -1) {\n String feature = iXml.substring(iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9), iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9) + 10);\n lastFeatureEndPosition = iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9);\n if (feature.indexOf(\"<NOTE>No features found for the segment</NOTE>\") < 0) {\n DasFeature f = new DasFeature(feature);\n feats.add(f);\n }\n }\n DasFeature[] features = new DasFeature[feats.size()];\n feats.toArray(features);\n return features;\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localGBInterval_fromTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_from\"));\n \n if (localGBInterval_from != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_from));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_from cannot be null!!\");\n }\n } if (localGBInterval_toTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_to\"));\n \n if (localGBInterval_to != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_to));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_to cannot be null!!\");\n }\n } if (localGBInterval_pointTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_point\"));\n \n if (localGBInterval_point != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_point));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_point cannot be null!!\");\n }\n } if (localGBInterval_iscompTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_iscomp\"));\n \n \n if (localGBInterval_iscomp==null){\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_iscomp cannot be null!!\");\n }\n elementList.add(localGBInterval_iscomp);\n } if (localGBInterval_interbpTracker){\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_interbp\"));\n \n \n if (localGBInterval_interbp==null){\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_interbp cannot be null!!\");\n }\n elementList.add(localGBInterval_interbp);\n }\n elementList.add(new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\n \"GBInterval_accession\"));\n \n if (localGBInterval_accession != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGBInterval_accession));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"GBInterval_accession cannot be null!!\");\n }\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "private Envelope readExtent(XPath xPath, Node ndWmsCapabilities) throws XPathExpressionException {\n String wkid = \"4326\";\n Node EX_GeographicBoundingBox = (Node) xPath.evaluate(\"Capability/Layer/EX_GeographicBoundingBox\", ndWmsCapabilities, XPathConstants.NODE);\n if (EX_GeographicBoundingBox != null) {\n return extractExtent(xPath, EX_GeographicBoundingBox, new String[]{\"westBoundLongitude\", \"southBoundLatitude\", \"eastBoundLongitude\", \"northBoundLatitude\"}, wkid);\n } else {\n NodeList nodes = (NodeList) xPath.evaluate(\"//EX_GeographicBoundingBox\", ndWmsCapabilities, XPathConstants.NODESET);\n if (nodes.getLength() > 0) {\n Envelope envelope = new Envelope();\n envelope.setWkid(wkid);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n Envelope e = extractExtent(xPath, node, new String[]{\"westBoundLongitude\", \"southBoundLatitude\", \"eastBoundLongitude\", \"northBoundLatitude\"}, wkid);\n if (e != null) {\n envelope.merge(e);\n }\n }\n if (envelope.hasSize())\n return envelope;\n }\n }\n\n Node LatLonBoundingBox = (Node) xPath.evaluate(\"Capability/Layer/LatLonBoundingBox\", ndWmsCapabilities, XPathConstants.NODE);\n if (LatLonBoundingBox != null) {\n return extractExtent(xPath, LatLonBoundingBox, new String[]{\"@minx\", \"@miny\", \"@maxx\", \"@maxy\"}, wkid);\n }\n\n return null;\n }", "String getSVGDescription(double speed);", "String getLayer1Info();", "FeatureId getFeatureId();", "private static String _toString(FeatureNode fn, String str)\n\t{\n\t\tstr += \"(\";\n\t\tFeatureNode fn_type = fn.get(\"phr-type\");\n\t\tstr += fn_type.getValue();\n\n\t\tfn = fn.get(\"phr-next\");\n\t\twhile (fn != null)\n\t\t{\n\t\t\tfn_type = fn.get(\"phr-type\");\n\t\t\tif (fn_type != null)\n\t\t\t{\n\t\t\t\tstr += \" \" + fn_type.getValue();\n\t\t\t}\n\n\t\t\tFeatureNode fn_word = fn.get(\"phr-word\");\n\t\t\tif (fn_word != null)\n\t\t\t{\n\t\t\t\tfn_word = fn_word.get(\"orig_str\");\n\t\t\t\t// fn_word can be null, when entity names are united.\n\t\t\t\t// For example, \"New York\" -> null + \"New_York\"\n\t\t\t\tif (fn_word != null)\n\t\t\t\t{\n\t\t\t\t\t// Must not allow words that are parenthesis in the constituent string.\n\t\t\t\t\tstr += \" \" + fn_word.getValue().replace('(','{').replace(')','}');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFeatureNode head = fn.get(\"phr-head\");\n\t\t\tif (head != null)\n\t\t\t{\n\t\t\t\tstr += \" \";\n\t\t\t\tstr = _toString(head, str);\n\t\t\t}\n\t\t\tfn = fn.get(\"phr-next\");\n\t\t}\n\n\t\tstr += \")\";\n\t\treturn str;\n\t}" ]
[ "0.63054353", "0.6187461", "0.6063455", "0.6008659", "0.55393803", "0.5475835", "0.5286537", "0.5286537", "0.5168449", "0.50762403", "0.5053544", "0.5053076", "0.5053076", "0.5048454", "0.504247", "0.4974154", "0.49485737", "0.49479192", "0.49431884", "0.49207193", "0.49207193", "0.49029976", "0.4855508", "0.4824774", "0.48161295", "0.48108235", "0.48108235", "0.47837946", "0.4782408", "0.47657713", "0.47404066", "0.47382855", "0.46768743", "0.4660902", "0.4660902", "0.46537912", "0.45928252", "0.45917782", "0.45890605", "0.4586005", "0.4577717", "0.45632616", "0.45610154", "0.4553026", "0.4547275", "0.45331863", "0.45331863", "0.44491473", "0.44264188", "0.44227144", "0.44219252", "0.441836", "0.44152093", "0.4401213", "0.43933272", "0.43899035", "0.43751928", "0.4371732", "0.43656155", "0.43517387", "0.4347437", "0.43428344", "0.43427345", "0.43427345", "0.4339368", "0.43370813", "0.43301666", "0.43301666", "0.43249723", "0.43219036", "0.43033502", "0.42974257", "0.42963547", "0.42942637", "0.4293534", "0.42865136", "0.42845148", "0.4268561", "0.42675662", "0.42625773", "0.42584655", "0.42463946", "0.42435935", "0.42420444", "0.42413354", "0.4231936", "0.42303368", "0.42252007", "0.42249376", "0.42234725", "0.42128724", "0.41766044", "0.41751748", "0.41732028", "0.4173002", "0.4167452", "0.41628113", "0.41610044", "0.415409", "0.41456592" ]
0.55130315
5
for two int inputs, we will only have 2 cases that cause overflow 1) divisor = 0 2)dividend is int_min, but divisor = 1
public int divide(int dividend, int divisor) { if(divisor == 0 || (dividend == Integer.MIN_VALUE && divisor == -1)) return Integer.MAX_VALUE; //use XOR to get sign value. If both neg or pos, neg will be false, otherwise it will be true boolean neg = (dividend < 0) ^ (divisor <0); //to be clear with calculation, we will convert inputs to pos, but the built-in abs() will output the //same data type as the input, so, to avoid overflow, we will case input to long long abs_dividend = Math.abs( (long) dividend); long abs_divisor = Math.abs( (long) divisor); int result = 0; //Differed from general division, here each time we will try to increase the divisor by 2 times //where in general division, we can increase the divisor by 1 - 9 times. Then we will decrease //the dividend, and redo the operations while(abs_dividend >= abs_divisor){ //temp is the temp result from increase the divisor by 2 times long temp = abs_divisor, multiply = 1; //we will try to get the max value smaller than abs_dividend by increasing temp 2 times each time while(abs_dividend >= (temp <<1)){ temp <<= 1; multiply <<= 1; } abs_dividend -= temp; result += multiply; } return neg? -result : result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int divide_naive(int dividend, int divisor) {\n \tboolean flag = ((new Long(dividend)>0) && (new Long(divisor)>0)) || ((new Long(dividend)<0) && (new Long(divisor)<0)) ? true : false;\n// \tSystem.out.println(\"flag=\"+flag);\n \tlong r = 0;\n \tlong dividend_abs = Math.abs(new Long(dividend));\n// \tSystem.out.println(\"dividend_abs=\"+dividend_abs);\n \tlong divisor_abs = Math.abs(new Long(divisor));\n \twhile(dividend_abs>=divisor_abs) {\n \t\tdividend_abs-=divisor_abs;\n \t\t++r;\n \t}\n// \tSystem.out.println(\"r=\"+r);\n \tif (r>Integer.MAX_VALUE || r<Integer.MIN_VALUE)\n \t\tr = Integer.MAX_VALUE;\n \treturn flag?new Long(r).intValue():-new Long(r).intValue();\n }", "public int divide(int dividend, int divisor) {\n\t\tif(divisor == Integer.MIN_VALUE) {\n\t\t\tif(dividend == Integer.MIN_VALUE) return 1;\n\t\t\telse return 0;\n\t\t}\n\t\tboolean neg = (dividend < 0) ^ (divisor < 0), minVal = false;\n\t\tif(dividend < 0) {\n\t\t\tif(dividend == Integer.MIN_VALUE){\n\t\t\t\tminVal = true;\n\t\t\t\tdividend++;\n\t\t\t}\n\t\t\tdividend = -dividend;\n\t\t}\n\t\tif(divisor < 0) divisor = -divisor;\n\t\tint temp = divisor, exp = 1, ans = 0;\n\t\t\n\t\twhile(temp <= dividend / 2){\n\t\t\ttemp = temp << 1;\n\t\t\texp = exp << 1;\t\n\t\t}\n\t\t\n\t\twhile(exp > 0){\n\t\t\tif(dividend >= temp){\n\t\t\t\tans += exp;\n\t\t\t\tdividend -= temp;\n\t\t\t}\n\t\t\ttemp = temp >> 1;\n\t\t\texp = exp >> 1;\n\t\t}\n\t\t\n\t\tif(minVal && dividend + 1 >= divisor) ans++;\n\t\t\n\t\tif(neg) return -ans;\n\t\telse return ans;\n\t}", "public int divide(int dividend, int divisor) {\n long a=Math.abs((long )dividend);\n long b=Math.abs((long )divisor);\n boolean negative=false; \n if(dividend<0) negative=!negative; \n if(divisor<0) negative=!negative; \n int result=0;\n while(a>=b)\n {\n long c=b; \n for(int i=0; a>=c ; i++, c<<=1 )\n {\n a-=c; \n result+=1<<i;\n }\n }\n return negative? -result: result; \n }", "public int divide(int dividend, int divisor) {\n if (divisor == 0) {\n return Integer.MAX_VALUE;\n }\n if (divisor == -1 && dividend == Integer.MIN_VALUE) {\n return Integer.MAX_VALUE;\n }\n\n long pDividend = Math.abs(dividend);\n long pDivisor = Math.abs(divisor);\n\n int result = 0;\n\n while (pDividend >= pDivisor) {\n int numShift = 0;\n while (pDividend >= (pDivisor << numShift)) {\n numShift++;\n }\n result += 1<<(numShift-1);\n pDividend -= pDivisor<<(numShift-1);\n }\n\n if ((dividend > 0 && divisor > 0) || (dividend < 0 || divisor < 0)) {\n return result;\n }\n return -result;\n }", "public static int findSmallestMultiple(int dividend, int divisor)\n {\n float temp = ((float) dividend / (float) divisor) + (float) 0.5;\n return Math.round(temp) * divisor;\n\n }", "@Override\n\tpublic int div(int val1, int val2) throws ZeroDiv {\n\t\tif (val2 == 0){\n\t\t\tZeroDiv e = new ZeroDiv(\"probleme\");\n\t\t\tthrow e;\n\t\t}\n\t\telse\n\t\t\treturn val1/val2;\n\t}", "public static int divide(int dividend, int divisor) {\n\t\tint result = 0;\n\t\tboolean sign = true;\n\t\tif ((dividend < 0 && divisor > 0) || (dividend > 0 && divisor < 0)) {\n\t\t\tsign = false;\n\t\t}\n\t\t/*\n\t\t * long a = dividend; long b = divisor; if (a < 0) a = -a; if (b < 0) b\n\t\t * = -b;\n\t\t */\n\t\tlong a = Math.abs((long)dividend);\n\t\tlong b = Math.abs((long)divisor);\n\t\t// divisor multiply.\n\t\twhile (a >= b) {\n\t\t\tint mult = 1;\n\t\t\tlong temp = b;\n\t\t\twhile (a >= temp) {\n\t\t\t\ta -= temp;\n\t\t\t\tresult += mult;\n\t\t\t\ttemp += temp;\n\t\t\t\tmult += mult;\n\t\t\t}\n\t\t}\n\t\tif (!sign) {\n\t\t\treturn -result;\n\t\t} else {\n\t\t\treturn result;\n\t\t}\n\t}", "public static int greatestCommonDivisor(int inputOne, int inputTwo)\n {\n inputOne = Math.abs(inputOne);\t\t\n inputTwo = Math.abs(inputTwo);\t\t\n \t\t\n int smaller = Math.min(inputOne, inputTwo);\t\t\n int greatestCommonDivisor = 1;\n \t\t\n for (int index = 1; index <= smaller; index++)\t\n \tif ((inputOne % index) == 0 && (inputTwo % index) == 0)\n \t\tgreatestCommonDivisor = index;\n return greatestCommonDivisor;\t\t\n }", "public static void calcIntegersDivBy()\r\n\t{\r\n\t\tint x = 5;\r\n\t\tint y = 20;\r\n\t\tint p = 3;\r\n\t\tint result = 0;\r\n\t\tif (x % p == 0)\r\n\t\t\tresult = (y / p - x / p + 1);\r\n\t\telse\r\n\t\t\tresult = (y / p - x / p);\r\n\t\tSystem.out.println(result);\r\n\t}", "@Override\n public IntType divideToInt(IntType dividend) {\n int intDivisor = this.asInt().getValue();\n int intDividend = dividend.getValue();\n return TypeFactory.getIntType(intDividend / intDivisor);\n }", "public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to divide:\");\n int v_div_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to divide:\");\n int v_div_number_2 = keyboard.nextInt();\n int v_total_div= v_div_number_1/v_div_number_2;\n return v_total_div;\n }", "private long maxDivide(long a, long b) {\n\t\twhile (a % b == 0) {\n\t\t\ta = a / b;\n\t\t}\n\t\treturn a;\n\t}", "int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}", "private static BigInteger divideAndRound(BigInteger a, BigInteger b) {\r\n BigInteger result = a.divide(b);\r\n //Case 1: Integer part of the quotient is positive, a%b*2>=b, then the float part of the quotient>=.5, therefore add 1 to quotient\r\n if(result.signum()>0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)>=0)\r\n result = result.add(BigInteger.ONE);\r\n //Case 2: Integer part of the quotient is negative, a%b*2<=b but a%b<>0 , \r\n //then the float part of the quotient<=-0.5, therefore subtract 1 from quotient\r\n else if(result.signum()<0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)<=0 && !a.mod(b).equals(BigInteger.ZERO))\r\n result = result.subtract(BigInteger.ONE);\r\n //Case 3: Integer part of the quotient is zero then two cases arise: a>0 or a<0\r\n else if(result.signum()==0)\r\n { \r\n //Case 1.1: a>0.5 then result=1\r\n if(a.compareTo(BigInteger.ZERO)>0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)>=0)\r\n result = BigInteger.ONE;\r\n //Case 1.1: a<-0.5 then result=-1\r\n else if(a.compareTo(BigInteger.ZERO)<0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)<=0)\r\n result = BigInteger.ZERO.subtract(BigInteger.ONE); //-1 :)\r\n }\r\n return result;\r\n }", "private void reduce()\r\n {\r\n int lowest, highest, temp;\r\n if(Math.abs(numerator) >= Math.abs(denominator))\r\n { \r\n lowest = Math.abs(denominator);\r\n highest = Math.abs(numerator);\r\n }\r\n else\r\n {\r\n lowest = Math.abs(numerator);\r\n highest = Math.abs(denominator);\r\n }\r\n while(lowest != 0)\r\n {\r\n temp = lowest;\r\n lowest = highest % lowest;\r\n highest = temp;\r\n } \r\n numerator = numerator / highest;\r\n denominator = denominator / highest; \r\n \r\n if(denominator < 0)\r\n {\r\n numerator = numerator * (-1);\r\n denominator = denominator * (-1); \r\n } \r\n }", "public void divider(int start_value, int end_value) {\n\t\t// Divide until undividable\n if (start_value < end_value && (end_value - start_value) >= 1) {\n int middle_value = (end_value + start_value) / 2;\n divider(start_value, middle_value);\n divider(middle_value + 1, end_value); \n \n merger(start_value, middle_value, end_value); \n } \n }", "public int dividir(int a, int b) throws ExececaoCalculo{\n \n if(b==0){\n //ExececaoCalculo é uma class que esta nesse pacote atual\n throw new ExececaoCalculo(a, b);\n }\n return a/b;\n }", "private static int wrap(int a, int b)\n {\n return (a < 0) ? (a % b + b) : (a % b);\n }", "public static long unsignedDiv( long dividend, long divisor ) {\r\n if ( divisor < 0 ) { // i.e., divisor >= 2^63:\r\n if ( compare( dividend, divisor ) < 0 ) {\r\n return 0; // dividend < divisor\r\n } else {\r\n return 1; // dividend >= divisor\r\n }\r\n }\r\n\r\n // Optimization - use signed division if dividend < 2^63\r\n if ( dividend >= 0 ) {\r\n return dividend / divisor;\r\n }\r\n\r\n /*\r\n * Otherwise, approximate the quotient, check, and correct if necessary. Our approximation is\r\n * guaranteed to be either exact or one less than the correct value. This follows from fact\r\n * that floor(floor(x)/i) == floor(x/i) for any real x and integer i != 0. The proof is not\r\n * quite trivial.\r\n */\r\n long quotient = ((dividend >>> 1) / divisor) << 1;\r\n long rem = dividend - quotient * divisor;\r\n return quotient + (compare( rem, divisor ) >= 0 ? 1 : 0);\r\n }", "private static int gcd (int a, int b) {\n int m = Math.max (Math.abs (a), Math.abs (b));\n if (m == 0) throw new ArithmeticException (\" zero in gcd \");\n int n = Math.min (Math.abs (a), Math.abs (b));\n while (n > 0) {\n a = m % n;\n m = n;\n n = a;\n }\n return m;\n }", "static int min(int a, int b) {\n return Math.min(a, b);\n }", "public int gcd(){\n\tint min;\n\tint max;\n\tint stor;\n\tif ((numerator == 0) || (denominator == 0)){\n\t return 0;\n\t}\n\telse {\n\t if ( numerator >= denominator ) {\n\t\tmax = numerator;\n\t\tmin = denominator;\n\t }\n\t else {\n\t\tmax = denominator;\n\t\tmin = numerator;\n\t }\n\t while (min != 0){\n\t stor = min;\n\t\tmin = max % min;\n\t\tmax = stor;\n\t }\n\t return max;\n\t}\n }", "public static long mod(int dividend, int divisor) {\r\n\t\tif(dividend < divisor) return dividend;\r\n\t\tif(dividend == divisor) return 0; \r\n\t\tif(divisor == 1) return dividend;\r\n\t\t\r\n\t\treturn mod(dividend - divisor, divisor); \r\n\t}", "static int gcd(int a, int b) {\r\n\t\tif (b == 0)\r\n\t\t\treturn a;\r\n\t\treturn gcd(b, a % b);\r\n\t}", "static int min(int a, int b) { return a < b ? a : b; }", "@Override\r\n\tpublic int umul(int a,int b) {\n\t\treturn a/b;\r\n\t}", "public int division(int a, int b) {\n return a / b;\n }", "private static int gcd(int a, int b) {\n\t\tif(a==0){\n\t\t\treturn b;\n\t\t}\n\t\treturn gcd(b%a,a);\n\t}", "static int valDiv2 (){\n return val/2;\n }", "public static int ceilDiv(int dividend, int divisor)\n {\n return (dividend + divisor - 1) / divisor;\n }", "public static int reduceNumerator(int numerator, int denominator) {\n int start;\n int greatestCommonFactor = 1;\n if (numerator > denominator) {\n start = numerator;\n } else {\n start = denominator;\n }\n if (start != 0) {\n while (greatestCommonFactor != start) {\n if (numerator % start == 0 && denominator % start == 0) {\n greatestCommonFactor = start;\n start++;\n }\n start--;\n }\n }\n return numerator / greatestCommonFactor;\n }", "public static int LCM(int a, int b){\r\n int lowest = a * b / GCD(a,b);\r\n //System.out.print(lowest);\r\n return lowest;\r\n }", "public int getGreatestCommonDivisor(int first, int second) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tint GCD = 0;\n\t\tboolean found = false;\n\t\tArrayList<Integer> firstDivisor = new ArrayList<Integer>();\n\t\tArrayList<Integer> secondDivisor = new ArrayList<Integer>();\n\t\tif(first < 10 || second < 10) {\n\t\t\tGCD = -1;\n\t\t}\n\t\telse {\n\t\t\tfor(int i = 1; i <= first; i++) {\n\t\t\t\tif(first % i == 0) {\n\t\t\t\t\tfirstDivisor.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i <= second; i++) {\n\t\t\t\tif(second % i ==0) {\n\t\t\t\t\tsecondDivisor.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tfor(Integer i: firstDivisor) {\n//\t\t\t\tSystem.out.println(i);\n//\t\t\t}\n//\t\t\tfor(Integer i: secondDivisor) {\n//\t\t\t\tSystem.out.println(i);\n//\t\t\t}\n\t\t\t\n\t\t\tif(firstDivisor.size() >= secondDivisor.size()) {\n\t\t\t\tGCD = firstDivisor.get(0);\n\t\t\t\tfor(int i =0; i < firstDivisor.size(); i++) {\n\t\t\t\t\tfor(int j =0; j < secondDivisor.size(); j++) {\n\t\t\t\t\t\tif(secondDivisor.get(j)==firstDivisor.get(i)) {\n\t\t\t\t\t\t\tfound = true;\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\tif(found == true) {\n\t\t\t\t\t\tif(firstDivisor.get(i) >= GCD) {\n\t\t\t\t\t\t\tGCD = firstDivisor.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfound = false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(secondDivisor.size() >= firstDivisor.size()) {\n\t\t\t\tGCD = secondDivisor.get(0);\n\t\t\t\tfor(int i =0; i < secondDivisor.size(); i++) {\n\t\t\t\t\tfor(int j =0; j < firstDivisor.size(); j++) {\n\t\t\t\t\t\tif(firstDivisor.get(j)==secondDivisor.get(i)) {\n\t\t\t\t\t\t\tfound = true;\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\tif(found == true) {\n\t\t\t\t\t\tif(secondDivisor.get(i) >= GCD) {\n\t\t\t\t\t\t\tGCD = secondDivisor.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfound = false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t//System.out.println(GCD);\n\t\treturn GCD;\n\t}", "public static int findGCD(int int1, int int2) {\n\t\tint gcd = 1;\n\t\t\n\t\tfor (int i = 2; i <= int1 && i <= int2; i++) {\n\t\t\tif (int1 % i == 0 && int2 % i == 0)\n\t\t\t\tgcd = i;\n\t\t}\n\t\t\n\t\treturn gcd;\n\t}", "private RunGreatestCommonDivisor() {\r\n\t}", "private static int cprModFunction(int a, int b) {\n\t\tint res = a % b;\n\t\tif (res < 0)\n\t\t\tres += b;\n\t\treturn res;\n\t}", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }", "public int Div(int num){\n\tint count01 ;\n\tint count02 ;\n\tint aux03 ;\n\n\tcount01 = 0 ;\n\tcount02 = 0 ;\n\taux03 = num - 1 ;\n\twhile (count02 < aux03) {\n\t count01 = count01 + 1 ;\n\t count02 = count02 + 2 ;\n\t}\n\treturn count01 ;\t\n }" ]
[ "0.676372", "0.67384076", "0.66657513", "0.65878135", "0.651105", "0.62523687", "0.622525", "0.6159211", "0.6139232", "0.61365676", "0.59988093", "0.5964619", "0.5934702", "0.58814937", "0.5832136", "0.58227444", "0.5771264", "0.57417095", "0.57185054", "0.571816", "0.57099736", "0.57034254", "0.5698851", "0.5655942", "0.5627198", "0.5621533", "0.56211346", "0.55973935", "0.559605", "0.55949956", "0.55869883", "0.5568825", "0.5566859", "0.5557399", "0.5544405", "0.5526571", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526436", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285", "0.5526285" ]
0.6786031
0
We do a containsKey here so that we can negativecache nulls.
@Override @Nullable public Column findColumn(String name) { if (columnCache.containsKey(name)) { return columnCache.get(name); } else { final Column column = rac.findColumn(name); if (column == null) { columnCache.put(name, null); return null; } final ColumnAccessor accessor = column.toAccessor(); return new ColumnAccessorBasedColumn( new ColumnAccessor() { @Override public ColumnType getType() { return accessor.getType(); } @Override public int numRows() { return end - start; } @Override public boolean isNull(int rowNum) { return accessor.isNull(pointers[start + rowNum]); } @Nullable @Override public Object getObject(int rowNum) { return accessor.getObject(pointers[start + rowNum]); } @Override public double getDouble(int rowNum) { return accessor.getDouble(pointers[start + rowNum]); } @Override public float getFloat(int rowNum) { return accessor.getFloat(pointers[start + rowNum]); } @Override public long getLong(int rowNum) { return accessor.getLong(pointers[start + rowNum]); } @Override public int getInt(int rowNum) { return accessor.getInt(pointers[start + rowNum]); } @Override public int compareRows(int lhsRowNum, int rhsRowNum) { return accessor.compareRows(pointers[lhsRowNum], pointers[start + rhsRowNum]); } } ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic boolean containsKey(Object key) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\tpublic boolean contains(K key) {\n\t\treturn false;\n\t}", "boolean containsKey(Object key) throws NullPointerException;", "@Test\n public void testCoh3710_keySetContains()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().contains(Integer.valueOf(1)));\n validateIndex(cache);\n }\n });\n }", "@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn false;\n\t}", "public boolean containsKey(Key key) ;", "public boolean contains(Key key);", "@Override\n public boolean containsKey(K key) {\n int index = Math.floorMod(key.hashCode(), entryArr.length);\n if(entryArr[index] == null) {\n return false;\n }\n for(Entry<K, V> entry: entryArr[index]) {\n if(entry.keyEquals(new Entry<K, V>(key, null))) {\n return true;\n }\n }\n return false;\n }", "@Override\r\n\tpublic boolean containsKey(Object key) {\r\n\t\tif (key == null) throw new NullPointerException();\r\n\t\treturn get(key) != null;\r\n\t}", "@Override\n public synchronized boolean containsKey(Object key) {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n if (this.ignoreCase) {\n return this.keyMap.containsKey(key.toString().toLowerCase());\n }\n return super.containsKey(key.toString());\n }", "@Override\n\t\t\tpublic boolean contains(String key) {\n\t\t\t\treturn false;\n\t\t\t}", "@Test\n public void testCoh3710_containsKey()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsKey(Integer.valueOf(1)));\n }\n });\n }", "public abstract boolean containsKey(K key);", "@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn map.containsKey(key);\n\t}", "boolean containsKeyLocalOffHeap(Object key);", "@Override\n public boolean containsKey(Object key) {\n return entries.containsKey(key);\n }", "@Override\n\tpublic boolean containsKey(Key k) {\n\t\treturn bst.has(k);\n\t}", "public boolean contains(K key){\r\n int loc = find(key);\r\n if((hashTable[loc]!= null) && hashTable[loc].equals(key))\r\n return true;\r\n else\r\n return false;\r\n }", "boolean containsKeyLocalOnHeap(Object key);", "@Override\n public boolean containsKey(Object key) {\n LinkedList<Entry> tempBucket = chooseBucket(key);\n \n for(int i=0;i<tempBucket.size();i++) {\n \t\tEntry tempEntry = tempBucket.get(i);\n \t\t\n \t\tif(tempEntry.getKey() == key) {\n \t\t\treturn true;\n \t\t}\n \t}\n \n return false;\n }", "public boolean containsKey(Object key) {\n\t\treturn false;\r\n\t}", "public native Boolean has(K key);", "public boolean contains(String key)\r\n { return get(key) != null; }", "boolean containsKey(long key);", "@Deprecated\n/* */ default boolean contains(Object key) {\n/* 86 */ if (key == null)\n/* 87 */ return false; \n/* 88 */ return contains(((Long)key).longValue());\n/* */ }", "@Override\n public boolean containsKey(Object key) {\n String fieldName = key.toString();\n ScriptDocValues<?> scriptValues = localCacheFieldData.get(fieldName);\n if (scriptValues == null) {\n MappedFieldType fieldType = mapperService.fieldType(fieldName);\n if (fieldType == null) {\n return false;\n }\n }\n return true;\n }", "@Override\n public boolean isKeyPresent(K key){\n return (this.cache.get(key) != null);\n }", "public boolean contains(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\treturn (entries[n] == null) ? false : entries[n].contains(new Entry(key, null));\n\t}", "public abstract boolean lookup(Key key);", "private boolean containsKeyHelper(Node n, K key) {\n // base case\n if (n == null) {\n return false;\n }\n\n int compareResult = key.compareTo(n.key);\n if (compareResult == 0) {\n return true;\n } else if (compareResult < 0) {\n return containsKeyHelper(n.leftChild, key);\n } else {\n return containsKeyHelper(n.rightChild, key);\n }\n }", "public boolean contains(K key);", "public boolean containsKey(K key) {\r\n\t\tif (get(key) == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean containsKey(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return false;\n }\n for (Entry<K,V> entry : table[index]) {\n if (entry.getKey().equals(key)) {\n return true;\n }\n }\n return false;\n }", "@Override\n public boolean containsKey(K key) {\n return containsKeyHelper(root, key);\n }", "public boolean containsKey(Object key)\r\n/* 386: */ {\r\n/* 387:556 */ return this.headers.containsKey(key);\r\n/* 388: */ }", "@Override\n\tpublic boolean contains(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public Boolean exists(Key<?> key)\n {\n return session.getCache().contains(key) || queryCache.exists(key);\n }", "boolean isKeyInCache(Object key);", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean containsKey(int key) throws ContentStoreException;", "@Test\n public void testContainsKey() {\n System.out.println(\"containsKey\");\n \n // GIVEN\n SimpleStyleableMap instance = new SimpleStyleableMap();\n \n // WHEN getOrDefault and no value has been put\n Object key = \"dummyKey\";\n boolean result = instance.containsKey(key);\n \n // THEN must return false\n assertEquals(false, result);\n \n // WHEN getOrDefault and a value has been put\n Object putValue=\"putValue\";\n instance.put(key, putValue );\n result = instance.containsKey(key);\n \n // THEN must returnt rue\n assertEquals(true, result);\n \n // WHEN key is removed\n instance.remove(key);\n result = instance.containsKey(key);\n // THEN must return default value\n assertEquals(false, result);\n }", "@Test\n public void testCoh3710_keySetContainsAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().containsAll(\n Collections.singleton(Integer.valueOf(1))));\n validateIndex(cache);\n }\n });\n }", "public boolean contains(Key key) {\n return get(key) != null;\n }", "public boolean containsKey(K key)\r\n\t{\r\n\t\treturn data.contains(new Entry(key,null));\r\n\t}", "public boolean contains(Key key) {\n\t\treturn get(key) != null;\n\t}", "private boolean contains(TreeNode t, T key) {\n\t\tif (t == null) {\n\t\t\treturn false;\n\t\t} else if (t.myItem.compareTo(key) == 0) {\n\t\t\treturn true;\n\t\t} else if (t.myItem.compareTo(key) > 0) {\n\t\t\treturn contains(t.myLeft, key);\n\t\t} else {\n\t\t\treturn contains(t.myRight, key);\n\t\t}\n\t}", "@Override\n public boolean containsKey(K key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to containsKey() is null\");\n }\n return get(key) != null;\n }", "private V isertNullKey(K key, V value) {\n return value;\n }", "public boolean containsKey(Object key)\n {\n // check if the cache needs flushing\n checkFlush();\n\n return getEntryInternal(key) != null;\n }", "public boolean contains(Key key) {\n return auxContains(root, key);\n }", "@Override\n public boolean containsKey(K key) {\n readLock.lock();\n \n try {\n //不存在或已移除\n final CacheObj<K, V> co = cacheMap.get(key);\n if (co == null) {\n return false;\n }\n \n //过期\n if (co.isExpired()) {\n // remove(key); // 此方法无法获得锁\n removeWithoutLock(key);\n missCount++;\n return false;\n }\n \n //命中\n return true;\n } finally {\n readLock.unlock();\n }\n }", "@Override\r\n\tpublic boolean exists(T key) {\r\n\t\treturn existsRec(raiz, key);\r\n\t}", "@Override\n\tpublic boolean contains(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key))\n\t\t\t\treturn true;\n\t\t\telse {\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean containsKey(Comparable key) { return this.store.containsKey(key); }", "@Override\n public boolean contains(Object item) {\n if (item == null)\n return false;\n return map.containsKey(item);\n }", "public boolean existsKey(String inKey);", "public boolean containsKey(K key) {\n synchronized(theLock) {\n return valueMap.containsKey(key) && ! isExpired(valueMap.get(key)); \n }\n }", "boolean contains(KeyType key);", "public boolean containsKey(DNA key){\n Node actual_node = this.getReference(key);\n\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> buscando cadena: \" + key.toString() + \", hashCode: \" + key.hashCode());\n\n int reference_page = actual_node.getReference(), hash = key.hashCode();\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n\n boolean res = false;\n\n while(true) {\n int cant = content.get(0);\n\n for(int i=1; i<=cant; i++) {\n if(content.get(i) == hash) {\n res = true;\n }\n }\n\n if(res)\n break;\n\n if(content.size() != B)\n break;\n\n reference_page = content.get(B-1);\n content = this.fm.read(reference_page); this.in_counter++;\n\n }\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> cadena encontrada: \" + res);\n\n return res;\n }", "@Override\n public boolean contains(Object o) {\n return map.containsKey(o);\n }", "public boolean inCache(String key);", "public boolean contains( T key )\n {\n if (key == null) return false;\n for ( int i=0 ; i < size() ; ++i )\n if ( get(i).equals( key ) ) \n return true;\n \n return false;\n }", "public boolean containsKey(int key) {\n return getElement(key) != null;\n }", "public boolean containsKey(TKey key) {\n return !(bstFind(key, mRoot) == null);\n }", "boolean containsInfo(\n int key);", "public boolean contains (String key)\n {\n use (key);\n return map.containsKey (key);\n }", "@Override\r\n\tpublic boolean CXT_containsKey(String jsk)\r\n\t{\n\t\treturn false;\r\n\t}", "public boolean hasKey() {\n return key_ != null;\n }", "@Override\r\n public boolean containsKey(KeyType key) {\r\n\r\n int index = Math.abs(key.hashCode()) % this.capacity;\r\n\r\n // if the index is within the array of linked lists, the array of linked lists exists, and there\r\n // is a Linked list object at the specified index\r\n if (index < this.capacity && index >= 0 && array[index] != null && array != null) {\r\n\r\n \r\n for (int i = 0; i < array[index].size(); i++) {\r\n\r\n\r\n if (array[index].get(i).getTitle().equals(key)) {\r\n \r\n return true;\r\n \r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n return false;\r\n }", "public boolean containsKey(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\tfor(MyEntry i:table[bucket]) {\n\t if(i.key.equals(key)) {\n\t\treturn true;\n\t }\n\t}\n\treturn false;\n }", "boolean containsKey(CoreLabel key);", "public boolean containsKey(int key) {\r\n\t\ttry {\r\n\t\t\tthis.hashlock.readLock().lock();\r\n\t\t\tint index = index(key);\r\n\t\t\tif (index >= 0) {\r\n\t\t\t\tint pos = (index / FREE.length);\r\n\t\t\t\tthis.claims.position(pos);\r\n\t\t\t\tthis.claims.put((byte) 1);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t} catch (Exception e) {\r\n\t\t\tSDFSLogger.getLog().fatal(\"error getting record\", e);\r\n\t\t\treturn false;\r\n\t\t} finally {\r\n\t\t\tthis.hashlock.readLock().unlock();\r\n\t\t}\r\n\t}", "public boolean contains(int key) {\n int hash1 = key % buckets;\n int hash2 = key / buckets;\n if(arr[hash1] == null)\n return false;\n return arr[hash1][hash2];\n }", "boolean hasKey(String collection, String hkey);", "@Override\n public boolean contains(String key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to contains() is null\");\n }\n return get(root, key, 0) != null;\n }", "boolean containsKey(K key);", "boolean containsKey(K key);", "public boolean contains(long key){\n for (int i = 0; i < numKeys; i++){\n if (keys[i].key == key){\n return true;\n }\n }\n return false;\n }", "@Override\r\n public boolean containsKey(KeyType key) {\r\n // if capacity is 0, return false\r\n if (capacity == 0) {\r\n return false;\r\n }\r\n\r\n int index = hashFunction(key); // the index of the pair in the hashTable\r\n\r\n // If the linked list at the index is null, target is not exist\r\n if (hashTable[index] == null) {\r\n return false;\r\n }\r\n\r\n // Find the key in the linked list. If found, return true. Otherwise return false.\r\n for (HashNode node : hashTable[index]) {\r\n if (node.key.equals(key)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean containsKey(K key) {\n\t\t\n\t\t\n\t\treturn keySet.contains(key);\n }", "public boolean containsKey(String s){\r\n return this.get(s) != 0;\r\n }", "@Test\n public void testCoh3710_containsValue()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsValue(Integer.valueOf(1)));\n }\n });\n }", "public boolean containsKey(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n Node targetNode = data[hash];\r\n while (targetNode != null) {\r\n if (targetNode.key == key || targetNode.key.equals(key)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n return false;\r\n }", "@Request(id = 6, retryable = true, response = ResponseMessageConst.BOOLEAN)\n Object containsKey(String name, Data key);", "public boolean containsKey(K key) {\n int keyBucket = hash(key);\n \n HashMapEntry<K, V> temp = table[keyBucket];\n while (temp != null) {\n if ((temp.key == null && key == null) \n || (temp.key != null && temp.key.equals(key))) {\n return true;\n }\n temp = temp.next;\n }\n \n return false;\n }", "public boolean containsKey(String key) {\n if (!index.containsKey(key)) return false;\n else if (index.get(key).isEmpty()) return false;\n else return true;\n }", "public boolean containsKey(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean contains(Object o) {\n return theMap.keySet().contains(o);\n }", "public boolean contains(String key);", "public boolean contains(IdKey idKey) {\n return this.idKey.equals(idKey);\n }", "public boolean contains(String key){\r\n\t\treturn get(key) != null;\r\n\t}", "public boolean contains(int key) {\n int index1 = hashfunc1(key);\n int index2 = hashfunc2(key);\n \n if(hset[index1] != null){\n return hset[index1][index2];\n }\n return false; \n }", "@Override\n public synchronized Object get(Object key) {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n String strkey = key.toString();\n if (this.ignoreCase) {\n strkey = this.keyMap.getProperty(strkey.toLowerCase());\n if (strkey == null)\n return null;\n }\n return super.get(strkey);\n }", "public boolean containsKey(String key);", "boolean containsKey(DocumentKey key) {\n DocumentReference reference = new DocumentReference(key, 0);\n\n Iterator<DocumentReference> iterator = batchesByDocumentKey.iteratorFrom(reference);\n if (!iterator.hasNext()) {\n return false;\n }\n\n DocumentKey firstKey = iterator.next().getKey();\n return firstKey.equals(key);\n }", "protected boolean evictAndReplace(String key) throws KeyDoesntExistException, Exception {\n \tif (map.containsKey(key)) {\n \t\treturn false; // already in cache so already primed and ready to go; false means update\n \t} else {\n \t\t// If above capacity (incl inserted key), evict LFU:\n\t\t\tif (map.size() + 1 >= capacity) {\n\t\t\t\t// TODO O(n) search for LFU - can easily make more efficient!\n \t\t\tString lfuKey = null;\n \t\t\tInteger lfuCnt = null;\n \t\t\tIterator<String> it = map.keySet().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tString k = it.next();\n \t\t\t\tInteger c = usageCounter.get(k);\n \t\t\t\tif (lfuCnt == null || c < lfuCnt ) {\n \t\t\t\t\tlfuKey = k;\n \t\t\t\t\tlfuCnt = c;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (lfuKey != null) {\n \t\t\t\tevict(lfuKey);\n \t\t\t}\n\t\t\t}\n \t\t\n \t\tif (kvdb.inStorage(key)) { \t\t\t\t// storage hit\n \t\t\tString value = kvdb.get(key);\n \t\t\tmap.put(key, value);\n \t\t\tusageCounter.put(key, 0);\n \t\t\treturn false; // update\n \t\t} else {\t\t\t\t\t\t\t\t// storage miss\n \t\t\t// Create placeholder\n \t\t\tmap.put(key, \"\");\n \t\t\tusageCounter.put(key, 0);\n \t\t\treturn true; // insert\n \t\t}\n \t}\n }" ]
[ "0.7227085", "0.7151079", "0.71463877", "0.71117616", "0.71094686", "0.7020194", "0.69895416", "0.68890566", "0.68469304", "0.67217314", "0.6655512", "0.66554236", "0.6627477", "0.6558815", "0.65300524", "0.6526208", "0.65186113", "0.651477", "0.65095735", "0.6491576", "0.6471828", "0.644295", "0.6439498", "0.6427286", "0.64189976", "0.64061207", "0.6402456", "0.63695586", "0.6367454", "0.636181", "0.6305757", "0.6295913", "0.62912375", "0.6290923", "0.62838393", "0.62718785", "0.62687266", "0.62662417", "0.6248751", "0.6247781", "0.6247781", "0.6247781", "0.6247781", "0.6247781", "0.62388366", "0.6226036", "0.6218707", "0.62182987", "0.62071323", "0.61945075", "0.6191971", "0.6182418", "0.6171605", "0.6165963", "0.61638397", "0.61614895", "0.61539525", "0.61538506", "0.6153188", "0.61249584", "0.6119689", "0.6107444", "0.6094233", "0.60917765", "0.60916084", "0.60902494", "0.6090245", "0.6088018", "0.60739416", "0.6073348", "0.6059601", "0.60501724", "0.6044404", "0.60375124", "0.6025645", "0.60145307", "0.60064006", "0.60022736", "0.60010535", "0.6000771", "0.59974205", "0.59974205", "0.59736526", "0.59723186", "0.5967311", "0.5959106", "0.5954611", "0.59491545", "0.59488165", "0.59472764", "0.59366935", "0.59282875", "0.5903714", "0.59003127", "0.5895488", "0.5884401", "0.58762264", "0.58733547", "0.58709365", "0.58644456", "0.58552426" ]
0.0
-1
index of last string in array
public ArrayStringLog(String name, int maxSize) // Precondition: maxSize > 0 // // Instantiates and returns a reference to an empty ArrayStringLog // object with name "name" and room for maxSize strings. { log = new String[maxSize]; this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int lastIndexOf(Object elem, int index);", "public abstract int lastIndexOf(E e);", "public int lastIndexOf(Object elem);", "public int lastIndexOf(String str) {\n/* 590 */ return this.m_str.lastIndexOf(str);\n/* */ }", "public int lastIndexOf(String str)\n\t{\n\t\tint indexOf = recursiveLastIndexOf(firstC, length, 0, -1, str);\n\t\treturn indexOf;\n\t}", "public int lastIndexOf(Object arg0) {\n\t\treturn 0;\n\t}", "private int findIndexOfLastWord (ArrayList<String> parameters) {\n int indexOfLastWord = -1;\n for (int i = 0; i < parameters.size(); i++) {\n if (parameters.get(i).contains(\".\")) {\n indexOfLastWord = i;\n } \n }\n return indexOfLastWord;\n }", "protected int lastIdx() {\n return arrayIndex(currentWindowIndex() - 1);\n }", "@Override\n public int lastIndexOf(Object o) {\n for (int i = size - 1; i >= 0; i++) {\n if (o.equals(data[i])) {\n return i;\n }\n }\n return -1;\n }", "public int lastIndexOf(int ch) {\n/* 464 */ return this.m_str.lastIndexOf(ch);\n/* */ }", "public int getLastIndex() {\n return lastIndex;\n }", "@Override\n\tpublic int lastIndexOf(Object o) {\n\t\treturn 0;\n\t}", "public int lastIndexOf(Object o) {\n\t\tfor (int i = size - 1; i >= 0; i--) {\n\t\t\t// if o is null we check against null else use equals\n\t\t\tif (o == null ? array[i] == null : o.equals(array[i])) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "@Override\n\t\tpublic int lastIndexOf(Object o) {\n\t\t\treturn 0;\n\t\t}", "public int lastIndexOf(Object o) {\n int index = -1;\n for(int i = 0; i < size; i++) {\n if(list[i].equals(o)) index = i;\n }\n return index;\n }", "@Override\n public int lastIndexOf(Object o) {\n return indexOf(o);\n }", "@Test\r\n\tpublic void testLastIndexOf() {\r\n\t\tAssert.assertTrue(list.lastIndexOf(null) == -1);\r\n\t\tAssert.assertEquals(2, list.lastIndexOf(new Munitions(2, 3, \"iron\")));\r\n\t\tlist.add(new Munitions(2, 3, \"iron\"));\r\n\t\tAssert.assertEquals(15, list.lastIndexOf(new Munitions(2, 3, \"iron\")));\r\n\t}", "private static int findTheLastIndexInString(String s, char x){\n\n\t\tfor(int i=s.length()-1 ; i>=0; i--){\n\t\t\t\n\t\t\tif(s.charAt(i) == x)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}", "private static int getLastIndex(String[] source, int start, int howMany, int size) {\n for (int i = start; i < start + howMany; i++) {\n size += source[i].length() + 1; // +1 for omitted space\n }\n\n return size - 1; // -1 for last extra space\n }", "public static int lastIndexOf(char c, CharSequence seq) {\n int max = seq.length() - 1;\n for (int i = max; i >= 0; i--) {\n if (c == seq.charAt(i)) {\n return i;\n }\n }\n return -1;\n }", "public static String getLastWord(ArrayList<String> s) {\n int i = s.size();\n return s.get(i - 1);\n }", "public int lastIndexOfObject(Object obj);", "public int lastIndexOf(int number)\n\t{\n\t\tfor (int index = arraySize - 1; index >= 0; index--)\n\t\t{\n\t\t\tif (array[index] == number)\n\t\t\t{\n\t\t\t\treturn index;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int lastIndexOf(Object o) {\n\t\treturn getLastOccurrence(o).index;\n\t}", "@Override\n\tpublic int lastIndexOf(T searchItem) {\n\t\t// TODO Auto-generated method stub\n\t\tint result = -1;\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (searchItem.equals(data[i])) {\n\t\t\t\tresult = i;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public int findLast (int[] x, int y) \n {\n for (int i = x.length - 1; i >= 0; i--) \n {\n if (x[i] == y)\n {\n return i;\n }\n }\n return -1;\n }", "public int mo131899b(String str) {\n return super.lastIndexOf(str);\n }", "public int lastIndexOf(String str, int fromIndex) {\n/* 615 */ return this.m_str.lastIndexOf(str, fromIndex);\n/* */ }", "static int lastIndexOf(char[] source, int sourceOffset, int sourceCount, String target, int fromIndex) {\n\t\treturn lastIndexOf(source, sourceOffset, sourceCount, target.value, 0, target.value.length, fromIndex);\n\t}", "public int lastIndexOf(Fraction x)\r\n\t{\r\n\t\tfor(int i=n-1;i>=0;i--)\r\n\t\t\tif(x.gettu()==a[i].gettu() && x.getmau()==a[i].getmau())\r\n\t\t\t\treturn i;\r\n\t\treturn -1;\t\t\t\t\t\r\n\t}", "@Test\n public void testLastIndexOf() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n Integer arg = 7;\n\n int result = instance.lastIndexOf(arg);\n int expResult = 3;\n\n assertEquals(expResult, result);\n\n }", "public U getLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(numElems-1);\r\n\t }", "public int lastIndexOf(int ch, int fromIndex) {\n/* 492 */ return this.m_str.lastIndexOf(ch, fromIndex);\n/* */ }", "public int lastIndexOf(Object o) {\n\t\tint index = -1;\r\n\t\tfor(int i = 0; i < size; i++) {\r\n\t\t\tif(getNode(i).getData().equals(o))\r\n\t\t\t\tindex = i;\r\n\t\t} return index;\r\n\t}", "private int findEndIndex(){\n\t\tint end=models.size()-1;\n\t\tfor(int i=0;i<modelNames.size();i++){\n\t\t\tif(Integer.parseInt(modelNames.get(i).substring(0,8))>this.date_end)\n\t\t\t{end=i-1;break;}\n\t\t}\n\t\treturn end;\n\t}", "public int lastCharacter() {\n return string.codePointAt(string.length() - 1);\n }", "public int lastIndexOf(T obj) {\r\n Node<T> current = tail.previous();\r\n for (int i = size() - 1; i >= 0; i--) {\r\n if (current.getData().equals(obj)) {\r\n return i;\r\n }\r\n current = current.previous();\r\n }\r\n return -1;\r\n }", "public int getLast() {\n if (size == 0)\n return NO_ELEMENT;\n else\n return endOfBlock[numberOfBlocks - 1] - 1;\n }", "private int findIndex(String str){\n for(int i=size()-1;i>=0;i--){\n if(str.compareTo(get(i))>0){\n return i+1;\n }\n }\n return 0;\n }", "@Starts(\"nothing\")\r\n@Override\r\n public int lastIndexOf(Object o) {\r\n int i=0;\r\n int last = -1;\r\n for (ConsCell<T> p = head; p != null; p = p.cdr, ++i) {\r\n if (equals(o,p.car)) last = i;\r\n }\r\n return last;\r\n }", "public int lastIndexOf(Object obj)\r\n {\r\n int index = this.size() - 1;\r\n ListIterator<E> itr = this.listIterator(this.size());\r\n while (itr.hasPrevious())\r\n {\r\n if (Utilities.nullSafeEquals(itr.previous(), obj))\r\n {\r\n return index;\r\n }\r\n --index;\r\n }\r\n return BAD_POSITION;\r\n }", "int getEndCharIndex();", "public static void main(String[] args) { \n\t\tString strOrig =\"Hello world,Hello Reader\";\n\t int lastIndex = strOrig.lastIndexOf(\"x\");\n\t \n\t if(lastIndex == - 1){\n\t System.out.println(\"Not found\");\n\t } else {\n\t System.out.println(\"Last occurrence of Hello is at index \"+ lastIndex);\n\t }\n\t\t\n\t}", "public int getEndIndex() {\n return start + length - 1;\n }", "public int lastElement() {\r\n\r\n\t\treturn (usedSize - 1);\r\n\r\n\t}", "public static int lastIndexOf(StringBuffer buf, String find)\r\n {\r\n return lastIndexOf(buf, find, buf.length() - 1);\r\n }", "public static String getLastMatch(String str) {\n String[] ls= str.split(\" \\\\- \",2);\n\n /* Matcher matcher = match_numbers.matcher(str);\n if (matcher.find()) {\n return matcher.group(1);\n }*/\n return ls[ls.length-1];\n }", "public int getLastSubIndex() {\n\t\t\tint maxRVI = 0, subIndex = 0;\n\t\t\tfor (Map.Entry<Integer, Integer> entry : subIndices.entrySet()) {\n\t\t\t\tif (entry.getKey() < currentRVIndex) {\n\t\t\t\t\tif (entry.getKey() > maxRVI) {\n\t\t\t\t\t\tmaxRVI = entry.getKey();\n\t\t\t\t\t\tsubIndex = entry.getValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn subIndex;\n\t\t}", "public synchronized int lastEntryIndex() {\n return this.lastIndex;\n }", "public E getLast() {\r\n\t\tif (tail == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(size - 1).data;\t\r\n\t\t}\r\n\t}", "@Test\n public void testLastIndexOf_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n Integer arg = 7;\n\n int result = instance.lastIndexOf(arg);\n int expResult = 3;\n\n assertEquals(expResult, result);\n\n }", "String getFirstIndex();", "public abstract int getEndIndex();", "public String getLastItem();", "public int lastIndexOf(Object o) {\r\n int index = size;\r\n if (o == null) {\r\n for (Entry e = header.previous; e != header; e = e.previous) {\r\n index--;\r\n if (e.element == null)\r\n return index;\r\n }\r\n } else {\r\n for (Entry e = header.previous; e != header; e = e.previous) {\r\n index--;\r\n if (o.equals(e.element))\r\n return index;\r\n }\r\n }\r\n return -1;\r\n }", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "public int getLast() {\n\t\treturn last;\n\t}", "private static int lastnlposition(byte[] data, int len) {\n int at = -1;\n for(int i=len-1; i >= 0; i--) {\n if(data[i] == '\\n') {\n at = i;\n break;\n }\n }\n return at;\n }", "public int lastNonZero() {\n\t\tint i;\n\t\tfor(i=pointList.size()-1; i>=0; i--) {\n\t\t\tif (pointList.get(i).getY() > 0)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn 0;\n\t}", "public synchronized int getLastTerm() {\n if(lastEntryIndex() <= 0) return 0;\n return getEntry(lastIndex).getTerm();\n }", "private int lastNotNull() {\n\t\treturn (!this.checkEmpty()) ? findLast() : 0;\n\t}", "@Override\n public final int getEndIndex() {\n return upper;\n }", "public TypeHere getLast() {\n return items[size - 1];\n }", "public static int task4_last_occurence(int[] array, int target) {\n // key point: a[mid] == target, l = mid\n return -1;\n }", "private int getLastItemEntryIndex() {\n int sortedCount = this.sortedCount.get();\n int entryIndex = sortedCount == 0 ? HEAD_NODE : (sortedCount - 1) * (FIELDS) + 1;\n int nextEntryIndex = getEntryFieldInt(entryIndex, OFFSET.NEXT);\n while (nextEntryIndex != Chunk.NONE) {\n entryIndex = nextEntryIndex;\n nextEntryIndex = getEntryFieldInt(entryIndex, OFFSET.NEXT);\n }\n return entryIndex;\n }", "Position<T> last();", "private int findIndexOfMax(){\n\t\tint value=0;\n\t\tint indexlocation=0;\n\t\tfor(int i=0; i<myFreqs.size();i++){\n\t\t\tif(myFreqs.get(i)>value){\n\t\t\t\tvalue = myFreqs.get(i);\n\t\t\t\tindexlocation =i;\n\t\t\t}\n\t\t}\n\t\treturn indexlocation;\n\t}", "public static int getIndexOfMax(double[] array){\n\n int largest = 0;\n for ( int i = 1; i < array.length; i++ )\n {\n if ( array[i] > array[largest] ) largest = i;\n }\n return largest;\n\n }", "public T getLast( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//last node\r\n\t\tArrayNode<T> last = endMarker.prev;\r\n\t\ttry{\r\n\t\t\t//last elem\r\n\t\t\treturn last.getLast();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t}", "public static native long GetLast(long lpjFbxArrayVector2);", "public int last() throws XPathException {\n if (last == -1) {\n if (base instanceof LastPositionFinder) {\n last = ((LastPositionFinder)base).getLastPosition();\n }\n if (last == -1) {\n last = Count.count(base.getAnother());\n }\n }\n return last;\n }", "public synchronized int getLastPos() {\n PageMeta pm = pmList.get(numPages - 1);\n return pm.startPos + pm.numPairs - 1;\n }", "public static void main(String[] args) {\n\t\tString words=\"today,monday,Sunday\";\n\t\tSystem.out.println(words.lastIndexOf(\"day\"));\n\t\tSystem.out.println(words.lastIndexOf(\"day\", 3));\n\t}", "private int getLastIndexInMarkers(List<String> identifiers) {\n if (this.progressMarkers != null) {\n for (int i = this.progressMarkers.size() - 1; i >= 0; i--) {\n if (identifiers.contains(progressMarkers.get(i))) {\n return i;\n }\n }\n }\n\n return -1;\n }", "long getLastLogIndex();", "public Item getLast() {\n return items[size - 1];\n }", "public int getEnd() {\n switch(getType()) {\n case Insertion:\n case SNP:\n case InterDup:\n case TandemDup:\n case TransDup:\n return pos;\n default:\n return pos + maxLen() - 1;\n }\n }", "public static int lastIndex(int input[], int x) {\n return lastIndex(input, x, 0, -1);\n\t}", "@Override\n public Persona Last() {\n return array.get(tamano - 1);\n }", "public int last() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferLast - 1];\n\t\t\tbufferIndex = 0;\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "int latestNonConflict(Job arr[], int i)\n {\n for (int j=i-1; j>=0; j--)\n {\n if (arr[j].finish <= arr[i-1].start)\n return j;\n }\n return -1;\n }", "public Object lastElement();", "public int getLast() {\n\treturn _last;\n }", "int latestNonConflict(Job arr[], int i)\n {\n for (int j=i-1; j>=0; j--)\n {\n if (arr[j].finish <= arr[i].start)\n return j;\n }\n return -1;\n }", "String getEndSplited();", "public String getLast()\n {\n return lastItem;\n }", "static int lastIndexOf(char[] source, int sourceOffset, int sourceCount, char[] target, int targetOffset, int targetCount, int fromIndex) {\n\t\t/*\n\t\t * Check arguments; return immediately where possible. For consistency, don't check for null str.\n\t\t */\n\t\tint rightIndex = sourceCount - targetCount;\n\t\tif (fromIndex < 0) {\n\t\t\treturn -1;\n\t\t}\n\t\tif (fromIndex > rightIndex) {\n\t\t\tfromIndex = rightIndex;\n\t\t}\n\t\t/* Empty string always matches. */\n\t\tif (targetCount == 0) {\n\t\t\treturn fromIndex;\n\t\t}\n\n\t\tint strLastIndex = targetOffset + targetCount - 1;\n\t\tchar strLastChar = target[strLastIndex];\n\t\tint min = sourceOffset + targetCount - 1;\n\t\tint i = min + fromIndex;\n\n\t\tstartSearchForLastChar: while (true) {\n\t\t\twhile (i >= min && source[i] != strLastChar) {\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tif (i < min) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tint j = i - 1;\n\t\t\tint start = j - (targetCount - 1);\n\t\t\tint k = strLastIndex - 1;\n\n\t\t\twhile (j > start) {\n\t\t\t\tif (source[j--] != target[k--]) {\n\t\t\t\t\ti--;\n\t\t\t\t\tcontinue startSearchForLastChar;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn start - sourceOffset + 1;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString s = \"String -Hello, my name is algoritmia - \";\n\t\t\n\t\tint pos1 = s.indexOf(\"Hello\");\n\t\tint pos2 = s.lastIndexOf(\"my\");\n\t\tSystem.out.println(pos1);\n\t\tSystem.out.println(pos2);\n\t}", "static int indexOfLargest(String[] V, int i0, int i1) {\n\t\tif (i0 >= i1)\n\t\t\treturn i1;\n\t\telse {\n\t\t\tint k = indexOfLargest(V, i0+1, i1);\n\t\t\treturn (V[i0].compareTo(V[k]) > 0) ? i0 : k;\n\t\t}\n\t}", "private String nextIndex() {\n return ArrayElement.nameFor(myElements.size());\n }", "public static int lastIndexOfSubList(java.util.List arg0, java.util.List arg1)\n { return 0; }", "E last() throws NoSuchElementException;", "@Override\n public final char last() {\n if (upper == lower) {\n return DONE;\n }\n return text.charAt(index = upper-1);\n }", "public int mo75910c(String str) {\n C32569u.m150519b(str, \"element\");\n return this.f51596a.lastIndexOf(str);\n }", "String getLastInt();", "public synchronized int lastEntryTerm() {\n if (this.lastEntryIndex() > 0) {\n return this.logs.get(lastIndex).getTerm();\n } else return -1;\n }", "private static int longestString(List<String> arr) {\n\t\tList<String> ll=new ArrayList();\r\n\t\tlongestString(arr,0,\"\",ll);\r\n\t\tint max=0;\r\n\t\tfor(String a:ll) {\r\n\t\t\tint len=a.length();\r\n\t\t\tif(len>max) {\r\n\t\t\t\tmax=len;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public static void main(String[] args) {\n String s = \"zazb\";\n// String s = \"zbza\";\n String subStr = lastSubstring(s);\n System.out.println(subStr);\n }", "default int findEnd(char[] buffer, int beginIndex, int endIndex) {\n return endIndex;\n }", "private int minusOne(int index) {\n if (index - 1 < 0) {\n return array.length - 1;\n } else {\n return index - 1;\n }\n }", "public static <Key> int lastIndexOf(Key[] a, Key key, Comparator<Key> comparator){\n\n if(a == null || key == null || comparator == null) throw new NullPointerException(\"one or multiple arguments null\");\n if(a.length == 0) return -1;\n\n int start = 0;\n int end = a.length - 1;\n\n //binary search - if key is less than mid, set end = mid, otherwise\n //set start = mid. this will allow start to be set to the last\n //instance of the key, and end will converge to start until\n //they're next to each other\n while(start + 1 < end){\n int mid = start + (end - start) / 2;\n if(comparator.compare(key, a[mid]) < 0) end = mid;\n else start = mid;\n }\n\n //return index\n if(comparator.compare(key, a[start]) == 0) return start;\n if(comparator.compare(key, a[end]) == 0) return end;\n\n //return if no such key\n return -1;\n }" ]
[ "0.7387207", "0.73470914", "0.73181427", "0.72802997", "0.71410686", "0.69450593", "0.6824282", "0.67982984", "0.6756305", "0.66926175", "0.66799456", "0.6672855", "0.6648176", "0.6626823", "0.6609953", "0.6557276", "0.653205", "0.6494376", "0.64546096", "0.6454441", "0.6440816", "0.64353186", "0.64328283", "0.64240485", "0.63972765", "0.63524204", "0.6340852", "0.6321796", "0.62753725", "0.62623465", "0.62201357", "0.6168353", "0.6142169", "0.61299306", "0.6104552", "0.6077571", "0.6077232", "0.606971", "0.6045366", "0.6037136", "0.6028216", "0.5990088", "0.5959032", "0.5954006", "0.5953022", "0.59277594", "0.5921904", "0.59168583", "0.5916192", "0.5914664", "0.58898103", "0.58656967", "0.58629143", "0.58565336", "0.58434033", "0.5833075", "0.5833036", "0.5820182", "0.578267", "0.5777286", "0.57455546", "0.5741419", "0.57286197", "0.5715989", "0.57091105", "0.5679199", "0.5670525", "0.56701875", "0.56672424", "0.5661976", "0.5658516", "0.5649927", "0.56341314", "0.5631616", "0.5628533", "0.562637", "0.5617543", "0.56173193", "0.5616264", "0.5608393", "0.55841684", "0.55789477", "0.55771494", "0.55710804", "0.5567636", "0.5563839", "0.55542445", "0.5540969", "0.5534925", "0.5532295", "0.5527051", "0.55253905", "0.55039966", "0.549241", "0.5489219", "0.5466306", "0.5459918", "0.54528385", "0.5442277", "0.5439863", "0.54390526" ]
0.0
-1
mAdapter.getData().set(mEditIndex, playList); mAdapter.notifyItemChanged(mEditIndex); mAdapter.updateFooterView(); TODO: 2017/11/8
@Override public void onPlayListEdited(PlayList playList) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "@Override\n\tpublic void notifyDataSetChanged() {\n\t\tsuper.notifyDataSetChanged();\n\t\tsetIndexer(list);\n\t}", "public void updateAdapter() {\n// \tContentValues values = new ContentValues(); \n// \tvalues.put(\"note_title\", \"Title of Note 4.4_\" + Math.random());\n// \tString whereClause = \"note_id = ?\";\n// \tString[] whereArgs = new String[] { \"4\" };\n// \t\t\n// \tthis.loader.update(DBConstants.NOTES_TABLE, values, whereClause, whereArgs);\n// dba = new DBAdapter(getActivity());\n// dba.open();\n// \tCursor notes = dba.getAllNotes();\n// \t((SimpleCursorAdapter) notesAdapter).changeCursor(notes);\n//\t\t((SimpleCursorAdapter) lvNotes.getAdapter()).notifyDataSetChanged();\n//\t\tdba.close();\n }", "@Override\r\n public void onDataSetChanged() {\n }", "private void updateWhereItemListData() {\n ModelWhereItem itemDB = new ModelWhereItem(database);\n ArrayList<WhereItem> itemList = itemDB.WSfindItemsByFields(selectedCityId,selectedDistrictId,selectedStreetId,selectedCategoryId);\n RecyclerViewAdapter recyclerViewAdapter = new RecyclerViewAdapter(getContext(),itemList,gridViewMenuAdapter,viewPagerSlideAdapter);\n recyclerView.setAdapter(recyclerViewAdapter);\n\n // tweaks cho recycler view\n recyclerView.setHasFixedSize(true);\n //recyclerView.setItemViewCacheSize(20);\n recyclerView.setDrawingCacheEnabled(true);\n //recyclerView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);\n\n changeTab(0);\n }", "public void updateList(){\r\n preyFragmentAdapter=new PreyFragmentAdapter(CPreyArrayList,this);\r\n recyclerView.setAdapter(preyFragmentAdapter);\r\n LinearLayoutManager a=new LinearLayoutManager(this.getContext());\r\n recyclerView.setLayoutManager(a);\r\n\r\n\r\n }", "@Override\n public void notifyDataSetChanged() {\n super.notifyDataSetChanged();\n }", "public void updateData(List<AddingTopItem> mList){\n mData.clear();\n mData.addAll(mList);\n this.notifyDataSetChanged();\n }", "@Override\n\t\t\t\t\t \t public void run() {\n\t\t\t\t\t \t \tadp.notifyDataSetChanged();\n\t\t\t\t\t \t }", "private void updateUI() {\n ArrayList<String> taskList = new ArrayList<>();\n SQLiteDatabase db = mHelper.getReadableDatabase();\n Cursor cursor = db.query(Task.TaskEntry.TABLE,new String[] {Task.TaskEntry.COL_TASK_TITLE},null,null,null,null,null);\n listItems.clear();\n\n while (cursor.moveToNext()){\n int index = cursor.getColumnIndex(Task.TaskEntry.COL_TASK_TITLE);\n taskList.add(cursor.getString(index));\n ListItems item = new ListItems(cursor.getString(index));\n listItems.add(item);\n }\n\n\n R_adapter = new RecyclerAdapterGoals(this.getContext(), listItems);\n mTaskListView.setAdapter(R_adapter);\n cursor.close();\n db.close();\n }", "public void updateComponents(){\n adapter.updateItems();\n }", "public void updateListView(){\n mAdapter = new ListViewAdapter(getActivity(),((MainActivity)getActivity()).getRockstarsList());\n mRockstarsListView.setAdapter(mAdapter);\n }", "void notifyListDataSetChanged();", "@Override\n public void OnOkButtonPressed(OrderDetail detail) {\n orderListAdpater.addOrderDetail(detail);\n orderListAdpater.setSelectedIndex(orderListAdpater.getCount() - 1);\n orderList.setSelection(orderListAdpater.getCount());\n\n// if (orderListAdpater.orderDetailList.size() == 1) {\n orderListAdpater.notifyDataSetChanged();\n// }\n onOrderUpdate();\n\n }", "public void onDataSetChanged();", "private void updateUI() {\n mLatestFeedsAdapter.notifyDataSetChanged();\n }", "@Override\n public void run() {\n notifyDataSetChanged();\n }", "@Override\r\n\tpublic void notifyDataSetChanged() {\n\t\tsuper.notifyDataSetChanged();\r\n\t\tLog.v(\"DEBUG\", \"CHANGE\");\r\n\t}", "private void updateAdapter() {\n iga = new IngredientGridAdapter(getApplicationContext(), ingredientList);\n gridView.setAdapter(iga);\n iga.notifyDataSetChanged();\n }", "private void updateAdapterForViewPager() {\n\n// Stops the page loading animation when response is received successfully\n binding.shimmerFrameLayoutVP.stopShimmer();\n binding.shimmerFrameLayoutVP.setVisibility(View.GONE);\n\n if (vp_adapter == null) {\n vp_adapter = new MainActivityVP_Adapter(this, now_playing_movies, this);\n binding.homeViewPagerID.setAdapter(vp_adapter);\n vp_adapter.notifyDataSetChanged();\n } else if (movieNow_vm.getListLiveDataMovieNow().getValue() != null) {\n vp_adapter = new MainActivityVP_Adapter(this, movieNow_vm.getListLiveDataMovieNow().getValue(), this);\n binding.homeViewPagerID.setAdapter(vp_adapter);\n } else {\n vp_adapter.notifyDataSetChanged();\n }\n\n }", "public void dataSetChanged() {\n int count = this.mAdapter.getCount();\n this.mExpectedAdapterCount = count;\n boolean z = this.mItems.size() < (this.mOffscreenPageLimit * 2) + 1 && this.mItems.size() < count;\n int i = this.mCurItem;\n this.mChangeData = true;\n boolean z2 = z;\n int i2 = i;\n int i3 = 0;\n boolean z3 = false;\n while (i3 < this.mItems.size()) {\n ItemInfo itemInfo = this.mItems.get(i3);\n int itemPosition = this.mAdapter.getItemPosition(itemInfo.object);\n if (itemPosition != -1) {\n if (itemPosition == -2) {\n this.mItems.remove(i3);\n i3--;\n if (!z3) {\n this.mAdapter.startUpdate((ViewGroup) this);\n z3 = true;\n }\n this.mAdapter.destroyItem((ViewGroup) this, itemInfo.position, itemInfo.object);\n if (this.mCurItem == itemInfo.position) {\n i2 = Math.max(0, Math.min(this.mCurItem, count - 1));\n }\n } else if (itemInfo.position != itemPosition) {\n if (itemInfo.position == this.mCurItem) {\n i2 = itemPosition;\n }\n itemInfo.position = itemPosition;\n }\n z2 = true;\n }\n i3++;\n }\n if (z3) {\n this.mAdapter.finishUpdate((ViewGroup) this);\n }\n if (z2) {\n int childCount = getChildCount();\n for (int i4 = 0; i4 < childCount; i4++) {\n LayoutParams layoutParams = (LayoutParams) getChildAt(i4).getLayoutParams();\n if (!layoutParams.isDecor) {\n layoutParams.widthFactor = 0.0f;\n }\n }\n setCurrentItemInternal(i2, false, true);\n requestLayout();\n }\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 }", "public void updateListView(ArrayList<itemInfo> playerCards){\n final ListView itemListView = findViewById(R.id.itemListView);\n\n // Standard list view adapter\n /*\n final listViewAdapter listAdapter = new listViewAdapter(this,R.layout.itemlistlayout);\n itemListView.setAdapter(listAdapter);\n */\n\n //Array list adapter\n cardArrayAdapter myArrayAdapter = new cardArrayAdapter(this,playerCards);\n itemListView.setAdapter(myArrayAdapter);\n\n //Refresh the adapter data from the arraylist\n myArrayAdapter.notifyDataSetChanged();\n\n //playerCard = playerCards.get(cardCounter);\n\n //listAdapter.add(playerCard);\n\n listCount = itemListView.getAdapter().getCount();\n\n //cardCounter = cardCounter + 1;\n\n }", "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 }", "private void updateList() {\n Model.instace.getAllArticles(new ArticleFirebase.GetAllArticlesAndObserveCallback() {\n @Override\n public void onComplete(List<Article> list) {\n data.clear();\n data = list;\n adapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancel() {\n\n }\n });\n }", "private void updateListView() {\n adapter = new TableItemAdapter(this, tableItems);\n this.listView.setAdapter(adapter);\n }", "private void updateUi (){\n //get the first list item postion\n int currentPosition =listView.getFirstVisiblePosition();\n //append the new recipes to listview\n RecipeAdapter adapter = new RecipeAdapter(this , recipesList);\n listView.setAdapter(adapter);\n // Setting new scroll position to continue\n listView.setSelectionFromTop(currentPosition + 1, 0);\n }", "@Override\n public void onClick(View view) {\n update(holder.getAdapterPosition());\n }", "public void notifyChanged() {\n notifyDataSetChanged();\n }", "@Override\n public void sure() {\n onOrderUpdate();\n orderListAdpater.notifyDataSetChanged();\n }", "@Override\n public void sure() {\n onOrderUpdate();\n orderListAdpater.notifyDataSetChanged();\n }", "public void setAdapter() {\n datalist = new ArrayList<>();\n\n adapter = new SoundListAdapter(context, datalist, new AdapterClickListener() {\n @Override\n public void onItemClick(View view, int pos, Object object) {\n\n SoundsModel item = (SoundsModel) object;\n\n if (view.getId() == R.id.done) {\n stopPlaying();\n downLoadMp3(item.id, item.sound_name, item.acc_path);\n } else if (view.getId() == R.id.fav_btn) {\n callApiForFavSound(pos, item);\n } else {\n if (thread != null && !thread.isAlive()) {\n stopPlaying();\n playaudio(view, item);\n } else if (thread == null) {\n stopPlaying();\n playaudio(view, item);\n }\n }\n }\n });\n\n recyclerView.setAdapter(adapter);\n\n\n }", "@Override\n public void sure() {\n orderListAdpater.notifyDataSetChanged();\n onOrderUpdate();\n }", "public void update()\n\t{\n\t\t//update the view's list of movies...\n\t\tthis.getRemoveButton().setEnabled((this.database.getNumberOfMovies()>0));\n\t\tthis.movieList.setListData(this.database.toList());\n\t}", "@Override\n public void sure() {\n orderListAdpater.notifyDataSetChanged();\n onOrderUpdate();\n }", "private void refreshList() {\n ArrayAdapter<Plan> planAdapter = new PlanAdapter();\n mListView.setAdapter(planAdapter);\n\n }", "@Override\n public void sure() {\n orderListAdpater.notifyDataSetChanged();\n onOrderUpdate();\n }", "@Override\n protected void onPostExecute(Void result) {\n\n\n upComingMatchesAdapter.notifyDataSetChanged();\n }", "public void notifyDataSetChanged() {\n generateDataList();\n mSectionedExpandableGridAdapter.notifyDataSetChanged();\n }", "public void updateListView(List<Event> list) {\n this.eventsList = list;\n notifyDataSetChanged();\n }", "private void updataUserfouce() {\n\t\tcDynamicAdapter.notifyDataSetChanged();\n\t}", "public static void syncItems() {\n ArrayList<Contest> keep = null;\n if (contestItems.size() > CONTEST_LIST_SIZE) {\n keep = new ArrayList<>(contestItems.subList(0, CONTEST_LIST_SIZE));\n keep = removeDups(keep);\n // sort and redraw\n Collections.sort(keep, new ContestComparator());\n adapter.clear();\n adapter.addAll(keep);\n //adapter = new ContestItemsAdapter(mCtx, keep);\n }\n\n adapter.notifyDataSetChanged();\n }", "@Override\n public void onClick(View view) {\n slctdExpndColpsPostn = position;\n notifyDataSetChanged();\n }", "public final void updateRecyclerUI() {\n Collection collection = this.setList;\n if (collection == null || collection.isEmpty()) {\n Collection collection2 = this.notSetList;\n if (collection2 == null || collection2.isEmpty()) {\n LinearLayout linearLayout = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout, \"llSet\");\n linearLayout.setVisibility(8);\n LinearLayout linearLayout2 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llNotSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout2, \"llNotSet\");\n linearLayout2.setVisibility(8);\n return;\n }\n }\n if (this.setList.size() != 0) {\n LinearLayout linearLayout3 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout3, \"llSet\");\n linearLayout3.setVisibility(0);\n Collection collection3 = this.notSetList;\n if (collection3 == null || collection3.isEmpty()) {\n View _$_findCachedViewById = _$_findCachedViewById(C2723R.C2726id.separatorSet);\n Intrinsics.checkExpressionValueIsNotNull(_$_findCachedViewById, \"separatorSet\");\n _$_findCachedViewById.setVisibility(8);\n } else {\n View _$_findCachedViewById2 = _$_findCachedViewById(C2723R.C2726id.separatorSet);\n Intrinsics.checkExpressionValueIsNotNull(_$_findCachedViewById2, \"separatorSet\");\n _$_findCachedViewById2.setVisibility(0);\n }\n SetSaleDocAdapter setSaleDocAdapter2 = this.setSaleDocAdapter;\n if (setSaleDocAdapter2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"setSaleDocAdapter\");\n }\n setSaleDocAdapter2.setData(createSetSaleDocData(true));\n SetSaleDocAdapter setSaleDocAdapter3 = this.setSaleDocAdapter;\n if (setSaleDocAdapter3 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"setSaleDocAdapter\");\n }\n setSaleDocAdapter3.notifyDataSetChanged();\n }\n if (this.notSetList.size() != 0) {\n LinearLayout linearLayout4 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llNotSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout4, \"llNotSet\");\n linearLayout4.setVisibility(0);\n NotSetSaleDocAdapter notSetSaleDocAdapter2 = this.notSetSaleDocAdapter;\n if (notSetSaleDocAdapter2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"notSetSaleDocAdapter\");\n }\n notSetSaleDocAdapter2.setData(createSetSaleDocData(false));\n NotSetSaleDocAdapter notSetSaleDocAdapter3 = this.notSetSaleDocAdapter;\n if (notSetSaleDocAdapter3 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"notSetSaleDocAdapter\");\n }\n notSetSaleDocAdapter3.notifyDataSetChanged();\n Button button = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button, \"btnReviewPayment\");\n button.setAlpha(0.5f);\n Button button2 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button2, \"btnReviewPayment\");\n button2.setClickable(false);\n return;\n }\n Button button3 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button3, \"btnReviewPayment\");\n button3.setAlpha(1.0f);\n Button button4 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button4, \"btnReviewPayment\");\n button4.setClickable(true);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n reserAdap.notifyDataSetChanged();\n }", "protected void updateGroupData() {\n if (!mGroupList.isEmpty()) {\n mAdapter.notifyDataSetChanged();\n // If we did not load 8 groups, we are at the end of the list, so signal\n // not to try to load more groups.\n if (mGroupList.size() - mCurrentAmountShown < 8) {\n loadMore = false;\n if(getListView() != null) {\n \tgetListView().removeFooterView(mProgressBar);\n }\n }\n \n hasGroups = true;\n } else {\n ArrayAdapter<String> blankAdapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_list_item_1);\n blankAdapter.add(\"no groups to display\");\n getListView().setAdapter(blankAdapter);\n getListView().setEnabled(false);\n getListView().removeFooterView(mProgressBar);\n }\n }", "public void updateData(List<rowsHome> listRows , String idcdn) {\n Log.e(TAG,\"updateData\");\n rows.clear();\n rows.addAll(listRows);\n cdn = idcdn;\n notifyDataSetChanged();\n }", "public void run() {\n updateBtn.reset();\n notifyDataSetChanged();\n }", "private void updateBottomSheet(int position) {\n audioList.get(position);\n if (audioList.get(position).getCallType().equals(\"IN\")){\n callTypeIv.setImageDrawable(getResources().getDrawable(R.drawable.call_in));\n }else{\n callTypeIv.setImageDrawable(getResources().getDrawable(R.drawable.calls_out));\n }\n\n phoneNo.setText(audioList.get(position).getPhoneNo());\n dateTime.setText(audioList.get(position).getDateTime());\n\n }", "public void refreshList()\n {\n final ArrayAdapter adapter = (ArrayAdapter)this.foodListAdapter;\n this.getActivity().runOnUiThread(new Runnable() {\n public void run() {\n adapter.notifyDataSetChanged();\n }\n });\n }", "private void setDataOnList() {\r\n if (SharedPref.getSecureTab(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.SECURE_TAB)) {\r\n dataModelArrayList.addAll(secureMediaFileDb.getSecureUnarchiveFileList());\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelper.imageDataModelList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewData.imageDataModelList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewData.imageDataModelList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewData.imageDataModelList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelperBaseOnId.dataModelArrayList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewDataOnIdBasis.dataModelArrayList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n }\r\n }", "public void updateDataSet(ArrayList<BiddingResources> biddingPeringkatList)\n {\n this.biddingPeringkatList = biddingPeringkatList;\n notifyDataSetChanged();\n }", "@Override\n public void viewPagerNotifyDataSetChanged() {\n if (mediaDetails!=null){\n mediaDetails.notifyDataSetChanged();\n }\n }", "private void setList() {\n Log.i(LOG,\"+++ setList\");\n txtCount.setText(\"\" + projectTaskList.size());\n if (projectTaskList.isEmpty()) {\n return;\n }\n\n projectTaskAdapter = new ProjectTaskAdapter(projectTaskList, darkColor, getActivity(), new ProjectTaskAdapter.TaskListener() {\n @Override\n public void onTaskNameClicked(ProjectTaskDTO projTask, int position) {\n projectTask = projTask;\n mListener.onStatusUpdateRequested(projectTask,position);\n }\n\n\n });\n\n mRecyclerView.setAdapter(projectTaskAdapter);\n mRecyclerView.scrollToPosition(selectedIndex);\n\n }", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n // Update the data that the adapter uses to create ViewHolders\n mAdapter.swapCursor(data);\n }", "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 updateItem(E itemElementView);", "private void updateFooterView() {\n int mode = determineFooterMode();\n if (mListFooterMode == mode) {\n return;\n }\n mListFooterMode = mode;\n\n ListView lv = getListView();\n if (mListFooterMode != LIST_FOOTER_MODE_NONE) {\n lv.addFooterView(mListFooterView);\n if (getListAdapter() != null) {\n // Already have an adapter - reset it to force the mode. But save the scroll\n // position so that we don't get kicked to the top.\n Parcelable listState = lv.onSaveInstanceState();\n setListAdapter(mListAdapter);\n lv.onRestoreInstanceState(listState);\n }\n\n mListFooterProgress = mListFooterView.findViewById(R.id.progress);\n mListFooterText = (TextView) mListFooterView.findViewById(R.id.main_text);\n } else {\n lv.removeFooterView(mListFooterView);\n }\n updateListFooter();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n itemsAdapter.clear();\n itemsAdapter.notifyDataSetChanged();\n writeItems();\n }", "@Override\n public void updateTodo(Todo todo) {\n todos.set(currentEditPosition, todo);\n adapter.notifyDataSetChanged();\n dismissFragment(); //this will remove the dialog from screen\n\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 updateVideo() {\n ArrayList<String> movieVideoArrayList = new ArrayList<String>();\n videoRecyclerView = findViewById(R.id.trailer_recycler_view);\n videoRecyclerView.setLayoutManager(new GridLayoutManager(this, 4));\n movieVideoAdapter = new MovieVideoAdapter(movieVideoArrayList, MovieDetailActivity.this);\n videoRecyclerView.setAdapter(movieVideoAdapter);\n }", "@Override\n public void updateMe( ) {\n mChatListFragment.mAdapter.notifyDataSetChanged();\n if(mMapFragment.m_map != null && MainActivity.lastLocation != null){\n mMapFragment.populateMapPinsOnStartup();\n }\n }", "public void setDatatoList() {\n swipeRefreshLayout.setRefreshing(true);\n DatabaseHandler databaseHandler = new DatabaseHandler(getApplicationContext());\n locationDetailsList = databaseHandler.getAllLocationDetails();\n if (locationDetailsList.size() > 0) {\n\n recyclerView.setVisibility(View.VISIBLE);\n emptyListText.setVisibility(View.GONE);\n\n mAdapter = new LocationDetailsAdapter(locationDetailsList, this);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(mAdapter);\n } else {\n recyclerView.setVisibility(View.GONE);\n emptyListText.setVisibility(View.VISIBLE);\n emptyListText.setText(this.getResources().getString(R.string.no_list_items));\n }\n swipeRefreshLayout.setRefreshing(false);\n }", "private void updateUI() {\n ArrayList<String> taskList = new ArrayList<>();\n\n //a read-only database object will be returned\n SQLiteDatabase db = dbHelper.getReadableDatabase();\n\n //query the table, returning a cursor over the set with all the columns\n Cursor cursor = db.query(TaskContract.TaskEntry.TABLE,\n new String[]{TaskContract.TaskEntry._ID, TaskContract.TaskEntry.COL_TASK_TITLE},\n null, null, null, null, null);\n\n //Place the items in an ArrayList of Strings\n while (cursor.moveToNext()) {\n int columnIndex = cursor.getColumnIndex(TaskContract.TaskEntry.COL_TASK_TITLE);\n taskList.add(cursor.getString(columnIndex));\n }\n\n //If the adapter is not created or null, then set it as the adapter of the ListView\n if (arrayAdapterToDo == null) {\n arrayAdapterToDo = new ArrayAdapter<String>(this,\n R.layout.item_todo, //what view to user for the items\n R.id.taskTitle, //where to put the String of data\n taskList); //where to get all the data\n listView.setAdapter(arrayAdapterToDo); //set it as the adapter of the ListView Instance\n } else {\n arrayAdapterToDo.clear(); //remove all the elements from the list\n arrayAdapterToDo.addAll(taskList); //add all the items from the database, came from the while loop populating taskList\n arrayAdapterToDo.notifyDataSetChanged(); //alert the ListView that the data changed and it should refresh itself\n }\n cursor.close(); //close the cursor object\n db.close(); //close the database object\n }", "public void setListAdapter() {\n\t\tm_dao = new ItemDao(this.getActivity());\n\t\t\n\t\tthis.m_adapter = new EditItemListAdapter(\n\t\t\t\tthis.getActivity(),\n\t\t\t\tR.layout.row,\n\t\t\t\tm_dao.getList());\n\n\n\n\t\tsetListAdapter(this.m_adapter);\n\n\t\tthis.m_adapter.setOnEditItemClickListener(\n\t\t\t\tnew EditItemListAdapter.OnEditItemClickListener() {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Update the item status in the DB table\n\t\t\t\t\t */\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(!toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.add(item);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void OnDeselectItem(Item item) {\n\t\t\t\t\t\tif(toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.remove(item);\n\n\t\t\t\t\t}\n\n\n\t\t\t\t});\n\n\n\t\t\n\t}", "public void updateListViewAndCount() {\n \t\n \t//updating the currentTaskItems then getting a array of the list\n \tListView items = (ListView)findViewById(R.id.showAttachedItems);\n \t\n \tArrayList<ItemListElement> item = formatOutputForList();\n \tItemListElement[] elm = new ItemListElement[item.size()];\n \titem.toArray(elm);\n \t\n \t//updating the list view\n \tItemListAdapter adapter = \n \t new ItemListAdapter(this, R.layout.list_multi, elm);\n items.setAdapter(adapter);\n \t\n \t//update the item count\n \tEditText num = (EditText)findViewById(R.id.showCurrentItemNum);\n \tint value = currentTaskItems.size();\n \tString val = Integer.toString(value);\n \tnum.setText(val);\t\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 updateUI() {\n /* Making an array of strings to store tasks entered by the user. */\n ArrayList<String> taskList = new ArrayList<>();\n SQLiteDatabase db = OpenDB.getReadableDatabase();\n Cursor cursor = db.query(AccessData.ToDoEntry.table,\n new String[]{AccessData.ToDoEntry._ID, AccessData.ToDoEntry.todo_title},\n null, null, null, null, null);\n while (cursor.moveToNext()) {\n int idx = cursor.getColumnIndex(AccessData.ToDoEntry.todo_title);\n taskList.add(cursor.getString(idx));\n }\n\n /* Check if array adapter is created. */\n if (listAdapter == null) {\n /* If adapter is not created i.e. NULL, create a new adapter */\n listAdapter = new ArrayAdapter<>(this,\n R.layout.todo_item,\n R.id.task_title,\n taskList);\n /* Set the above created adapter as the todoListView adapter */\n todoListView.setAdapter(listAdapter);\n } else {\n /* If created: it is assigned to the todoListView */\n listAdapter.clear(); // clear it\n listAdapter.addAll(taskList); // re-populate it\n listAdapter.notifyDataSetChanged(); // notify view to refresh with new data values\n }\n\n cursor.close();\n db.close();\n }", "public void refershData(ArrayList<SquareLiveModel> contents) {\n\t\tlistData = contents;\n\t\tnotifyDataSetChanged();\n\t}", "private void updateListView() {\n if (smsListView.getAdapter() == null) {\n Log.d(TAG, \"updateListView: set new adapter\");\n smsListView.setAdapter(new SmsListAdapter(SmsListActivity.this, getDataProviderManager(),\n getLayoutInflater()));\n smsListView.setEmptyView(findViewById(R.id.nosms));\n smsListView.setOnItemClickListener(new OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int index, long itemId) {\n if (itemId != -1) {\n Intent smsDetails = new Intent(SmsListActivity.this, SmsDetailsActivity.class);\n smsDetails.putExtra(EXTRAS_KEY_SMSID, Long.valueOf(itemId));\n startActivityForResult(smsDetails, R.id.requestCode_sms_changeInDetailView);\n }\n }\n });\n\n smsListView.setOnItemLongClickListener(new OnItemLongClickListener() {\n\n @Override\n public boolean onItemLongClick(AdapterView<?> arg0, View arg1, int index, long itemId) {\n return showItemLongClickMenu(arg0, itemId, index);\n }\n });\n } else {\n Log.d(TAG, \"updateListView: notifyDataSetChanged\");\n ((SmsListAdapter) smsListView.getAdapter()).clearImageCache();\n ((SmsListAdapter) smsListView.getAdapter()).notifyDataSetChanged();\n }\n\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n MainActivity.notes.set(itemId, String.valueOf(s));\n MainActivity.arrayAdapter.notifyDataSetChanged();\n\n }", "private void loadDataInListView() {\n list_med = myMedicationDB.getAllData();\n list_schedule = myMedicationDB.getAllDataSchedule();\n myAdapterMedication = new myAdapterMedication(context, list_med, list_schedule);\n allMedList.setAdapter(myAdapterMedication);\n myAdapterMedication.notifyDataSetChanged();\n\n }", "public void refreshList() {\n mCursor.requery();\n mCount = mCursor.getCount() + mExtraOffset;\n notifyDataSetChanged();\n }", "public void notifyDataSetChanged() {\n viewState.setShouldRefreshEvents(true);\n invalidate();\n }", "public void EditList(Balanza mimaterial, int position) {\n this.list.set(position, mimaterial); //envia a la tabla los datos que tiene mi material en la posicion position \n this.reloadTable();//llama a la metodo reloadtable que borra la tabla completa y la carga de nuevo \n }", "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 updateDataSet(ArrayList<JobSpecBean> dataList) {\n\t\tthis.dataList = dataList;\n\t\tnotifyDataSetChanged();\n\t}", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n //data.moveToPrevious();\n mAdapter.swapCursor(data);\n }", "@Override\n public void onChanged(List<Contact> updatedContacts) {\n adapter.clear();\n adapter.addAll(updatedContacts);\n adapter.notifyDataSetChanged();\n }", "public void update_list_view() {\n\n Collections.sort(mA.alarms);\n\n // make array adapter to bind arraylist to listview with new custom item layout\n AlarmsAdapter aa = new AlarmsAdapter(mA, R.layout.alarm_entry, mA.alarms);\n alarm_list_view.setAdapter(aa);\n registerForContextMenu(alarm_list_view);\n aa.notifyDataSetChanged(); // to refresh items in the list\n }", "public void AddItemsToRecyclerView()\n {\n source = new Vector();\n source.add(\"排班\");\n source.add(\"加班\");\n source.add(\"打卡\");\n source.add(\"請假\");\n source.add(\"文件\");\n source.add(\"訂餐\");\n }", "public void updateData(List<Track> tracks) {\n mTracks = tracks;\n notifyDataSetChanged();\n }", "@Override\n public void onClick(View view)\n {\n Snackbar snackbar1 = Snackbar.make(view, R.string.undo_track_delete, Snackbar.LENGTH_LONG);\n snackbar1.show();\n tracks.add(position, temp);\n DBHelper.get(v.getContext()).save(temp);\n list.getAdapter().notifyItemInserted(position);\n list.getAdapter().notifyItemRangeChanged(0, tracks.size());\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK && requestCode == REQUEST_CODE) {\n\n int position = data.getExtras().getInt(\"editPos\");\n\n Task task = items.get(position);\n task.taskName = data.getExtras().getString(\"updatedText\");\n\n if (DEBUG) {\n Toast.makeText(this, task.taskName, Toast.LENGTH_SHORT).show();\n }\n\n db.updateTask(task);\n\n items.remove(position);\n items.add(position, task);\n\n taskAdapter.notifyDataSetChanged();\n }\n }", "@Override\n\tpublic void setAdapter(ListAdapter adapter) {\n\t\tif (mIsFooterReady == false) {\n\t\t\tmIsFooterReady = true;\n\t\t\taddFooterView(mFooterView);\n\t\t}\n\t\tsuper.setAdapter(adapter);\n\t}", "public void updateRecyclerView () {\n\n if (recyclerViewDebetableGoalsNow != null) {\n recyclerViewDebetableGoalsNow.destroyDrawingCache();\n recyclerViewDebetableGoalsNow.setVisibility(ListView.INVISIBLE);\n recyclerViewDebetableGoalsNow.setVisibility(ListView.VISIBLE);\n\n displayDebetableGoalsSet ();\n }\n }", "public void swap(ArrayList<TodoList> newData){\n data = new ArrayList<>(newData);\n notifyDataSetChanged();\n }", "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 }", "@Override\n public void onAnimationEnd(Animation animation) {\n wishArray.clear();\n wishArray.add(wish);\n wishArray.addAll(tempArray);\n wishAdapter.notifyDataSetChanged();\n textView.setText(\"\");\n\n }", "public void upDateListView(List<FlightInfoTemp> list) {\n adapter.setData(list);\n adapter.notifyDataSetChanged();\n }", "@Override\n\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\tswitch (scrollState) {\n\t\tcase SCROLL_STATE_FLING:\n\t\t\tMap<String, Object>map=new HashMap<String, Object>();\n\t\t\tmap.put(\"pic\",R.drawable.ic_launcher);\n\t\t\tmap.put(\"text\", \"增加项\");\n\t\t\tdataList.add(map);\n\t\t\tsim_adp.notifyDataSetChanged();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\t}", "private void updateGuardianList() {\n guardiansName = new ArrayList();\n guardiansPhone = new ArrayList();\n guardianRegId = new ArrayList();\n Cursor c = db.rawQuery(\"SELECT * FROM guardians\", null);\n if(c.getCount()==0){\n Log.d(\"tag\", \"No record found\");\n }else {\n while (c.moveToNext()){\n guardiansPhone.add(c.getString(0));\n guardiansName.add(c.getString(1));\n guardianRegId.add(c.getString(2));\n }\n Log.d(\"tag\", \"Guardians: name \"+guardiansName+\" phone \"+guardiansPhone+\" regId:\"+guardianRegId);\n //insert db records to list view\n adapter = new ArrayAdapter(getActivity(), android.R.layout.simple_expandable_list_item_1, guardiansName);\n guardians_list.setAdapter(adapter);\n //set the list to be clickable\n guardians_list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //snackbar to display option for guardian list\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 }\n });\n guardians_list.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n @Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n String message = String.valueOf(guardiansName.get(position));\n clickedGuardian = new String[]{String.valueOf(guardiansPhone.get(position))};\n snackbar = Snackbar.make(getActivity().findViewById(R.id.myCoordinatorLayout), message, Snackbar.LENGTH_LONG);\n snackbar.setAction(R.string.Remove, new RemoveGuardian());\n snackbar.show();\n return true;\n }\n });\n }\n }", "void onItemsLoadComplete() {\n adapter.notifyDataSetChanged();\n\n // Stop refresh animation\n srl.setRefreshing(false);\n }", "@Override\n public View getView(final int position, View convertView, final ViewGroup parent) {\n final ViewHolder holder;\n final Item temp = (Item) data.get(position);\n if (convertView == null) {\n LayoutInflater inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n convertView = inflater.inflate(R.layout.item_check_listview_layout, null, true);\n\n holder= new ViewHolder();\n holder.itemIDTextView =(TextView) convertView.findViewById(R.id.itemIDTextView);\n holder.itemNameTextView=(TextView) convertView.findViewById(R.id.itemNameTextView);\n holder.itemUnitTextView=(TextView)convertView.findViewById(R.id.itemUnitTextView);\n holder.itemQuantityEditText=(EditText)convertView.findViewById(R.id.itemQuantityEditText);\n convertView.setTag(holder);\n }\n //currPosition=position;\n //Create Control views\n else\n holder = (ViewHolder) convertView.getTag();\n //Set data\n\n holder.indexReference = position;\n holder.itemIDTextView.setText(Integer.toString(temp.getItemID()));\n holder.itemNameTextView.setText(temp.getItemName());\n holder.itemUnitTextView.setText(temp.getUnit());\n DecimalFormat decimalFormat = new DecimalFormat(\"#.##\");\n holder.itemQuantityEditText.setText(decimalFormat.format(temp.getQuantity()));\n //Update dataset after change\n //notifyDataSetChanged();\n //preventValueChange(position);\n holder.itemQuantityEditText.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (!hasFocus) {\n LinearLayout _parent = (LinearLayout) v.getParent();\n EditText quantityEditText = (EditText) _parent.findViewById(R.id.itemQuantityEditText);\n try {\n data.get(position).setQuantity(new BigDecimal(quantityEditText.getText().toString()));\n }\n catch(Exception e){data.get(position).setQuantity(new BigDecimal(0));}\n //notifyDataSetChanged();\n }\n }\n });\n holder.itemQuantityEditText.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n //arrayItem[holder.indexReference]= s.toString();\n //data.get(holder.indexReference).setQuantity(Long.parseLong(s.toString()));\n //Toast.makeText(activity.getBaseContext(), s.toString()+\" update \"+data.get(holder.indexReference).getItemName() , Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n //arrayItem[holder.indexReference]= s.toString();\n\n try {\n data.get(holder.indexReference).setQuantity(new BigDecimal(s.toString()));\n }\n catch(Exception e){data.get(holder.indexReference).setQuantity(new BigDecimal(0));}\n //notifyDataSetChanged();\n }\n });\n\n return convertView;\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmAdapter.notifyDataSetChanged(mDataArrays);\n\t\t\t\t\tmListView.setSelection(mListView.getCount() - 1);\n\t\t\t\t}", "private void update(int position) {\n File f = list_items[position];\n list_items = f.listFiles();\n notifyDataSetChanged();\n }", "@Override\n public void updateItem(DataModel newItem, int position) {\n\n deleteItem(position);\n originalData.add(0, newItem);\n currentData.add(0, newItem);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode,Intent pData) {\n\n super.onActivityResult(requestCode, resultCode, pData);\n Cursor cursor=db.displaydetails();\n final int tot_items_db=cursor.getCount();\n ///////////////////////////////////////////////////////////////////////////\n if(requestCode==1 && tot_items_db==tot_items_list+1)\n {\n getlastitemfromdatabase();\n if(isitempresent) {\n customadapter = new customadapter(medhistory.this, doc_name, med_name, illness_name, date, totalcost, numpills);\n listv.setAdapter(customadapter);\n listv.post(new Runnable() {\n @Override\n public void run() {\n listv.smoothScrollToPosition(tot_items_db-1);\n }\n });\n listv.setLayoutManager(new LinearLayoutManager(medhistory.this,LinearLayoutManager.VERTICAL,true));\n }\n }\n }", "@Override\n public void onBindViewHolder(DetailAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mTextView.setText(mDataset[position]);\n holder.informacion.setText(mDataset[position]); //informacion es el dato que nos entrega el arreglo\n }", "private void setRecyclerViewData() {\n }" ]
[ "0.6836816", "0.68129915", "0.67781585", "0.6734127", "0.6725654", "0.6673148", "0.6672339", "0.6650364", "0.65460616", "0.6514446", "0.6466129", "0.6436837", "0.6418116", "0.64079946", "0.6404983", "0.6399486", "0.6378021", "0.6371973", "0.6340514", "0.6327395", "0.6323349", "0.63163674", "0.63114923", "0.6282849", "0.62695086", "0.62438476", "0.6223794", "0.62095577", "0.6188852", "0.6176162", "0.6176162", "0.6170951", "0.6156073", "0.6142186", "0.6128644", "0.6122055", "0.610134", "0.60864675", "0.60775715", "0.607391", "0.6073261", "0.6067419", "0.6057303", "0.60571116", "0.6056704", "0.6052315", "0.60503083", "0.6040001", "0.6039483", "0.6037867", "0.6034486", "0.6026928", "0.601894", "0.60145265", "0.6013893", "0.60094845", "0.60075086", "0.60073805", "0.59952325", "0.5988163", "0.5988162", "0.59861946", "0.5976333", "0.5967091", "0.59615314", "0.5957892", "0.5955677", "0.595406", "0.59536916", "0.5953197", "0.5948709", "0.59467727", "0.5945166", "0.5943696", "0.59390783", "0.59369814", "0.593559", "0.59350914", "0.59264666", "0.59238464", "0.59207404", "0.5915339", "0.5911314", "0.59084934", "0.590108", "0.58929163", "0.58888227", "0.5883867", "0.58804876", "0.587786", "0.58710635", "0.5858563", "0.585839", "0.5857589", "0.58558375", "0.58551073", "0.5852051", "0.5840567", "0.5835799", "0.58357084", "0.58290803" ]
0.0
-1
private final String _pathForFiles = "." + File.separator + "dataTest" + File.separator;
public static Test suite() { // the type safe way is in SimpleTest // the dynamic way : return new TestSuite(DSetOfActivitiesInSitesTest.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Path getDataDirectory();", "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "abstract public String getDataResourcesDir();", "@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"\n +fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"\n +fSeparator+\"Test1\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createFilePath(path);\n assertEquals(\"Some message\",expResult, result);\n }", "public static void main(String[] args) { String dirname = \"/home/diego/IdeaProjects/JAVAStuff/src/tmp/dirTest.txt\";\n// File d = new File(dirname);\n// d.mkdirs();\n//\n File file = null;\n String[] paths;\n\n try {\n file = new File(\"/home/diego/IdeaProjects/JAVAStuff/src\");\n paths = file.list();\n\n for(String s: paths) {\n System.out.println(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "@Test\n public void filePathTest() {\n // TODO: test filePath\n }", "public File getDataFolder() {\n return dataFolder;\n }", "private static File getTestDataDir() {\n File ancestor = new File(\".\");\n try {\n ancestor = ancestor.getCanonicalFile();\n } catch (IOException e) {\n throw new RuntimeException(\n \"Couldn't get canonical name of working directory.\", e);\n }\n while (ancestor != null && ancestor.exists()) {\n if (new File(ancestor, \"src/google/protobuf\").exists()) {\n return new File(ancestor, \"src/google/protobuf/testdata\");\n }\n ancestor = ancestor.getParentFile();\n }\n\n throw new RuntimeException(\n \"Could not find golden files. This test must be run from within the \" +\n \"protobuf source package so that it can read test data files from the \" +\n \"C++ source tree.\");\n }", "public String getDataDir() {\n\t\treturn dataDir;\n\t}", "private static File getTestDataDir() {\n File ancestor = new File(System.getProperty(\"protobuf.dir\", \".\"));\n String initialPath = ancestor.getAbsolutePath();\n try {\n ancestor = ancestor.getCanonicalFile();\n } catch (IOException e) {\n throw new RuntimeException(\n \"Couldn't get canonical name of working directory.\", e);\n }\n while (ancestor != null && ancestor.exists()) {\n if (new File(ancestor, \"src/google/protobuf\").exists()) {\n return new File(ancestor, \"src/google/protobuf/testdata\");\n }\n ancestor = ancestor.getParentFile();\n }\n\n throw new RuntimeException(\n \"Could not find golden files. This test must be run from within the \" +\n \"protobuf source package so that it can read test data files from the \" +\n \"C++ source tree: \" + initialPath);\n }", "public String getDataFilePath() {\r\n \t\treturn dataFile;\r\n \t}", "public static String getDataDir(String path) {\n\t\tFile dir = new File(System.getProperty(\"user.dir\"));\n\t\tif (!(dir.toString().endsWith(\"samples\")))\n\t\t\tdir = dir.getParentFile();\n\t\tdir = new File(dir, \"resources\");\n\t\tdir = new File(dir, path);\n\t\tif (dir.isDirectory() == false)\n\t\t\tdir.mkdir();\n\t\treturn dir.toString();\n\t}", "public String getDataPath() {\n\t\treturn \"data\";\r\n\t}", "Data() throws IOException {\n // Initialise new default path from scratch\n path = Path.of(\"src/main/data/duke.txt\");\n new File(\"src/main/data\").mkdirs();\n new File(path.toString()).createNewFile();\n }", "public FileStorage(File path) {\n dataFolder = path;\n }", "public String getPFDataPath() {\n\t\t// TODO Auto-generated method stub\n\t\tString path = pfDir.getPath()+\"/data/\";\n\t\treturn path;\n\t}", "String getFilepath();", "@Test\n public void testGetDataAccessResultsDir3() {\n System.out.println(\"getDataAccessResultsDir3\");\n\n final String key = \"saveDataDir\";\n\n preferences.put(key, System.getProperty(\"user.dir\"));\n\n final File expResult = new File(System.getProperty(\"user.dir\"));\n final Path expectedPath = Paths.get(expResult.getAbsolutePath());\n \n final File result = DataAccessPreferenceUtilities.getDir(key);\n final Path resultantPath = Paths.get(result.getAbsolutePath());\n\n assertEquals(resultantPath.normalize(), expectedPath.normalize());\n\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDir(), expResult);\n }", "@Test\n public void testGetDataAccessResultsDirEx() {\n System.out.println(\"getDataAccessResultsDirEx\");\n\n final String key = \"saveDataDir\";\n\n preferences.put(key, System.getProperty(\"user.dir\"));\n\n final File expResult = new File(System.getProperty(\"user.dir\"));\n final File result = DataAccessPreferenceUtilities.getDir(key);\n final Path expectedPath = Paths.get(expResult.getAbsolutePath());\n final Path resultantPath = Paths.get(result.getAbsolutePath());\n\n assertEquals(resultantPath.normalize(), expectedPath.normalize());\n\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDir(), expResult);\n\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDirEx(), expResult);\n }", "@Test\n public void testGetFile() {\n System.out.println(\"getFile with valid path of existing folder with 2 subfiles\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\n \"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"+fSeparator+\"Texnologia2\"+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n File expResult = new File(path+fSeparator+\"testImg.jpg\");\n File result;\n try{\n result = instance.getFile(path);\n }catch(EntryException ex){\n result = null;\n }\n assertEquals(\"Some message\",expResult, result);\n }", "public String getDataDirectory() {\n return dataDirectory;\n }", "private File getDataDir(){\n\t\tFile file = new File(this.configManager.getConfigDirectory() +\n\t\t\t\tFile.separator + \n\t\t\t\tDATA_DIR);\n\t\t\n\t\tif(!file.exists()){\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t\n\t\treturn file;\n\t}", "static Path getFlightTestDataRoot() {\n return getTestDataRoot().resolve(\"flight\");\n }", "protected String getFileNamePath()\n {\n String sep = System.getProperty(\"file.separator\", \"/\");\n// String path = System.getProperty(\"user.dir\", \".\");\n\n String filename = getPath() + sep + \"sec.dat\";\n\n return filename;\n }", "public void testFilesDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"files\");\n assertEquals(file, new File(rootBlog.getFilesDirectory()));\n assertTrue(file.exists());\n }", "@Test\n public void testGetFilesList() {\n System.out.println(\"getFilesList from existing folder with existing subfiles\");\n String entryPath = folder.toString()+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n String[] expResult = new String[2];\n expResult[0] = \"testImg.jpg\";\n expResult[1] = \"testImg2.jpg\";\n String[] result;\n try{\n result = instance.getFilesList(entryPath);\n }catch(EntryException ex){\n result = null;\n }\n assertArrayEquals(expResult, result);\n }", "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "@Test\n public void testGetDataAccessResultsDir() throws IOException {\n System.out.println(\"getDataAccessResultsDir\");\n\n final String key = \"saveDataDir\";\n File tempFile = null;\n try {\n tempFile = File.createTempFile(\"testfile\", \".txt\");\n\n final String path = tempFile == null ? \"\" : tempFile.getAbsolutePath();\n\n preferences.put(key, path);\n \n final File result = DataAccessPreferenceUtilities.getDir(key);\n\n // Verify mock is working correctly\n assertEquals(result, tempFile);\n\n // Verify no file is returned because it needs to be a directory\n final File expResult = null;\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDir(), expResult);\n } finally {\n // Cleanup\n if (tempFile != null && tempFile.exists()) {\n tempFile.delete();\n }\n }\n }", "public InputSystemTests() throws URISyntaxException {\n URI uri = ClassLoader.getSystemResource(txtTestFilenameList.get(0)).toURI();\n databaseInstance.setTaxpayersInfoFilesPath(Paths.get(uri).getParent().toString());\n }", "@Override\n protected File getDataFile(String relFilePath) {\n return new File(getDataDir(), relFilePath);\n }", "public FileTest() {\n }", "public File prepareDataFolder() {\n if (!dataFolder.exists()) {\n dataFolder.mkdirs();\n }\n return dataFolder;\n }", "public fileReaderTest()\n {\n }", "FsPath baseDir();", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "@Test\n public void testConstructor_Custom_Store_File() {\n\n File file = new File(\n System.getProperty(\"java.io.tmpdir\") + File.separator + \"oasis-list-testConstructor_Custom_Store_File\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n }", "abstract File getResourceDirectory();", "public ResourcePath() {\n //_externalFolder = \"file:///C:/Program%20Files/ESRI/GPT9/gpt/\";\n //_localFolder = \"gpt/\";\n}", "@Test\n public void testGetDataAccessResultsDir2() {\n System.out.println(\"getDataAccessResultsDir2\");\n\n final String key = \"\";\n\n // key is null in preferences\n \n final File expResult = null;\n final File result = DataAccessPreferenceUtilities.getDir(key);\n\n assertEquals(result, expResult);\n\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDir(), expResult);\n }", "@Override\n protected String getFileSeparator() { return \"/\"; }", "public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}", "public File getDataFile();", "@Test\n public void testSaveStoredData() throws Exception {\n System.out.println(\"saveStoredData\");\n instance.saveStoredData();\n File f = new File(Store.class.getClassLoader().getResource(\"store.data\").getPath());\n assertTrue(f.isFile());\n }", "public List<Path> getTestFiles() throws Exception {\n try (Stream<Path> stream = Files.list(Paths.get(BibTeXMLImporterTest.class.getResource(\"\").toURI()))) {\n return stream.filter(p -> !Files.isDirectory(p)).collect(Collectors.toList());\n }\n\n }", "@Test\n public void testGetDataAccessResultsDirEx2() throws IOException {\n System.out.println(\"getDataAccessResultsDirEx2\");\n\n final String key = \"saveDataDir\";\n File tempFile = null;\n try {\n tempFile = File.createTempFile(\"testfile\", \".txt\");\n\n final String path = tempFile == null ? \"\" : tempFile.getAbsolutePath();\n\n preferences.put(key, path);\n\n final File result = DataAccessPreferenceUtilities.getDir(key);\n\n // Verify mock is working correctly\n assertEquals(result, tempFile);\n\n // Verify no file is returned because it needs to be a directory\n final File expResult = null;\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDir(), expResult);\n\n // Verify that a file is returned because it does not care about directory.\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDirEx(), tempFile);\n } finally {\n // Cleanup\n if (tempFile != null && tempFile.exists()) {\n tempFile.delete();\n }\n }\n }", "@Test\n public void testSetDataAccessResultsDir2() throws IOException {\n System.out.println(\"setDataAccessResultsDir2\");\n\n final String previousDir = \"prevSaveDataDir\";\n final String currentDir = \"saveDataDir\";\n\n assertEquals(preferences.get(currentDir, null), null);\n assertEquals(preferences.get(previousDir, null), null);\n\n File dir = null;\n try {\n dir = File.createTempFile(\"testfile\", \".txt\");\n\n DataAccessPreferenceUtilities.setDataAccessResultsDir(dir);\n\n assertEquals(preferences.get(currentDir, null), \"\");\n assertEquals(preferences.get(previousDir, null), null);\n\n } finally {\n // Cleanup\n if (dir != null && dir.exists()) {\n dir.delete();\n }\n }\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 }", "public static void init(){\n Path path = FileDirectoryUtil.getPath(\"src\", \"fileIO\", \"test.txt\");\n FileDirectoryUtil.tryCreateDirectory(path);\n\n // Try to create the file\n path = Paths.get(path.toAbsolutePath().toString(), \"test.txt\");\n FileDirectoryUtil.tryCreateFile(path);\n\n // Print out the final location of the file\n System.out.println(path.toAbsolutePath());\n\n // Try to write to the file\n IOUtil.tryWriteToFile(getContent(), path);\n\n // Try to print the content of the file\n IOUtil.tryPrintContents(path);\n\n }", "private void loadDataTesting(String location) throws IOException {\r\n \t\r\n File parentDir = new ClassPathResource(location).getFile();\r\n testWriter.write(\"Data folder found.\");\r\n\r\n // Divide all data to training and testing datasets\r\n FileSplit filesInDir = new FileSplit(parentDir, allowedExtensions, randNumGen);\r\n testWriter.write(\"Data split created.\");\r\n\r\n // Create ParentPathLabelGenerator, that will parse the parent dir and use the name of the subdirectories as label/class names\r\n ParentPathLabelGenerator labelMaker = new ParentPathLabelGenerator();\r\n BalancedPathFilter pathFilter = new BalancedPathFilter(randNumGen, allowedExtensions, labelMaker);\r\n testWriter.write(\"Label generators created.\");\r\n\r\n ImageRecordReader testRecordReader = new ImageRecordReader(inputShape[1],inputShape[2],inputShape[0], labelMaker);\r\n testRecordReader.initialize(filesInDir);\r\n testWriter.write(\"Data iterators created successfully.\");\r\n\r\n // Get the number of labels, ImageRecordReader founded in dir and check it\r\n int outputNum = testRecordReader.numLabels();\r\n finalTestIterator = new RecordReaderDataSetIterator(testRecordReader, batchSizeTesting, labelIndex, outputNum);\r\n finalTestIterator.setCollectMetaData(true);\r\n testWriter.write(\"Data iterators setted to collect metadata.\");\r\n\r\n // Load files with images from file system\r\n testWriter.write(\"Started loading testing files...\");\r\n loadFiles(\"J:\\\\Tests\\\\11.02.19 vers2\\\\EmotionsRecognitionVGG16_GUI\\\\src\\\\test_data\");\r\n testWriter.write(\"Testing files loaded successfully!\");\r\n }", "public DatabeneFormatsTestDataProvider() {\n this.basePath = SystemInfo.getCurrentDir();\n }", "public void testGetAbsolutePath_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\n\t\tString result = fixture.getAbsolutePath();\n\n\t\t\n\t\tassertEquals(\"\", result);\n\t}", "String getFilePath();", "public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }", "@Test\n public void testGetSubDirectories() {\n System.out.println(\"getSubDirectories from a folder containing 2 subdirectories\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"\n +fSeparator+\"Entries\";\n \n FilesDao instance = new FilesDao();\n File entriesFile = new File(path);\n File subFolder;\n String[] children = entriesFile.list();\n File[] expResult = new File[entriesFile.list().length];\n \n for(int i=0;i<entriesFile.list().length;i++)\n {\n subFolder = new File(path+fSeparator+children[i]);\n if(subFolder.isDirectory())\n expResult[i] = subFolder; \n }\n \n File[] result = instance.getSubDirectories(path);\n \n assertArrayEquals(expResult, result);\n }", "public String getDir();", "Path getBaseInputDir();", "@Test\n public void testFileInDirectoryFileDoesNotExists() {\n\n assertFalse(parent.fileInDirectory(\"file1\"));\n }", "@Override\r\n public void dirToPath(String[] arr) {\n\r\n }", "@Test\n public void loadFromFileWithWrongConnects() throws Exception{\n fileInOut.setFilePath(\"src/wrongConnects\");\n fileInOut.loadFromFile();\n }", "public interface IPathConstants \n{\n\tString PropertyFilePath = \"./src/test/resources/commondata.properties\";\n\tString JsonFilePath\t = \"./commonData.json\";\n\tString ExcelPath = \"./src/test/resources/testdata.xlsx\";\n\t\n }", "public static String getPath() { return Objects.requireNonNull(Bukkit.getServer().getPluginManager().getPlugin(\"Catacombs\"))\n .getDataFolder().getAbsolutePath(); }", "@Test\n\tpublic void test(){\n\t\tFile srcFile = new File(\"E:\\\\Workspaces\\\\MyPro\\\\ssh\\\\WebRoot\\\\products\\\\2\\\\男鞋\");\n//\t\tSystem.out.println(ss);\n\t\tthis.getAllJavaFilePaths(srcFile);\n\t}", "public interface Constants {\r\n\t/**\r\n\t * Example directory.\r\n\t */\r\n\tPath EXAMPLE_DIR = Path.of(\"src/main/resources\");\r\n\t/**\r\n\t * Example XML file.\r\n\t */\r\n\tPath EXAMPLE_PATH = Path.of(EXAMPLE_DIR.toString(), \"example.xml\");\r\n\t/**\r\n\t * Example text file name.\r\n\t */\r\n\tString EXAMPLE_TXT_FILE_NAME = \"example.txt\";\r\n\t/**\r\n\t * Example ZIP file name.\r\n\t */\r\n\tString EXAMPLE_ZIP_FILE_NAME = \"example.zip\";\r\n\t/**\r\n\t * Example ZIP file.\r\n\t */\r\n\tPath EXAMPLE_ZIP_PATH = Path.of(EXAMPLE_DIR.toString(), EXAMPLE_ZIP_FILE_NAME);\r\n\t/**\r\n\t * Example ZIP file entry.\r\n\t */\r\n\tString EXAMPLE_ZIP_ENTRY = \"data/example.xml\";\r\n\t/**\r\n\t * Example properties file.\r\n\t */\r\n\tPath EXAMPLE_PROPERTIES_PATH = Path.of(System.getProperty(\"user.dir\"), EXAMPLE_DIR.toString(),\r\n\t\t\t\"example.properties\");\r\n\t/**\r\n\t * Length of string to read.\r\n\t */\r\n\tString XML_CONTENT = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\";\r\n}", "@Test\n public void fileIdTest() {\n // TODO: test fileId\n }", "@Test\n public void testConstructor_Custom_Store_String() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testConstructor_Custom_Store_String\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file.getAbsolutePath());\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n\n }", "String getDir();", "Path getFilePath();", "private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }", "@Test\n public void testGetSubFiles() {\n System.out.println(\"getSubFiles from Existing path with 2 images\");\n String path = folder.toString()+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n \n File firstImageFile = new File(path+fSeparator+\"testImg.jpg\");\n File secondImageFile = new File(path+fSeparator+\"testImg2.jpg\");\n List<URI> expResult = new ArrayList<URI>();\n expResult.add(firstImageFile.toURI());\n expResult.add(secondImageFile.toURI());\n List<URI> result;\n try{\n result = instance.getSubFiles(path);\n }catch(EntryException ex){\n result = null;\n }\n assertEquals(\"Some message\",expResult, result);\n }", "public void save() {\r\n File distDataFile = new File(path);\r\n\r\n //String basePath = path;\r\n String endOfPath = path.substring(path.lastIndexOf(\"/\"));\r\n\r\n File rootDataFile;\r\n if (!path.contains(\"artists\")) {\r\n rootDataFile = new File(BASEDIR + \"/resources/data\" + endOfPath);\r\n } else {\r\n rootDataFile = new File(BASEDIR + \"/resources/data/artists\" + endOfPath);\r\n }\r\n\r\n File distTempFile = new File(path.substring(0, path.lastIndexOf(\"/\")) + \"/myTempFile.txt\");\r\n\r\n File rootTempFile;\r\n if (!path.contains(\"artists\")) {\r\n rootTempFile = new File(BASEDIR + \"/resources/data/myTempFile.txt\");\r\n } else {\r\n rootTempFile = new File(BASEDIR + \"/resources/data/artists/myTempFile.txt\");\r\n }\r\n \r\n try {\r\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(distTempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw.write(line);\r\n bw.newLine();\r\n }\r\n\r\n bw.close();\r\n distDataFile.delete();\r\n distTempFile.renameTo(distDataFile);\r\n\r\n BufferedWriter bw2 = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(rootTempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw2.write(line);\r\n bw2.newLine();\r\n }\r\n\r\n bw2.close();\r\n rootDataFile.delete();\r\n rootTempFile.renameTo(rootDataFile);\r\n } catch (IOException ex) {\r\n System.out.println(\"IOExceptoin in save1 : FileData\");\r\n }\r\n }", "@Test\n public void testSetDataAccessResultsDir3() {\n System.out.println(\"setDataAccessResultsDir3\");\n\n final String previousDir = \"prevSaveDataDir\";\n final String currentDir = \"saveDataDir\";\n\n assertEquals(preferences.get(currentDir, null), null);\n assertEquals(preferences.get(previousDir, null), null);\n\n final File dir = new File(System.getProperty(\"user.dir\"));\n DataAccessPreferenceUtilities.setDataAccessResultsDir(dir);\n assertEquals(preferences.get(currentDir, null), dir.getAbsolutePath());\n assertEquals(preferences.get(previousDir, null), \"\");\n\n final File dir2 = new File(System.getProperty(\"user.home\"));\n DataAccessPreferenceUtilities.setDataAccessResultsDir(dir2);\n assertEquals(preferences.get(currentDir, null), dir2.getAbsolutePath());\n assertEquals(preferences.get(previousDir, null), dir.getAbsolutePath());\n }", "public File getScratchDir();", "public Data(String path) throws IOException {\n this.path = Paths.get(\"src/main/data/duke.txt\").toAbsolutePath();\n if (Files.notExists(this.path)) {\n new File(String.valueOf(path)).createNewFile();\n }\n }", "public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\n }", "@Test\n public void testSetDataAccessResultsDir() {\n System.out.println(\"setDataAccessResultsDir\");\n\n final String previousDir = \"prevSaveDataDir\";\n final String currentDir = \"saveDataDir\";\n\n assertEquals(preferences.get(currentDir, null), null);\n assertEquals(preferences.get(previousDir, null), null);\n\n final File dir = null;\n DataAccessPreferenceUtilities.setDataAccessResultsDir(dir);\n\n assertEquals(preferences.get(currentDir, null), \"\");\n assertEquals(preferences.get(previousDir, null), null);\n }", "public interface IPathConstant {\n\tString PROPERTY_FILEPATH=\"./src/main/resources/CommonData.properties\";\n\tString EXCELPATH=\"./src/test/resources/testdata.xlsx\";\n\tString JSONFILEPATH=\"\";\n\tString htmlPath=\"./extentReport\"+JavaUtility.getCurrentSystemDate()+\".html\";\n}", "@Test\n\tpublic void validFileDirectoryTest() {\n\t\t// Test valid file directory\n\t\tFile f = new File(workingDir);\n\t\tassertTrue(Helper.isValidDirectory(f));\n\n\t\t// Test valid file directory 2\n\t\tworkDir = new File(workingDir);\n\t\texpected = workDir.getAbsolutePath();\n\t\tactual = Helper.isValidDirectory(workDir, \"misc\");\n\t\tassertEquals(expected, actual.getAbsolutePath());\n\n\t\t// Test valid file directory 3\n\t\tworkDir = new File(workingDir);\n\t\texpected = workDir.getAbsolutePath() + pathSep + dirName; // Bugs: OS\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// compatible \\\\\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// changed to /\n\t\tactual = Helper.isValidDirectory(workDir, dirName);\n\t\tassertEquals(expected, actual.getAbsolutePath());\n\t}", "public static File getTestFile( String path )\r\n {\r\n return new File( getBasedir(), path );\r\n }", "@BeforeClass\n\tpublic static void setUpClass() {\n\t\tString resourcesDir = System.getProperty(\"user.dir\") + File.separator + \"src\" +\n File.separator + \"test\" + File.separator + \"resources\";\n\n tsmResources = resourcesDir + File.separator + \"tsm\";\n //testDir = new File(resourcesDir, \"tsm-output\"); \n\t}", "public abstract String getFileLocation();", "public FileData(String filePath) {\r\n //path = this.getClass().getResource(filePath).getPath();\r\n path = filePath;\r\n \r\n if (path.contains(\"%20\")) {\r\n path = path.replaceAll(\"%20\", \" \");\r\n }\r\n\r\n if (filePath.substring(filePath.length() - 4, filePath.length()).equals(\".txt\")) { // txt file\r\n try {\r\n BufferedReader br = new BufferedReader(new InputStreamReader(\r\n new FileInputStream(path), \"UTF-8\"));\r\n\r\n String line;\r\n while ((line = br.readLine()) != null) {\r\n data.add(line);\r\n }\r\n\r\n for (int i = 0; i < data.size(); i++) {\r\n dataTag.add(0);\r\n }\r\n br.close();\r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"FileData not found - \" + path);\r\n } catch (IOException ex) {\r\n System.out.println(\"IOExeption in Constructor : FileData\");\r\n }\r\n } else { // folder\r\n File folder = new File(path);\r\n for (File fileEntry : folder.listFiles()) {\r\n data.add(fileEntry.getName());\r\n }\r\n }\r\n }", "public DataFolder(String relativeFolderPath, String dataType) {\r\n this.relativeFolderPath = relativeFolderPath;\r\n this.dataType = dataType;\r\n }", "@Override\r\n protected String getDiskLocation()\r\n {\r\n return dataFile.getFilePath();\r\n }", "public File getDirectoryValue();", "@Test\n\tpublic void testSetFileInfo() {\n\n\t}", "public String getDataFileName() {\n return dataFileName;\n }", "@Override\n public boolean isDir() { return true; }", "@Test\n public void testGetSave_directory() {\n System.out.println(\"getSave_directory\");\n File_Chooser instance = new File_Chooser();\n String expResult = \"\";\n String result = instance.getSave_directory();\n assertEquals(expResult, result);\n }", "@Test\n void loadData() {\n }", "protected String getMethodSpecificTestDataFileName() {\r\n StringBuffer result = new StringBuffer()\r\n .append(TESTDATA+\"/\")\r\n .append(getClassNameWithoutPackage())\r\n .append(\"_\")\r\n .append(getName())\r\n .append(\".xml\");\r\n return result.toString();\r\n }", "String folderPath();", "public String getDataFileName() {\treturn dataFileName;\t}", "private Directories() {\n\n\t}", "java.lang.String getFilePath();", "public String addDataDir(String path) {\n ArrayList<File> dataDir = getDataDirectories();\n\n String tmp = \"These are paths to be indexed.\\n\";\n\n //Check input(s).\n if (path.isEmpty() || path.length() == 0) return \"Input error.\";\n\n //Split a string into many paths with ';'\n String[] paths = path.split(\";\");\n\n for (String dir : paths) {\n Path dir_path = Paths.get(dir);\n if (Files.exists(dir_path)) {\n if (!contains(dataDir, dir_path)) { //If path hasn't been added.\n dataDir.add(dir_path.toFile()); //Add a path into a list of directory to be indexed.\n watchDir(dir_path);\n tmp += dir_path.toString() + \"\\n\";\n } else {\n tmp += dir + \" is already added.\\n\";\n logger.info(dir + \" is a duplicated path.\");\n }\n } else {\n tmp += dir + \" is an incorrect path, Please enter an exist path.\\n\";\n logger.warning(dir + \" is an incorrect path, Please enter an exist path.\");\n }\n }\n return tmp; //Report back what path had been added.\n }", "@Test\n public void testGetPreviousDataAccessResultsDir3() {\n System.out.println(\"getPreviousDataAccessResultsDir3\");\n\n final String key = \"prevSaveDataDir\";\n\n preferences.put(key, System.getProperty(\"user.dir\"));\n\n final File expResult = new File(System.getProperty(\"user.dir\"));\n final File result = DataAccessPreferenceUtilities.getDir(key);\n final Path expectedPath = Paths.get(expResult.getAbsolutePath());\n final Path resultantPath = Paths.get(result.getAbsolutePath());\n\n assertEquals(resultantPath.normalize(), expectedPath.normalize());\n\n assertEquals(DataAccessPreferenceUtilities.getPreviousDataAccessResultsDir(), expResult);\n }", "private FileUtil() {}", "public void testGetBasedata() {\n }", "public DataInput( String filepath)\r\n {\r\n this.filepath = filepath;\r\n }", "public static void main(String[] args) {\n\n\t\tString filePath = FilePath.FILE_PATH;\n\t\t\n\t\ttry {\n\t\t\t// File 클래스는 자바에서 파일 및 폴더 객체를 다루는 클래스이다. \n\t\t\t// new File() : File 클래스의 인스턴스를 생성 \n\t\t\t// 실제 하드디스크에 물리적인 파일/폴더(디렉토리)를 생성하지 않는다. \n\t\t\t// 실제 파일/폴더(디렉토리)를 만들기 위해서는 File 클래스에 있는 함수를 호출해야 한다. \n\t\t\t// createNewFile(), mkdir(), mkdirs()\n\t\t\tFile f = new File(\"aaaaaa\");\n\t\t\tSystem.out.println(\"f >>> : \" + f);\n\t\t\tSystem.out.println(\"f.getName() >>> : \" + f.getName());\n\t\t\tboolean bf = f.createNewFile();\n\t\t\tSystem.out.println(\"bf >>> : \" + bf);\n\t\t\n\t\t\tboolean bdir = f.isDirectory();\n\t\t\tSystem.out.println(\"bdir >>> : \" + bdir);\n\t\t\tboolean bfile = f.isFile();\n\t\t\tSystem.out.println(\"bfile >>> : \" + bfile);\n\t\t\t\n\t\t\tString getPath = f.getPath(); // File에 입력된 경로 출력 \n\t\t\tSystem.out.println(\"getPath >>> : \" + getPath);\n\t\t\tString getAbsolutePath = f.getAbsolutePath(); // 현재경로 + 입력된 경로(연산되지 않은 경로)\n\t\t\tSystem.out.println(\"getAbsolutePath >>> : \" + getAbsolutePath);\n\t\t\tString getCanonicalPath = f.getCanonicalPath(); // 현재경로 + 입력된 경로(연산된 경로)\n\t\t\tSystem.out.println(\"getCanonicalPath >>> : \" + getCanonicalPath);\n\t\t\t\t\t\t\n\t\t\tFile f1 = new File(filePath + \"/\" + \"aaaaaa.txt\");\n\t\t\tSystem.out.println(\"f1 >>> : \" + f1);\n\t\t\tSystem.out.println(\"f1.getName() >>> : \" + f1.getName());\n\t\t\tboolean bf1 = f1.createNewFile();\n\t\t\tSystem.out.println(\"bf1 >>> : \" + bf1);\n\t\t\t\n\t\t\tboolean bdir1 = f1.isDirectory();\n\t\t\tSystem.out.println(\"bdir1 >>> : \" + bdir1);\n\t\t\tboolean bfile1 = f1.isFile();\n\t\t\tSystem.out.println(\"bfile1 >>> : \" + bfile1);\n\t\t\t\n\t\t\tString getPath1 = f1.getPath(); // File에 입력된 경로 출력 \n\t\t\tSystem.out.println(\"getPath1 >>> : \" + getPath1);\n\t\t\tString getAbsolutePath1 = f1.getAbsolutePath(); // 현재경로 + 입력된 경로(연산되지 않은 경로)\n\t\t\tSystem.out.println(\"getAbsolutePath1 >>> : \" + getAbsolutePath1);\n\t\t\tString getCanonicalPath1 = f1.getCanonicalPath(); // 현재경로 + 입력된 경로(연산된 경로)\n\t\t\tSystem.out.println(\"getCanonicalPath1 >>> : \" + getCanonicalPath1);\n\t\t\t\n\t\t}catch(Exception io) {\n\t\t\t\n\t\t}\t\t\n\t}", "private static void findPath()\r\n {\r\n String temp_path = System.getProperty(\"user.dir\");\r\n char last = temp_path.charAt(temp_path.length() - 1);\r\n if(last == 'g')\r\n {\r\n path = \".\";\r\n }\r\n else\r\n {\r\n path = \"./bag\";\r\n }\r\n \r\n }" ]
[ "0.70876014", "0.67001516", "0.66229177", "0.6578294", "0.6521176", "0.64803386", "0.6422781", "0.6417994", "0.64033455", "0.6388984", "0.63858956", "0.63568604", "0.630115", "0.6298282", "0.6286802", "0.62677455", "0.62595314", "0.624872", "0.6239925", "0.6226089", "0.6153292", "0.61294556", "0.6027651", "0.6002999", "0.5977677", "0.5974697", "0.59627694", "0.59535825", "0.5949894", "0.59364027", "0.5931412", "0.5914271", "0.59142405", "0.59093773", "0.5900807", "0.58909816", "0.5876133", "0.5866487", "0.5861558", "0.5850829", "0.58463037", "0.58393365", "0.58285064", "0.580411", "0.5795203", "0.5787545", "0.57702774", "0.5763863", "0.57560635", "0.57552224", "0.57269233", "0.5720329", "0.57139385", "0.57107776", "0.5704493", "0.5701586", "0.5690033", "0.56879866", "0.56870526", "0.56861854", "0.56742895", "0.5673896", "0.56371737", "0.56265205", "0.5625929", "0.5622489", "0.5618215", "0.5615897", "0.5612667", "0.5611517", "0.56063443", "0.5602594", "0.5597989", "0.5597051", "0.5593949", "0.5593564", "0.5574262", "0.5567222", "0.55661225", "0.55642337", "0.555986", "0.5559254", "0.55504405", "0.55400777", "0.5525856", "0.5525638", "0.5525493", "0.55157596", "0.5507383", "0.550538", "0.549741", "0.5487902", "0.5486757", "0.5486063", "0.5480291", "0.54739255", "0.54722625", "0.5453505", "0.54499763", "0.54499584", "0.5444507" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mView = inflater.inflate(R.layout.fragment_read, container, false); setRetainInstance(true); booksRef = FirebaseDatabase.getInstance().getReference().child("Book Requests"); gridLayoutManager = new GridLayoutManager(getActivity(), 2, LinearLayoutManager.VERTICAL, false); booksContainer = mView.findViewById(R.id.read_booksContainer); booksContainer.setHasFixedSize(true); booksContainer.setLayoutManager(gridLayoutManager); swipeRefreshLayout = mView.findViewById(R.id.mostPopularContainer); loadBooks(); swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { @Override public void onRefresh() { loadBooks(); swipeRefreshLayout.setRefreshing(false); } }); return mView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onProgressChanged(SeekBar skb, int prog, boolean fromUser) { MySurfaceView.redVal = prog; }
{ "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
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate(Void... values) {\r\n super.onProgressUpdate(values);\r\n invalidate();\r\n }", "@Override\n public void resetUploadProgress() {\n ProgressBarLogic.resetProgress();\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n super.onProgressUpdate(values);\r\n }", "@Override\n protected void onPreExecute() {\n myProgress = 0;\n }", "@Override\n protected void onPreExecute() {\n progressDialog.setProgress(0);\n //progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n \tsuper.onProgressUpdate(values);\r\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }", "@Override\n\t protected void onProgressUpdate(Void... values) {\n\t }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}", "@Override\r\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n public void onUIProgressStart(long totalBytes) {\r\n super.onUIProgressStart(totalBytes);\r\n\r\n }", "@Override\n public void showProgress() {\n\n }", "@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}", "@Override\n protected void onPreExecute() {\n progressBar.setProgress(0);\n super.onPreExecute();\n }", "public void setProgress( boolean onOff );", "@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n\t}", "public void progressMade();", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar,\n\t\t\t\t\t\t\tint progress, boolean fromUser) {\n\t\t\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "@Override\r\n\tprotected void onProgressUpdate(Void... values) {\n\t\tsuper.onProgressUpdate(values);\r\n\r\n\t}", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n\r\n }", "protected void onProgressUpdate(Integer... progress) {\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressBar.setProgress(0);\n\t\t\tprogressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "protected void onReset() {\n // Do nothing.\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n if (mProgressDialog != null) {\n mProgressDialog.setProgress(progress[0]);\n }\n }", "void onShowProgress();", "@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t progressBar.setProgress(0);\n\t }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }", "void hideProgress();", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}", "@Override\n\t\t\tpublic void onProgress(ProgressMessage msg) {\n\n\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) {\n }", "@Override\n public void showProgressSync() {\n }", "public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "public void removeProgressListener() {\n this.listener = new SilentProgressListener();\n }", "public boolean loadProgress() {\n return false;\n }", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tloadingView.setProgress(values[0]);\n\t\t}", "@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }", "@MainThread\n @Override\n protected void onReset() {\n super.onReset();\n\n onStopLoading();\n\n releaseResources(mResult);\n mResult = null;\n\n doProgressSafe(false);\n }", "@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t}", "@Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "private void uploadingProgressBarInit() {\n uploadingProgressBar.setVisibility(VISIBLE);\n uploadingProgressBar.setProgress(0);\n }", "@Override\n\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\n\t}", "void startProgress();", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "private void fireProgressListenerStop() {\n if (progress == null) {\n return;\n }\n progress.stop(new ProgressEvent(this, ProgressEvent.STOP));\n }", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n super.onProgressUpdate(progress);\n // if we get here, length is known, now set indeterminate to false\n AudioActivity.sProgDialDownload.setIndeterminate(false);\n AudioActivity.sProgDialDownload.setMax(100);\n AudioActivity.sProgDialDownload.setProgress(progress[0]);\n }", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(WebView view, int newProgress) {\n\t\t\t\tsuper.onProgressChanged(view, newProgress);\n\t\t\t\tprogressBar.setProgress(newProgress);\n\t\t\t\tprogressBar.postInvalidate();\n\t\t\t\tif(newProgress==100)\n\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\n\t\t\t}", "private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n imageProvider.setUploading_status((float) progress[0]);\n // updating progress bar value\n if(progressBar != null) {\n if(progress[0] >= 100 && imageProvider.getUploaded()) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n progressBar.setProgress(progress[0]);\n }\n if(progress[0] >= 100 && haze!= null && imageProvider.getUploaded()){\n haze.setAlpha(0f);\n }\n if(progress[0] >= 100 && refreshImageButton!=null && !imageProvider.getUploaded()){\n refreshImageButton.setVisibility(View.INVISIBLE);\n }\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "@Override\n public void hideProgressBar() {\n MainActivity.sInstance.hideProgressBar();\n }", "@Override\n public void resume() {\n originProgress = 10;\n mSkbProgress.setProgress((int) originProgress);\n }", "void hideProgress() {\n removeProgressView();\n removeScreenshotView();\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n\n // Do things like update the progress bar\n }", "protected void onProgressUpdate(Integer... progress) {\n }", "public void setPending()\n\t{\n\t\tprogressBar.setString(XSTR.getString(\"progressBarWaiting\"));\n\t\tprogressBar.setIndeterminate(true);\n\t\tprogressBar.setValue(0);\n\t\t\n\t\tstoplightPanel.setPending();\n\t}", "private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n // 背景工作處理\"中\"更新的事\n\n }", "@Override\r\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\r\n\t\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\td(\"silv bar progress changed to \" + progress);\r\n\t\t\t\t\talterSILVT(progress);\r\n\t\t\t\t}", "@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }", "public void changed(ProgressEvent event) {\n\t\t\t}", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekArc seekArc, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tprog = progress;\n\t\t\t}", "@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "@Override\n public void onFinish() {\n holder.timerRunning = false;\n holder.progressBar.setProgress(0);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onCancelled(String retval) {\n super.onCancelled();\n\n etText.setValue(retval);\n butState.setValue(true);\n pbProgress.setValue(0);\n }", "public void onProgress(int pos);" ]
[ "0.7341755", "0.724073", "0.70493925", "0.70195323", "0.6991212", "0.698237", "0.6939527", "0.6939455", "0.6888742", "0.68491554", "0.68265516", "0.6801462", "0.6801462", "0.6789776", "0.67858356", "0.67699206", "0.6765015", "0.6763387", "0.6763387", "0.6751195", "0.6747221", "0.6744487", "0.67371804", "0.6734886", "0.6729697", "0.67255634", "0.6669752", "0.6669752", "0.6654877", "0.66493756", "0.6630447", "0.66249794", "0.6613003", "0.6600477", "0.6580442", "0.65802974", "0.6565333", "0.65613824", "0.65613824", "0.65479815", "0.6546622", "0.65406907", "0.6530219", "0.65234315", "0.6514131", "0.65096486", "0.6489962", "0.6488657", "0.6482281", "0.64804345", "0.64641714", "0.64613825", "0.6452691", "0.64521086", "0.64464796", "0.64368874", "0.643645", "0.6431355", "0.6427509", "0.6426544", "0.64264596", "0.6420424", "0.6420424", "0.6420424", "0.6410183", "0.6406706", "0.6393483", "0.63914806", "0.63914806", "0.6373737", "0.6371098", "0.6369086", "0.63685286", "0.63685286", "0.6367646", "0.63658434", "0.63639504", "0.63525784", "0.6335662", "0.6317595", "0.6314583", "0.6304792", "0.63043076", "0.6296882", "0.629532", "0.62882155", "0.62653434", "0.6263321", "0.62578523", "0.62552726", "0.62491775", "0.6239999", "0.6239999", "0.6237626", "0.6235627", "0.6229558", "0.62293386", "0.6227331", "0.6210479", "0.61999243", "0.6181416" ]
0.0
-1
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStopTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate(Void... values) {\r\n super.onProgressUpdate(values);\r\n invalidate();\r\n }", "@Override\n public void resetUploadProgress() {\n ProgressBarLogic.resetProgress();\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n super.onProgressUpdate(values);\r\n }", "@Override\n protected void onPreExecute() {\n myProgress = 0;\n }", "@Override\n protected void onPreExecute() {\n progressDialog.setProgress(0);\n //progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n \tsuper.onProgressUpdate(values);\r\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }", "@Override\n\t protected void onProgressUpdate(Void... values) {\n\t }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}", "@Override\r\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n public void onUIProgressStart(long totalBytes) {\r\n super.onUIProgressStart(totalBytes);\r\n\r\n }", "@Override\n public void showProgress() {\n\n }", "@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}", "@Override\n protected void onPreExecute() {\n progressBar.setProgress(0);\n super.onPreExecute();\n }", "public void setProgress( boolean onOff );", "@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n\t}", "public void progressMade();", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar,\n\t\t\t\t\t\t\tint progress, boolean fromUser) {\n\t\t\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "@Override\r\n\tprotected void onProgressUpdate(Void... values) {\n\t\tsuper.onProgressUpdate(values);\r\n\r\n\t}", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n\r\n }", "protected void onProgressUpdate(Integer... progress) {\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressBar.setProgress(0);\n\t\t\tprogressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "protected void onReset() {\n // Do nothing.\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n if (mProgressDialog != null) {\n mProgressDialog.setProgress(progress[0]);\n }\n }", "void onShowProgress();", "@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t progressBar.setProgress(0);\n\t }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }", "void hideProgress();", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}", "@Override\n\t\t\tpublic void onProgress(ProgressMessage msg) {\n\n\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) {\n }", "@Override\n public void showProgressSync() {\n }", "public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "public boolean loadProgress() {\n return false;\n }", "public void removeProgressListener() {\n this.listener = new SilentProgressListener();\n }", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tloadingView.setProgress(values[0]);\n\t\t}", "@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }", "@Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n }", "@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t}", "@MainThread\n @Override\n protected void onReset() {\n super.onReset();\n\n onStopLoading();\n\n releaseResources(mResult);\n mResult = null;\n\n doProgressSafe(false);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "private void uploadingProgressBarInit() {\n uploadingProgressBar.setVisibility(VISIBLE);\n uploadingProgressBar.setProgress(0);\n }", "@Override\n\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\n\t}", "void startProgress();", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "private void fireProgressListenerStop() {\n if (progress == null) {\n return;\n }\n progress.stop(new ProgressEvent(this, ProgressEvent.STOP));\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n super.onProgressUpdate(progress);\n // if we get here, length is known, now set indeterminate to false\n AudioActivity.sProgDialDownload.setIndeterminate(false);\n AudioActivity.sProgDialDownload.setMax(100);\n AudioActivity.sProgDialDownload.setProgress(progress[0]);\n }", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(WebView view, int newProgress) {\n\t\t\t\tsuper.onProgressChanged(view, newProgress);\n\t\t\t\tprogressBar.setProgress(newProgress);\n\t\t\t\tprogressBar.postInvalidate();\n\t\t\t\tif(newProgress==100)\n\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\n\t\t\t}", "private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n imageProvider.setUploading_status((float) progress[0]);\n // updating progress bar value\n if(progressBar != null) {\n if(progress[0] >= 100 && imageProvider.getUploaded()) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n progressBar.setProgress(progress[0]);\n }\n if(progress[0] >= 100 && haze!= null && imageProvider.getUploaded()){\n haze.setAlpha(0f);\n }\n if(progress[0] >= 100 && refreshImageButton!=null && !imageProvider.getUploaded()){\n refreshImageButton.setVisibility(View.INVISIBLE);\n }\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "@Override\n public void hideProgressBar() {\n MainActivity.sInstance.hideProgressBar();\n }", "@Override\n public void resume() {\n originProgress = 10;\n mSkbProgress.setProgress((int) originProgress);\n }", "void hideProgress() {\n removeProgressView();\n removeScreenshotView();\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n\n // Do things like update the progress bar\n }", "protected void onProgressUpdate(Integer... progress) {\n }", "public void setPending()\n\t{\n\t\tprogressBar.setString(XSTR.getString(\"progressBarWaiting\"));\n\t\tprogressBar.setIndeterminate(true);\n\t\tprogressBar.setValue(0);\n\t\t\n\t\tstoplightPanel.setPending();\n\t}", "private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n // 背景工作處理\"中\"更新的事\n\n }", "@Override\r\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\r\n\t\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\td(\"silv bar progress changed to \" + progress);\r\n\t\t\t\t\talterSILVT(progress);\r\n\t\t\t\t}", "@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }", "public void changed(ProgressEvent event) {\n\t\t\t}", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekArc seekArc, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tprog = progress;\n\t\t\t}", "@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }", "@Override\n public void onFinish() {\n holder.timerRunning = false;\n holder.progressBar.setProgress(0);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onCancelled(String retval) {\n super.onCancelled();\n\n etText.setValue(retval);\n butState.setValue(true);\n pbProgress.setValue(0);\n }", "public void onProgress(int pos);" ]
[ "0.7340984", "0.7243734", "0.7051509", "0.7021731", "0.69923043", "0.6982111", "0.69409794", "0.693948", "0.68885857", "0.6849252", "0.6828099", "0.6803504", "0.6803504", "0.67888975", "0.67872673", "0.67686766", "0.6767073", "0.67653555", "0.67653555", "0.6753095", "0.67483425", "0.67461", "0.67370063", "0.6733635", "0.6731511", "0.6726264", "0.6670807", "0.6670807", "0.6656706", "0.66511995", "0.66291577", "0.6624758", "0.66140956", "0.66023505", "0.65823215", "0.65802836", "0.65670425", "0.65632266", "0.65632266", "0.6547838", "0.65461004", "0.6542015", "0.6531197", "0.65229756", "0.6516051", "0.650805", "0.649211", "0.64904237", "0.6484211", "0.6481943", "0.646468", "0.6461072", "0.6452408", "0.6450949", "0.6449065", "0.64385605", "0.64377046", "0.6432829", "0.64292294", "0.6428517", "0.6426873", "0.6422163", "0.6422163", "0.6422163", "0.6410067", "0.64084315", "0.63932973", "0.6392888", "0.6392888", "0.63735694", "0.6370476", "0.63702166", "0.63702166", "0.63698894", "0.63673174", "0.63672405", "0.6363067", "0.63540304", "0.6335574", "0.6319478", "0.6313783", "0.6306066", "0.63030046", "0.6298387", "0.62970096", "0.6288625", "0.6267484", "0.6265489", "0.62595147", "0.6257064", "0.62525153", "0.62414724", "0.62414724", "0.623933", "0.6235897", "0.6229628", "0.62293154", "0.6227359", "0.6212968", "0.6202356", "0.6182616" ]
0.0
-1
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate(Void... values) {\r\n super.onProgressUpdate(values);\r\n invalidate();\r\n }", "@Override\n public void resetUploadProgress() {\n ProgressBarLogic.resetProgress();\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n super.onProgressUpdate(values);\r\n }", "@Override\n protected void onPreExecute() {\n myProgress = 0;\n }", "@Override\n protected void onPreExecute() {\n progressDialog.setProgress(0);\n //progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n \tsuper.onProgressUpdate(values);\r\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }", "@Override\n\t protected void onProgressUpdate(Void... values) {\n\t }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}", "@Override\r\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n public void onUIProgressStart(long totalBytes) {\r\n super.onUIProgressStart(totalBytes);\r\n\r\n }", "@Override\n public void showProgress() {\n\n }", "@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}", "@Override\n protected void onPreExecute() {\n progressBar.setProgress(0);\n super.onPreExecute();\n }", "public void setProgress( boolean onOff );", "@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n\t}", "public void progressMade();", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar,\n\t\t\t\t\t\t\tint progress, boolean fromUser) {\n\t\t\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "@Override\r\n\tprotected void onProgressUpdate(Void... values) {\n\t\tsuper.onProgressUpdate(values);\r\n\r\n\t}", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n\r\n }", "protected void onProgressUpdate(Integer... progress) {\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressBar.setProgress(0);\n\t\t\tprogressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "protected void onReset() {\n // Do nothing.\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n if (mProgressDialog != null) {\n mProgressDialog.setProgress(progress[0]);\n }\n }", "void onShowProgress();", "@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t progressBar.setProgress(0);\n\t }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }", "void hideProgress();", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}", "@Override\n\t\t\tpublic void onProgress(ProgressMessage msg) {\n\n\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) {\n }", "@Override\n public void showProgressSync() {\n }", "public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "public boolean loadProgress() {\n return false;\n }", "public void removeProgressListener() {\n this.listener = new SilentProgressListener();\n }", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tloadingView.setProgress(values[0]);\n\t\t}", "@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }", "@Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n }", "@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t}", "@MainThread\n @Override\n protected void onReset() {\n super.onReset();\n\n onStopLoading();\n\n releaseResources(mResult);\n mResult = null;\n\n doProgressSafe(false);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "private void uploadingProgressBarInit() {\n uploadingProgressBar.setVisibility(VISIBLE);\n uploadingProgressBar.setProgress(0);\n }", "@Override\n\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\n\t}", "void startProgress();", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "private void fireProgressListenerStop() {\n if (progress == null) {\n return;\n }\n progress.stop(new ProgressEvent(this, ProgressEvent.STOP));\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n super.onProgressUpdate(progress);\n // if we get here, length is known, now set indeterminate to false\n AudioActivity.sProgDialDownload.setIndeterminate(false);\n AudioActivity.sProgDialDownload.setMax(100);\n AudioActivity.sProgDialDownload.setProgress(progress[0]);\n }", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(WebView view, int newProgress) {\n\t\t\t\tsuper.onProgressChanged(view, newProgress);\n\t\t\t\tprogressBar.setProgress(newProgress);\n\t\t\t\tprogressBar.postInvalidate();\n\t\t\t\tif(newProgress==100)\n\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\n\t\t\t}", "private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n imageProvider.setUploading_status((float) progress[0]);\n // updating progress bar value\n if(progressBar != null) {\n if(progress[0] >= 100 && imageProvider.getUploaded()) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n progressBar.setProgress(progress[0]);\n }\n if(progress[0] >= 100 && haze!= null && imageProvider.getUploaded()){\n haze.setAlpha(0f);\n }\n if(progress[0] >= 100 && refreshImageButton!=null && !imageProvider.getUploaded()){\n refreshImageButton.setVisibility(View.INVISIBLE);\n }\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "@Override\n public void hideProgressBar() {\n MainActivity.sInstance.hideProgressBar();\n }", "@Override\n public void resume() {\n originProgress = 10;\n mSkbProgress.setProgress((int) originProgress);\n }", "void hideProgress() {\n removeProgressView();\n removeScreenshotView();\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n\n // Do things like update the progress bar\n }", "protected void onProgressUpdate(Integer... progress) {\n }", "public void setPending()\n\t{\n\t\tprogressBar.setString(XSTR.getString(\"progressBarWaiting\"));\n\t\tprogressBar.setIndeterminate(true);\n\t\tprogressBar.setValue(0);\n\t\t\n\t\tstoplightPanel.setPending();\n\t}", "private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n // 背景工作處理\"中\"更新的事\n\n }", "@Override\r\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\r\n\t\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\td(\"silv bar progress changed to \" + progress);\r\n\t\t\t\t\talterSILVT(progress);\r\n\t\t\t\t}", "@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }", "public void changed(ProgressEvent event) {\n\t\t\t}", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekArc seekArc, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tprog = progress;\n\t\t\t}", "@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }", "@Override\n public void onFinish() {\n holder.timerRunning = false;\n holder.progressBar.setProgress(0);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onCancelled(String retval) {\n super.onCancelled();\n\n etText.setValue(retval);\n butState.setValue(true);\n pbProgress.setValue(0);\n }", "public void onProgress(int pos);" ]
[ "0.7340984", "0.7243734", "0.7051509", "0.7021731", "0.69923043", "0.6982111", "0.69409794", "0.693948", "0.68885857", "0.6849252", "0.6828099", "0.6803504", "0.6803504", "0.67888975", "0.67872673", "0.67686766", "0.6767073", "0.67653555", "0.67653555", "0.6753095", "0.67483425", "0.67461", "0.67370063", "0.6733635", "0.6731511", "0.6726264", "0.6670807", "0.6670807", "0.6656706", "0.66511995", "0.66291577", "0.6624758", "0.66140956", "0.66023505", "0.65823215", "0.65802836", "0.65670425", "0.65632266", "0.65632266", "0.6547838", "0.65461004", "0.6542015", "0.6531197", "0.65229756", "0.6516051", "0.650805", "0.649211", "0.64904237", "0.6484211", "0.6481943", "0.646468", "0.6461072", "0.6452408", "0.6450949", "0.6449065", "0.64385605", "0.64377046", "0.6432829", "0.64292294", "0.6428517", "0.6426873", "0.6422163", "0.6422163", "0.6422163", "0.6410067", "0.64084315", "0.63932973", "0.6392888", "0.6392888", "0.63735694", "0.6370476", "0.63702166", "0.63702166", "0.63698894", "0.63673174", "0.63672405", "0.6363067", "0.63540304", "0.6335574", "0.6319478", "0.6313783", "0.6306066", "0.63030046", "0.6298387", "0.62970096", "0.6288625", "0.6267484", "0.6265489", "0.62595147", "0.6257064", "0.62525153", "0.62414724", "0.62414724", "0.623933", "0.6235897", "0.6229628", "0.62293154", "0.6227359", "0.6212968", "0.6202356", "0.6182616" ]
0.0
-1
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStopTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate(Void... values) {\r\n super.onProgressUpdate(values);\r\n invalidate();\r\n }", "@Override\n public void resetUploadProgress() {\n ProgressBarLogic.resetProgress();\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n super.onProgressUpdate(values);\r\n }", "@Override\n protected void onPreExecute() {\n myProgress = 0;\n }", "@Override\n protected void onPreExecute() {\n progressDialog.setProgress(0);\n //progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n \tsuper.onProgressUpdate(values);\r\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }", "@Override\n\t protected void onProgressUpdate(Void... values) {\n\t }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}", "@Override\r\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n public void onUIProgressStart(long totalBytes) {\r\n super.onUIProgressStart(totalBytes);\r\n\r\n }", "@Override\n public void showProgress() {\n\n }", "@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}", "@Override\n protected void onPreExecute() {\n progressBar.setProgress(0);\n super.onPreExecute();\n }", "public void setProgress( boolean onOff );", "@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n\t}", "public void progressMade();", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar,\n\t\t\t\t\t\t\tint progress, boolean fromUser) {\n\t\t\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "@Override\r\n\tprotected void onProgressUpdate(Void... values) {\n\t\tsuper.onProgressUpdate(values);\r\n\r\n\t}", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n\r\n }", "protected void onProgressUpdate(Integer... progress) {\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressBar.setProgress(0);\n\t\t\tprogressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "protected void onReset() {\n // Do nothing.\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n if (mProgressDialog != null) {\n mProgressDialog.setProgress(progress[0]);\n }\n }", "void onShowProgress();", "@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t progressBar.setProgress(0);\n\t }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }", "void hideProgress();", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}", "@Override\n\t\t\tpublic void onProgress(ProgressMessage msg) {\n\n\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) {\n }", "@Override\n public void showProgressSync() {\n }", "public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "public boolean loadProgress() {\n return false;\n }", "public void removeProgressListener() {\n this.listener = new SilentProgressListener();\n }", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tloadingView.setProgress(values[0]);\n\t\t}", "@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }", "@Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n }", "@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t}", "@MainThread\n @Override\n protected void onReset() {\n super.onReset();\n\n onStopLoading();\n\n releaseResources(mResult);\n mResult = null;\n\n doProgressSafe(false);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "private void uploadingProgressBarInit() {\n uploadingProgressBar.setVisibility(VISIBLE);\n uploadingProgressBar.setProgress(0);\n }", "@Override\n\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\n\t}", "void startProgress();", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "private void fireProgressListenerStop() {\n if (progress == null) {\n return;\n }\n progress.stop(new ProgressEvent(this, ProgressEvent.STOP));\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n super.onProgressUpdate(progress);\n // if we get here, length is known, now set indeterminate to false\n AudioActivity.sProgDialDownload.setIndeterminate(false);\n AudioActivity.sProgDialDownload.setMax(100);\n AudioActivity.sProgDialDownload.setProgress(progress[0]);\n }", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(WebView view, int newProgress) {\n\t\t\t\tsuper.onProgressChanged(view, newProgress);\n\t\t\t\tprogressBar.setProgress(newProgress);\n\t\t\t\tprogressBar.postInvalidate();\n\t\t\t\tif(newProgress==100)\n\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\n\t\t\t}", "private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n imageProvider.setUploading_status((float) progress[0]);\n // updating progress bar value\n if(progressBar != null) {\n if(progress[0] >= 100 && imageProvider.getUploaded()) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n progressBar.setProgress(progress[0]);\n }\n if(progress[0] >= 100 && haze!= null && imageProvider.getUploaded()){\n haze.setAlpha(0f);\n }\n if(progress[0] >= 100 && refreshImageButton!=null && !imageProvider.getUploaded()){\n refreshImageButton.setVisibility(View.INVISIBLE);\n }\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "@Override\n public void hideProgressBar() {\n MainActivity.sInstance.hideProgressBar();\n }", "@Override\n public void resume() {\n originProgress = 10;\n mSkbProgress.setProgress((int) originProgress);\n }", "void hideProgress() {\n removeProgressView();\n removeScreenshotView();\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n\n // Do things like update the progress bar\n }", "protected void onProgressUpdate(Integer... progress) {\n }", "public void setPending()\n\t{\n\t\tprogressBar.setString(XSTR.getString(\"progressBarWaiting\"));\n\t\tprogressBar.setIndeterminate(true);\n\t\tprogressBar.setValue(0);\n\t\t\n\t\tstoplightPanel.setPending();\n\t}", "private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n // 背景工作處理\"中\"更新的事\n\n }", "@Override\r\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\r\n\t\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\td(\"silv bar progress changed to \" + progress);\r\n\t\t\t\t\talterSILVT(progress);\r\n\t\t\t\t}", "@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }", "public void changed(ProgressEvent event) {\n\t\t\t}", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekArc seekArc, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tprog = progress;\n\t\t\t}", "@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }", "@Override\n public void onFinish() {\n holder.timerRunning = false;\n holder.progressBar.setProgress(0);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onCancelled(String retval) {\n super.onCancelled();\n\n etText.setValue(retval);\n butState.setValue(true);\n pbProgress.setValue(0);\n }", "public void onProgress(int pos);" ]
[ "0.7340984", "0.7243734", "0.7051509", "0.7021731", "0.69923043", "0.6982111", "0.69409794", "0.693948", "0.68885857", "0.6849252", "0.6828099", "0.6803504", "0.6803504", "0.67888975", "0.67872673", "0.67686766", "0.6767073", "0.67653555", "0.67653555", "0.6753095", "0.67483425", "0.67461", "0.67370063", "0.6733635", "0.6731511", "0.6726264", "0.6670807", "0.6670807", "0.6656706", "0.66511995", "0.66291577", "0.6624758", "0.66140956", "0.66023505", "0.65823215", "0.65802836", "0.65670425", "0.65632266", "0.65632266", "0.6547838", "0.65461004", "0.6542015", "0.6531197", "0.65229756", "0.6516051", "0.650805", "0.649211", "0.64904237", "0.6484211", "0.6481943", "0.646468", "0.6461072", "0.6452408", "0.6450949", "0.6449065", "0.64385605", "0.64377046", "0.6432829", "0.64292294", "0.6428517", "0.6426873", "0.6422163", "0.6422163", "0.6422163", "0.6410067", "0.64084315", "0.63932973", "0.6392888", "0.6392888", "0.63735694", "0.6370476", "0.63702166", "0.63702166", "0.63698894", "0.63673174", "0.63672405", "0.6363067", "0.63540304", "0.6335574", "0.6319478", "0.6313783", "0.6306066", "0.63030046", "0.6298387", "0.62970096", "0.6288625", "0.6267484", "0.6265489", "0.62595147", "0.6257064", "0.62525153", "0.62414724", "0.62414724", "0.623933", "0.6235897", "0.6229628", "0.62293154", "0.6227359", "0.6212968", "0.6202356", "0.6182616" ]
0.0
-1
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate(Void... values) {\r\n super.onProgressUpdate(values);\r\n invalidate();\r\n }", "@Override\n public void resetUploadProgress() {\n ProgressBarLogic.resetProgress();\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n super.onProgressUpdate(values);\r\n }", "@Override\n protected void onPreExecute() {\n myProgress = 0;\n }", "@Override\n protected void onPreExecute() {\n progressDialog.setProgress(0);\n //progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n \tsuper.onProgressUpdate(values);\r\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }", "@Override\n\t protected void onProgressUpdate(Void... values) {\n\t }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}", "@Override\r\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n public void onUIProgressStart(long totalBytes) {\r\n super.onUIProgressStart(totalBytes);\r\n\r\n }", "@Override\n public void showProgress() {\n\n }", "@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}", "@Override\n protected void onPreExecute() {\n progressBar.setProgress(0);\n super.onPreExecute();\n }", "public void setProgress( boolean onOff );", "@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n\t}", "public void progressMade();", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar,\n\t\t\t\t\t\t\tint progress, boolean fromUser) {\n\t\t\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "@Override\r\n\tprotected void onProgressUpdate(Void... values) {\n\t\tsuper.onProgressUpdate(values);\r\n\r\n\t}", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n\r\n }", "protected void onProgressUpdate(Integer... progress) {\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressBar.setProgress(0);\n\t\t\tprogressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "protected void onReset() {\n // Do nothing.\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n if (mProgressDialog != null) {\n mProgressDialog.setProgress(progress[0]);\n }\n }", "void onShowProgress();", "@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t progressBar.setProgress(0);\n\t }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }", "void hideProgress();", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}", "@Override\n\t\t\tpublic void onProgress(ProgressMessage msg) {\n\n\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) {\n }", "@Override\n public void showProgressSync() {\n }", "public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "public void removeProgressListener() {\n this.listener = new SilentProgressListener();\n }", "public boolean loadProgress() {\n return false;\n }", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tloadingView.setProgress(values[0]);\n\t\t}", "@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }", "@MainThread\n @Override\n protected void onReset() {\n super.onReset();\n\n onStopLoading();\n\n releaseResources(mResult);\n mResult = null;\n\n doProgressSafe(false);\n }", "@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t}", "@Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "private void uploadingProgressBarInit() {\n uploadingProgressBar.setVisibility(VISIBLE);\n uploadingProgressBar.setProgress(0);\n }", "@Override\n\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\n\t}", "void startProgress();", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "private void fireProgressListenerStop() {\n if (progress == null) {\n return;\n }\n progress.stop(new ProgressEvent(this, ProgressEvent.STOP));\n }", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n super.onProgressUpdate(progress);\n // if we get here, length is known, now set indeterminate to false\n AudioActivity.sProgDialDownload.setIndeterminate(false);\n AudioActivity.sProgDialDownload.setMax(100);\n AudioActivity.sProgDialDownload.setProgress(progress[0]);\n }", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(WebView view, int newProgress) {\n\t\t\t\tsuper.onProgressChanged(view, newProgress);\n\t\t\t\tprogressBar.setProgress(newProgress);\n\t\t\t\tprogressBar.postInvalidate();\n\t\t\t\tif(newProgress==100)\n\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\n\t\t\t}", "private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n imageProvider.setUploading_status((float) progress[0]);\n // updating progress bar value\n if(progressBar != null) {\n if(progress[0] >= 100 && imageProvider.getUploaded()) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n progressBar.setProgress(progress[0]);\n }\n if(progress[0] >= 100 && haze!= null && imageProvider.getUploaded()){\n haze.setAlpha(0f);\n }\n if(progress[0] >= 100 && refreshImageButton!=null && !imageProvider.getUploaded()){\n refreshImageButton.setVisibility(View.INVISIBLE);\n }\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "@Override\n public void hideProgressBar() {\n MainActivity.sInstance.hideProgressBar();\n }", "@Override\n public void resume() {\n originProgress = 10;\n mSkbProgress.setProgress((int) originProgress);\n }", "void hideProgress() {\n removeProgressView();\n removeScreenshotView();\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n\n // Do things like update the progress bar\n }", "protected void onProgressUpdate(Integer... progress) {\n }", "public void setPending()\n\t{\n\t\tprogressBar.setString(XSTR.getString(\"progressBarWaiting\"));\n\t\tprogressBar.setIndeterminate(true);\n\t\tprogressBar.setValue(0);\n\t\t\n\t\tstoplightPanel.setPending();\n\t}", "private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n // 背景工作處理\"中\"更新的事\n\n }", "@Override\r\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\r\n\t\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\td(\"silv bar progress changed to \" + progress);\r\n\t\t\t\t\talterSILVT(progress);\r\n\t\t\t\t}", "@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }", "public void changed(ProgressEvent event) {\n\t\t\t}", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekArc seekArc, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tprog = progress;\n\t\t\t}", "@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "@Override\n public void onFinish() {\n holder.timerRunning = false;\n holder.progressBar.setProgress(0);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onCancelled(String retval) {\n super.onCancelled();\n\n etText.setValue(retval);\n butState.setValue(true);\n pbProgress.setValue(0);\n }", "public void onProgress(int pos);" ]
[ "0.7341755", "0.724073", "0.70493925", "0.70195323", "0.6991212", "0.698237", "0.6939527", "0.6939455", "0.6888742", "0.68491554", "0.68265516", "0.6801462", "0.6801462", "0.6789776", "0.67858356", "0.67699206", "0.6765015", "0.6763387", "0.6763387", "0.6751195", "0.6747221", "0.6744487", "0.67371804", "0.6734886", "0.6729697", "0.67255634", "0.6669752", "0.6669752", "0.6654877", "0.66493756", "0.6630447", "0.66249794", "0.6613003", "0.6600477", "0.6580442", "0.65802974", "0.6565333", "0.65613824", "0.65613824", "0.65479815", "0.6546622", "0.65406907", "0.6530219", "0.65234315", "0.6514131", "0.65096486", "0.6489962", "0.6488657", "0.6482281", "0.64804345", "0.64641714", "0.64613825", "0.6452691", "0.64521086", "0.64464796", "0.64368874", "0.643645", "0.6431355", "0.6427509", "0.6426544", "0.64264596", "0.6420424", "0.6420424", "0.6420424", "0.6410183", "0.6406706", "0.6393483", "0.63914806", "0.63914806", "0.6373737", "0.6371098", "0.6369086", "0.63685286", "0.63685286", "0.6367646", "0.63658434", "0.63639504", "0.63525784", "0.6335662", "0.6317595", "0.6314583", "0.6304792", "0.63043076", "0.6296882", "0.629532", "0.62882155", "0.62653434", "0.6263321", "0.62578523", "0.62552726", "0.62491775", "0.6239999", "0.6239999", "0.6237626", "0.6235627", "0.6229558", "0.62293386", "0.6227331", "0.6210479", "0.61999243", "0.6181416" ]
0.0
-1
do nothing, as everything I need it to do is in the progressChanged method
@Override public void onStopTrackingTouch(SeekBar seekBar) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}", "@Override\r\n\tprotected void progressFinished() {\n\t}", "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\r\n protected void onProgressUpdate(Void... values) {\r\n super.onProgressUpdate(values);\r\n invalidate();\r\n }", "@Override\n public void resetUploadProgress() {\n ProgressBarLogic.resetProgress();\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n super.onProgressUpdate(values);\r\n }", "@Override\n protected void onPreExecute() {\n myProgress = 0;\n }", "@Override\n protected void onPreExecute() {\n progressDialog.setProgress(0);\n //progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }", "@Override\r\n protected void onProgressUpdate(Void... values) {\n \tsuper.onProgressUpdate(values);\r\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }", "@Override\n\t protected void onProgressUpdate(Void... values) {\n\t }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}", "@Override\r\n protected void onProgressUpdate(Integer... progress) {\n }", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n public void onUIProgressStart(long totalBytes) {\r\n super.onUIProgressStart(totalBytes);\r\n\r\n }", "@Override\n public void showProgress() {\n\n }", "@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}", "@Override\n protected void onPreExecute() {\n progressBar.setProgress(0);\n super.onPreExecute();\n }", "public void setProgress( boolean onOff );", "@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n\t}", "public void progressMade();", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\tprotected void onProgressUpdate(Void... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}", "@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar,\n\t\t\t\t\t\t\tint progress, boolean fromUser) {\n\t\t\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "@Override\r\n\tprotected void onProgressUpdate(Void... values) {\n\t\tsuper.onProgressUpdate(values);\r\n\r\n\t}", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n\r\n }", "protected void onProgressUpdate(Integer... progress) {\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressBar.setProgress(0);\n\t\t\tprogressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n mZoomSeekBar.setVisibility(View.GONE);\n }", "protected void onReset() {\n // Do nothing.\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n if (mProgressDialog != null) {\n mProgressDialog.setProgress(progress[0]);\n }\n }", "void onShowProgress();", "@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t progressBar.setProgress(0);\n\t }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }", "void hideProgress();", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}", "@Override\n\t\t\tpublic void onProgress(ProgressMessage msg) {\n\n\t\t\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n }", "public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) {\n }", "@Override\n public void showProgressSync() {\n }", "public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "public boolean loadProgress() {\n return false;\n }", "public void removeProgressListener() {\n this.listener = new SilentProgressListener();\n }", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tloadingView.setProgress(values[0]);\n\t\t}", "@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }", "@Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n }", "@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t}", "@MainThread\n @Override\n protected void onReset() {\n super.onReset();\n\n onStopLoading();\n\n releaseResources(mResult);\n mResult = null;\n\n doProgressSafe(false);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}", "private void uploadingProgressBarInit() {\n uploadingProgressBar.setVisibility(VISIBLE);\n uploadingProgressBar.setProgress(0);\n }", "@Override\n\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\n\t}", "void startProgress();", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "private void fireProgressListenerStop() {\n if (progress == null) {\n return;\n }\n progress.stop(new ProgressEvent(this, ProgressEvent.STOP));\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }", "@Override\n protected void onProgressUpdate(Integer... progress) {\n super.onProgressUpdate(progress);\n // if we get here, length is known, now set indeterminate to false\n AudioActivity.sProgDialDownload.setIndeterminate(false);\n AudioActivity.sProgDialDownload.setMax(100);\n AudioActivity.sProgDialDownload.setProgress(progress[0]);\n }", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "@Override\n\t\t\tpublic void onProgressChanged(WebView view, int newProgress) {\n\t\t\t\tsuper.onProgressChanged(view, newProgress);\n\t\t\t\tprogressBar.setProgress(newProgress);\n\t\t\t\tprogressBar.postInvalidate();\n\t\t\t\tif(newProgress==100)\n\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\n\t\t\t}", "private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}", "@Override\n protected void onProgressUpdate(Integer... progress) {\n imageProvider.setUploading_status((float) progress[0]);\n // updating progress bar value\n if(progressBar != null) {\n if(progress[0] >= 100 && imageProvider.getUploaded()) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n progressBar.setProgress(progress[0]);\n }\n if(progress[0] >= 100 && haze!= null && imageProvider.getUploaded()){\n haze.setAlpha(0f);\n }\n if(progress[0] >= 100 && refreshImageButton!=null && !imageProvider.getUploaded()){\n refreshImageButton.setVisibility(View.INVISIBLE);\n }\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }", "@Override\n public void hideProgressBar() {\n MainActivity.sInstance.hideProgressBar();\n }", "@Override\n public void resume() {\n originProgress = 10;\n mSkbProgress.setProgress((int) originProgress);\n }", "void hideProgress() {\n removeProgressView();\n removeScreenshotView();\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n\n // Do things like update the progress bar\n }", "protected void onProgressUpdate(Integer... progress) {\n }", "public void setPending()\n\t{\n\t\tprogressBar.setString(XSTR.getString(\"progressBarWaiting\"));\n\t\tprogressBar.setIndeterminate(true);\n\t\tprogressBar.setValue(0);\n\t\t\n\t\tstoplightPanel.setPending();\n\t}", "private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }", "@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n // 背景工作處理\"中\"更新的事\n\n }", "@Override\r\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\r\n\t\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\td(\"silv bar progress changed to \" + progress);\r\n\t\t\t\t\talterSILVT(progress);\r\n\t\t\t\t}", "@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }", "public void changed(ProgressEvent event) {\n\t\t\t}", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekArc seekArc, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tprog = progress;\n\t\t\t}", "@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }", "@Override\n public void onFinish() {\n holder.timerRunning = false;\n holder.progressBar.setProgress(0);\n }", "@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "@Override\n protected void onProgressUpdate(String... progress) {\n }", "@Override\n protected void onCancelled(String retval) {\n super.onCancelled();\n\n etText.setValue(retval);\n butState.setValue(true);\n pbProgress.setValue(0);\n }", "public void onProgress(int pos);" ]
[ "0.7340984", "0.7243734", "0.7051509", "0.7021731", "0.69923043", "0.6982111", "0.69409794", "0.693948", "0.68885857", "0.6849252", "0.6828099", "0.6803504", "0.6803504", "0.67888975", "0.67872673", "0.67686766", "0.6767073", "0.67653555", "0.67653555", "0.6753095", "0.67483425", "0.67461", "0.67370063", "0.6733635", "0.6731511", "0.6726264", "0.6670807", "0.6670807", "0.6656706", "0.66511995", "0.66291577", "0.6624758", "0.66140956", "0.66023505", "0.65823215", "0.65802836", "0.65670425", "0.65632266", "0.65632266", "0.6547838", "0.65461004", "0.6542015", "0.6531197", "0.65229756", "0.6516051", "0.650805", "0.649211", "0.64904237", "0.6484211", "0.6481943", "0.646468", "0.6461072", "0.6452408", "0.6450949", "0.6449065", "0.64385605", "0.64377046", "0.6432829", "0.64292294", "0.6428517", "0.6426873", "0.6422163", "0.6422163", "0.6422163", "0.6410067", "0.64084315", "0.63932973", "0.6392888", "0.6392888", "0.63735694", "0.6370476", "0.63702166", "0.63702166", "0.63698894", "0.63673174", "0.63672405", "0.6363067", "0.63540304", "0.6335574", "0.6319478", "0.6313783", "0.6306066", "0.63030046", "0.6298387", "0.62970096", "0.6288625", "0.6267484", "0.6265489", "0.62595147", "0.6257064", "0.62525153", "0.62414724", "0.62414724", "0.623933", "0.6235897", "0.6229628", "0.62293154", "0.6227359", "0.6212968", "0.6202356", "0.6182616" ]
0.0
-1
when the sound completes, release it so the next one can play (I think)
@Override public void onCompletion(MediaPlayer mp) { player.release(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void continueSound() {\n\t\tclip.start();\n\t}", "public void pauseSound() {\n\t\tclip.stop();\n\t}", "public void endSound()\n {\n if(!mute)\n {\n try {\n if(lastpowerUp.equals(\"RAINBOW\"))\n {\n sclip.stop();\n bclip.start();\n bclip.loop(Clip.LOOP_CONTINUOUSLY);\n }\n // Open an audio input stream.\n URL url = this.getClass().getClassLoader().getResource(\"Silence.wav\"); \n \n if(lastpowerUp.equals(\"BLUE\"))\n url = this.getClass().getClassLoader().getResource(\"Out Of Bounds Stop.wav\");\n else if(lastpowerUp.equals(\"YELLOW\")||lastpowerUp.equals(\"DOUBLE\") || lastpowerUp.equals(\"WHITE\") || (lastpowerUp.equals(\"TROLL\") && modeT))\n url = this.getClass().getClassLoader().getResource(\"Mushroom Down.wav\") ;\n else if(lastpowerUp.equals(\"BLACK\") || lastpowerUp.equals(\"TROLL\"))\n url = this.getClass().getClassLoader().getResource(\"Invisible Off.wav\");\n \n \n \n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n Clip clip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n clip.open(audioIn); \n \n clip.start();\n \n \n \n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n \n } \n }\n }", "public synchronized void stopSound() {\r\n running = false;\r\n }", "private void stopSounds(){\n\t\tsoundPool.autoPause();\n\t\tsoundPool.release();\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tsound.release();\n\t\tfinish();\n\t}", "@Override\n public void playEnd() {\n }", "public void release()\n {\n audioEffect.release();\n }", "public void keepLooping() {\n\t\tif(!clip.isActive()) {\n\t\t\tstartSound();\n\t\t}\n\t}", "public void PauseSound();", "public static void charge_sound() {\n\t\tm_player_charge.start();\n\t\tm_player_charge.setMediaTime(new Time(0));\n\t}", "public static void pop_sound() {\n\t\tm_player_pop.start();\n\t\tm_player_pop.setMediaTime(new Time(0));\n\t}", "@Override\r\n\tpublic void onPlayComplete() {\n\t\tmPlayAudioThread = null;\r\n\t\tdestroyPcm();\r\n\t\tif (mPlayState != PlayState.MPS_PAUSE) {\r\n\t\t\tsetPlayState(PlayState.MPS_PREPARE);\r\n\t\t}\r\n\t}", "public void foodSound(){\n if (enableSound){\r\n\t clip.play();\r\n }\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\tmp.release();\n\t\t\t}", "public void gameComplete() {\n if (soundToggle == true) {\n gameComplete.start();\n } // if\n }", "public void stopSound(){\n p.stop(as);\n }", "@Override\r\n\t\t\t\tpublic void onCompletion (MediaPlayer theMediaPlayer) \r\n\t\t\t\t{\n\t\t\t\t\t// 11/03/2017 ECU check if any looping is needed\r\n\t\t\t\t\t// -------------------------------------------------------------\r\n\t\t\t\t\tif (loopCounter <= 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\t// 11/03/2017 ECU everything done so just check on the global \r\n\t\t\t\t\t\t// media player\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\t// 10/03/2017 ECU check if the global media player needs to be\r\n\t\t\t\t\t\t// 'resumed'\r\n\t\t\t\t\t\t// 15/03/2019 ECU whether there is a 'paused' media or not\r\n\t\t\t\t\t\t// it is necessary to release the resources\r\n\t\t\t\t\t\t// used in this class\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\tif (mediaPlayerPaused)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// -----------------------------------------------------\r\n\t\t\t\t\t\t\t// 10/03/2017 ECU the global media player needs to be resumed\r\n\t\t\t\t\t\t\t// -----------------------------------------------------\r\n\t\t\t\t\t\t\tMusicPlayer.playOrPause (true);\r\n\t\t\t\t\t\t\t// -----------------------------------------------------\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\t// 04/09/2017 ECU make sure the resources are released\r\n\t\t\t\t\t\t// 05/09/2017 ECU changed to use the local method\r\n\t\t\t\t\t\t// 15/03/2019 ECU changed to always release resources\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\tstop ();\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\t// 11/03/2017 ECU check about loops\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\tmediaPlayer.seekTo (theLoopPosition);\r\n\t\t\t\t\t\tmediaPlayer.start ();\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\t// 11/03/2017 ECU decrement the loop counter\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t\tloopCounter--;\r\n\t\t\t\t\t\t// ---------------------------------------------------------\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// -------------------------------------------------------------\r\n\t\t\t\t}", "protected void stopTheSound(){\n mp.stop();\n }", "@Override\n public void onCompletion(MediaPlayer mp) {\n mp.release();\n }", "public void run()\r\n\t{\r\n\t\t// Audio Loop\r\n\t\ttry \r\n\t\t{\r\n\t\t\tp.realize();\r\n\t \r\n\t \t// Create record control for player\r\n\t \tRecordControl rc = (RecordControl)p.getControl(\"RecordControl\");\r\n\t \t\r\n\t \t// Create file to write to\r\n\t \tByteArrayOutputStream output = new ByteArrayOutputStream();\r\n\r\n\t \t// Configure record stream destination\r\n\t \trc.setRecordStream(output);\r\n\t \tp.start();\r\n\t \t\r\n\t \twhile(!doStop)\r\n\t \t{\r\n\t\t \trc.setRecordStream(output);\r\n\t\t \trc.startRecord();\r\n\t\t \t\r\n\t\t \t// sleep 1 milisecond\r\n\t \t\tThread.sleep(1);\r\n\t \t\t\r\n\t \t\t// commit file\r\n\t\t \t\trc.commit();\r\n\t\t \t \trc.stopRecord();\r\n\t\t \t \t\r\n\t\t \t \t\r\n\t\t \t \t\r\n\t\t \t \t\r\n\t\t \t\tbyte[] recordedSoundArray = output.toByteArray();\r\n\t\t \t\tif(recordedSoundArray.length>44){\r\n\t\t\t \t\r\n\t\t\t\t // temporary array for stripped sound bytes\r\n\t\t\t\t byte soundonly[] = new byte[recordedSoundArray.length-44];\r\n\t\t\t\t \r\n\t\t\t\t // strip file header\r\n\t\t\t\t for(int i =0; i<soundonly.length; i++){\r\n\t\t\t\t \tsoundonly[i]=(byte)(recordedSoundArray[i+44]-floor.getLevel());\r\n\t\t\t\t }\r\n \r\n\t\t\t\t // update stream array in graph\r\n\t\t\t \tg.updateStreamData(soundonly);\r\n\t\t\t \t\r\n\t\t\t \t// set current display on graph\r\n\t\t\t \t//display.setCurrent(this);\r\n\t\t\t \t\r\n\t\t\t \t// update graph plot\r\n\t\t\t\t g.update();\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t // warn if threshold reached\r\n\t\t\t \tif(AAnalyzer.samplesAboveThreshold(soundonly, m_alertThreshold)>(soundonly.length-50)/2*1/10){\r\n\t\t\t \t\t\r\n\t\t\t \t\tdouble loudestFrequency = g.getLoudestFrequency();\r\n\t\t\t \t\r\n\t\t\t \t\t// Scan through the match candidates and alert on a match\r\n\t\t\t \t\tboolean foundSpecificMatch = false;\r\n\t\t\t \t\tfor(int j = 0; j < m_sounds.length; j++)\r\n\t\t\t \t\t{\r\n\t\t\t \t\t\tif(m_sounds[j].checkMatch(loudestFrequency))\r\n\t\t\t \t\t\t{\r\n\t\t\t \t\t\t\tfoundSpecificMatch = true;\r\n\t\t\t \t\t\t}\r\n\t\t\t \t\t}\r\n\t\t\t \t\t\r\n\t\t\t \t\tif(!foundSpecificMatch && loudestFrequency>100){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\td.vibrate(2000);\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t// Do a popup\r\n\t\t\t \t\t\tAlert curAlert = new Alert(\"Sound detected\", \"Unknown sound - \" + Double.toString(loudestFrequency), null, AlertType.ALARM);\r\n\t\t\t \t\t\tcurAlert.setTimeout(3000);\r\n\t\t\t \t\t\td.setCurrent(curAlert, d.getCurrent());\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\tThread.sleep(curAlert.getTimeout()+200);\r\n\t\t\t \t\t\tSystem.out.println(\"frequency hit: \"+ loudestFrequency);\r\n\t\t\t \t\t}\r\n\t\t\t \t}\r\n\t\t\t }\r\n\t\t \t\telse{\r\n\t\t \t\t}\r\n\t\t \toutput.reset();\r\n\t \t}\r\n\t \t\r\n\t \t// close streams\r\n\t \trc.stopRecord();\r\n\t \t\tp.stop();\r\n\t \t\tp.close();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(e.toString());\r\n\t\t}\r\n\t}", "public void playAudio() {\n if (done==false)\n {\n file.play();\n }\n}", "public void play() { player.resume();}", "@Override\r\n public void loadPianoAudioFinish() {\n }", "private void releaseMediaPlayerResources(){\n if(mRingTonePlayer != null){\n mRingTonePlayer.stop();\n mRingTonePlayer.release();\n mRingTonePlayer = null;\n }\n }", "public void stop() {\n\t\tsound.stop();\n\t}", "private void stopAudio() {\r\n // stop playback if possible here!\r\n }", "@Override\n public void onCompletion(MediaPlayer mp) {\n mp.reset();\n nextMusic();\n\n }", "public void playSoundSuccess() {\n\t\tsucceededSound.play();\n\t}", "public void finishSong() {\n mp.finish();\n trackPlaying = false;\n }", "public void loopSound(boolean commence) {\n if ( commence ) {\n clip.setFramePosition(0);\n clip.loop( Clip.LOOP_CONTINUOUSLY );\n } else {\n clip.stop();\n }\n }", "public static void release() {\r\n for (int i = 0; i < players_.size(); i++) {\r\n MediaPlayer p = players_.valueAt(i);\r\n if (p != null) {\r\n if (p.isPlaying()) {\r\n p.stop();\r\n }\r\n p.release();\r\n }\r\n }\r\n players_.clear();\r\n currentMusic_ = INVALID_NUMBER;\r\n }", "public void playOnce() {\n mStopAtLoopEnd = true;\n mStartTimeMillis = 0;\n mCurrentLoopNumber = 0;\n cancelCallback();\n postCallback();\n }", "void play(final Context context, final int soundId, final OnCompletionPlayNextListener playNextListener);", "@Override\n \t\t\t\t\t\t\tpublic void onCompletion(MediaPlayer mp) {\n \t\t\t\t\t\t\t\tNoteEditView.this.mAudioPlay\n \t\t\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.audiologo);\n \t\t\t\t\t\t\t\tmPlayer.stop();\n \t\t\t\t\t\t\t\tmPlayer.release();\n \t\t\t\t\t\t\t\tmPlayer = null;\n \t\t\t\t\t\t\t\tanim.stop();\n \t\t\t\t\t\t\t}", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n releaseMediaPlayer();\n }", "@Override\n public void stopSound(){\n gameMusic.stop();\n }", "public void unloadSoundSystem() {\n/* 205 */ if (this.loaded) {\n/* */ \n/* 207 */ stopAllSounds();\n/* 208 */ this.sndSystem.cleanup();\n/* 209 */ this.loaded = false;\n/* */ } \n/* */ }", "@Override\r\n\t\tpublic void run()\r\n\t\t{\r\n\t\t\tLayeredSound.getInstance().add( sound );\r\n\t\t}", "private void releaseMediaPlayer() {\n if (colors_audio != null) {\n // Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n colors_audio.release();\n\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n colors_audio = null;\n colors_audioManager.abandonAudioFocus(colors_OnAudioFocusChangeListener);\n }\n }", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), controllerVars.getVolume(), controllerVars.getVolume(), 1, 0, 1f);\n\t\t\tcontrollerVars.COUNTER++;\n\t\t\t//Toast.makeText(act, \"Played sound\", Toast.LENGTH_SHORT).show();optional Playing message \n\t\t\tcontrollerVars.setPlays(true);\n\t\t\tonComplete(controllerVars.getMediaPlayer().getDuration());\n\t\t}\n\t\t//controllerVars.getMediaPlayer().start();\n\t\t//controllerVars.setPlays(true);\n\t}", "public void suspend() {\n try {\n mIsIdle = true;\n if (mCurPlayer != null)\n {\n mCurPlayer.setMediaTime(0);\n mCurPlayer.stop();\n if (mCurPlayer != null) {\n mCurPlayer.close();\n }\n if (mCurrentSoundID >= 0) {\n mPlayers[mCurrentSoundID] = null;// \n }\n }\n\n } catch (Throwable e) \n {\n } \n finally \n {\n mCurPlayer = null;\n mIsPlaying = false;\n }\n }", "@Override\n public void onFinish() {\n timerActive=false;\n\n //play sound on finish\n //instead of MainActivity.this, we can also use getApplicationContext()\n MediaPlayer mPlayer = MediaPlayer.create(MainActivity.this,R.raw.airhorn);\n mPlayer.start();\n bview.setText(\"GO\");\n }", "private void releaseMediaPlayer() {\n // If the media player is not null, then it may be currently playing a sound.\n if (mediaPlayer != null) {\n // Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n mediaPlayer.release();\n Log.v(TAG, \"Audio resource released\");\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n mediaPlayer = null;\n audioManager.abandonAudioFocus(afChangeListener);\n }\n }", "public void stopSound() {\n metaObject.stopSound();\n }", "@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}", "public void release() {\n stop();\n\n Intent i = new Intent(AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION);\n i.putExtra(AudioEffect.EXTRA_AUDIO_SESSION, getAudioSessionId());\n i.putExtra(AudioEffect.EXTRA_PACKAGE_NAME, mContext.getPackageName());\n mContext.sendBroadcast(i);\n\n mPlayer.release();\n mWakeLock.release();\n }", "public static void portail_sound() {\n\t\tm_player_portail.start();\n\t\tm_player_portail.setMediaTime(new Time(0));\n\t}", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n stopMusic();\n }", "public void playAmbientSound() {\n if (!this.isClosed()) {\n super.playAmbientSound();\n }\n\n }", "public void stopRandomSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.stopSound(MUSIC_FOLDER, SOUND_FILES[SOUND_FILES.length - 1]);\n\t}", "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "public void getToSource() {\r\n\t \r\n\t while(!closeEnough){\r\n\t getCloser(40);\r\n\t }\r\n\t \r\n\t Sound.beep();\r\n\t try {\r\n\t\tThread.sleep(2000);\r\n\t} catch (InterruptedException e) {\r\n\t\te.printStackTrace();\r\n\t}\r\n }", "public void playSoundGameWon() {\n\t\tcompletedGameSound.play();\n\t}", "public void releaseMediaPlayers() {\n if(arrSpFiles != null && arrSpFiles.size() > 0) {\n for(SoundPlayerFile spPlayerFile : arrSpFiles) {\n if(spPlayerFile.mp != null) {\n spPlayerFile.mp.release();\n }\n }\n }\n }", "public void openAlienDestroyedSound() {\r\n\t\tif (clipAlienDestroyed.isOpen()) {\r\n\t\t\tclipAlienDestroyed.start();\r\n\t\t}\r\n\r\n\t\tif (!(clipAlienDestroyed.isActive())) {\r\n\t\t\t/*\r\n\t\t\t * clip.stop(); clip.flush();\r\n\t\t\t */\r\n\t\t\tclipAlienDestroyed.setFramePosition(0);\r\n\t\t}\r\n\r\n\t}", "public void playDeadSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.playSound(MUSIC_FOLDER, DEAD);\n\t}", "public void stopSound(ISound sound) {\n/* 354 */ if (this.loaded) {\n/* */ \n/* 356 */ String s = this.invPlayingSounds.get(sound);\n/* */ \n/* 358 */ if (s != null)\n/* */ {\n/* 360 */ this.sndSystem.stop(s);\n/* */ }\n/* */ } \n/* */ }", "public synchronized void stop() {\n if(running) {\n this.running = false;\n try {\n this.soundThread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "public void StopSound() {\r\n\t\tif (this.mp.isPlaying()) {\r\n\t\t\tmp.pause();\r\n\t\t}\r\n\t}", "@Override\n public void onCompletion(MediaPlayer mp) {\n mp.release();\n mState = CommonConstants.MusicPlayerState.Stopped;\n }", "@Override\n public void playStop() {\n }", "private void finishPlayAlong() {\n\n callback.questionPressed(null, score, lives); // ENDS this question\n\n }", "public void pauseSong()\n {\n if(!mute)\n {\n try{ \n //bclip.stop();\n \n URL url = this.getClass().getClassLoader().getResource(\"Refreshing Elevator Music.wav\");\n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n pclip = AudioSystem.getClip();\n \n // Open audio clip and load samples from the audio input stream.\n pclip.open(audioIn); \n pclip.start();\n pclip.loop(Clip.LOOP_CONTINUOUSLY);\n }catch(Exception e){}\n }\n }", "public void releasePlayer() {\n\n mSimplePlayer.stop();\n mSimplePlayer.release();\n mSimplePlayer = null;\n\n }", "public void update(){\n\t Sound s;\n\t\tfor (Sound sound : sounds) {\n\t\t\ts = sound;\n\t\t\tif (s.isFinished() && !removables.contains(s)) {\n\t\t\t\tremovables.add(s);\n\t\t\t}\n\t\t}\n\t\tfor(Sound temp : removables){\n\t\t temp.terminate();\n\t\t\tsounds.remove(temp);\n\t\t\tavailableIds.add(temp.getId());\n\t\t\tactiveSounds--;\n\t\t}\n removables = new LinkedList<>();\n\t}", "public void playSound(int sound) {\n \t currentstreamID=soundPool.play(soundPoolMap.get(sound), 0.5f, 0.5f, 1, -1, 1f);\n Log.e(\"MYT\",currentstreamID+\" play output\"); \n }", "public void stopPlaying() {\n seq.stop();\n }", "int unpauseSample() {\n return 0;\n }", "@Override\n\t\t\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t\t\tambiente.get(1).start();\n\t\t\t\t\t}", "private void releaseMediaPlayer() {\r\n // If the media player is not null, then it may be currently playing a sound.\r\n if (mMediaPlayer != null) {\r\n // Regardless of the current state of the media player, release its resources\r\n // because we no longer need it.\r\n mMediaPlayer.release();\r\n\r\n // Set the media player back to null. For our code, we've decided that\r\n // setting the media player to null is an easy way to tell that the media player\r\n // is not configured to play an audio file at the moment.\r\n mMediaPlayer = null;\r\n\r\n mAudioManager.abandonAudioFocus(mOnAudioFocusChangeListener);\r\n }\r\n\r\n\r\n }", "@Override\n\tpublic void onCompletion(MediaPlayer arg0) {\n\t}", "@Override\n public void makeSound() {\n\n }", "@Override\n public void makeSound() {\n\n }", "@Override\n\t\t\tpublic void onLoadComplete(SoundPool soundPool, int sampleId, int status) {\n\t\t\t\tsoundPool.play(sampleId, 1, 1, 0, 0, 1);\n\t\t\t}", "@Override\n public void playSound(int soundId) {\n\n }", "void playSound() {\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n soundPlaying = true;\n audioTrack.play();\n while (soundPlaying) {\n genWhiteNoise();\n audioTrack.write(noise, 0, SAMPLE_COUNT);\n }\n\n }\n });\n thread.start();\n }", "int unpauseSamples() {\n return 0;\n }", "public void play() {\n\t\t\r\n\t}", "private void releaseMediaPlayer() {\n if (mMymedia != null) {// Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n mMymedia.release();\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n mMymedia = null;\n am.abandonAudioFocus(afChangeListener);\n }\n }", "public void run() \n {\n try\n {\n Clip clip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(getClass().getResource(sound));\n clip = AudioSystem.getClip();\n clip.open(inputStream);\n clip.start(); \n } catch (UnsupportedAudioFileException e) {\n \t\t\te.printStackTrace();\n } catch (IOException e) {\n \t\t\te.printStackTrace();\n } catch (LineUnavailableException e) {\n \t\t\te.printStackTrace();\n }\n }", "public static void game_sound() {\n\t\tm_player_game.start();\n\t\tm_player_game.setMediaTime(new Time(0));\n\t}", "public static void stop() {\r\n\r\n if (soundLoop!=null)\r\n {\r\n soundLoop.stop();\r\n }\r\n }", "private void playSound() {\n if (isFlashOn) {\n mp = MediaPlayer.create(this, R.raw.light_switch_off);\n } else {\n mp = MediaPlayer.create(this, R.raw.light_switch_on);\n }\n mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\n @Override\n public void onCompletion(MediaPlayer mp) {\n // TODO Auto-generated method stub\n mp.release();\n }\n });\n mp.start();\n }", "public static void playerRun()\n {\n runSound.playLooped();\n }", "@Override\n\t\tpublic void run() {\n\t\t\tgenTone();\n\t\t\tplaySound();\n\t\t}", "protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }", "@Override\n public void onSeekComplete() {\n if (info.playing) {\n player.start();\n player.setOnSeekCompletionListener(null);\n } else {\n Log.w(TAG, \"Audio stopping while waiting for loop to re-start\");\n }\n }", "public void loop(){\n\t\t\n\t\tclip.loop(Clip.LOOP_CONTINUOUSLY);\n\t\tplay();\n\t}", "public void playAudio() {\n\n }", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n if(mediaPlayer!=null){\n mediaPlayer.release();\n mediaPlayer=null;\n }\n }", "private void releaseMediaPlayer() {\n if (mediaPlayer != null) {\n // Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n mediaPlayer.release();\n }\n\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n mediaPlayer = null;\n\n }", "public void resumeAllSounds() {\n/* 490 */ for (String s : this.pausedChannels) {\n/* */ \n/* 492 */ LOGGER.debug(LOG_MARKER, \"Resuming channel {}\", s);\n/* 493 */ this.sndSystem.play(s);\n/* */ } \n/* */ \n/* 496 */ this.pausedChannels.clear();\n/* */ }", "@Override\r\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\r\n\t\t\t\tmPlaying = false;\r\n\t\t\t\tstatus.setText(\"Stop Play\");\r\n\t\t\t}", "private void playGameOverSound()\n {\n try\n {\n java.io.File soundFile = new java.io.File(\n \"C:\\\\Windows\\\\Media\\\\ringout.wav\");\n javax.sound.sampled.AudioInputStream audioIn =\n javax.sound.sampled.AudioSystem.getAudioInputStream(\n soundFile);\n javax.sound.sampled.Clip clip =\n javax.sound.sampled.AudioSystem.getClip();\n\n clip.open(audioIn);\n clip.start();\n }\n catch (Exception ex)\n {\n System.out.println(ex);\n }\n }", "public void stop() {\n SystemClock.sleep(500);\n\n releaseAudioTrack();\n }", "@Override\n protected void onStop() {\n mediaPlayer.release();\n super.onStop();\n }", "public void close() {\n/* 325 */ synchronized (this.mixer) {\n/* 326 */ if (isOpen()) {\n/* */ \n/* */ \n/* */ \n/* 330 */ setOpen(false);\n/* */ \n/* */ \n/* 333 */ implClose();\n/* */ \n/* */ \n/* 336 */ this.mixer.close(this);\n/* */ } \n/* */ } \n/* */ }", "@Override\n public void run() {\n // TODO Auto-generated method stub\n running = true;\n AudioFile song = musicFiles.get(currentSongIndex);\n song.play();\n while(running){\n if(!song.isPlaying()){\n currentSongIndex++;\n if(currentSongIndex >= musicFiles.size()){\n currentSongIndex = 0;\n }\n song = musicFiles.get(currentSongIndex);\n song.play();\n }\n try{\n Thread.sleep(1);\n }\n catch (InterruptedException e){\n e.printStackTrace();\n } \n }\n }", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tintroSong.release();\n\t}" ]
[ "0.75749385", "0.70855844", "0.69617593", "0.69205165", "0.6894858", "0.6874667", "0.68520856", "0.6798089", "0.67697287", "0.6753529", "0.6750298", "0.6727189", "0.6719438", "0.66541", "0.6654087", "0.66453993", "0.6641423", "0.6625122", "0.66061664", "0.66041917", "0.66032326", "0.65804285", "0.6573993", "0.6552341", "0.6550437", "0.65367544", "0.65324086", "0.6530249", "0.6513726", "0.65080446", "0.65051913", "0.6501269", "0.6485542", "0.6483596", "0.6482052", "0.64765173", "0.64575106", "0.64505774", "0.6443581", "0.6429185", "0.64285547", "0.6420482", "0.64088494", "0.6379229", "0.6372383", "0.63711345", "0.63574183", "0.6356401", "0.63354903", "0.6328154", "0.63245165", "0.6293007", "0.62876266", "0.62873507", "0.6286197", "0.6277385", "0.6274384", "0.62675273", "0.62659335", "0.626074", "0.6256879", "0.6256584", "0.62450576", "0.6234574", "0.6216831", "0.6216313", "0.6205748", "0.62024236", "0.6197482", "0.61948997", "0.6189352", "0.61766803", "0.6174041", "0.6174041", "0.61691386", "0.616192", "0.6159295", "0.6147513", "0.6140295", "0.613026", "0.6130166", "0.6129168", "0.6122557", "0.61180246", "0.6109482", "0.61023736", "0.6094721", "0.60935664", "0.6092418", "0.6086082", "0.6084201", "0.60817236", "0.6075372", "0.6074452", "0.60680217", "0.6053347", "0.6052122", "0.6051515", "0.6051288", "0.6041167" ]
0.67352873
11
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
stops the current music
@Override protected void onSaveInstanceState(Bundle outState) { switch(MySurfaceView.vicCount) { case 0: mBackgroundSound.foo(); break; case 1: mBackgroundSound2.foo(); break; case 2: mBackgroundSound3.foo(); break; case 3: mBackgroundSound4.foo(); break; } //store the array that was used to determine which squares are on or off //so that the layout doesn't re-randomize on orientation change outState.putBooleanArray("name", MySurfaceView.initDisplay); super.onSaveInstanceState(outState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n\t\tmusic.stop();\n\t}", "public static void stopMusic() {\n\t\tcurrentMusic.stop();\n\t}", "void stopMusic();", "public void stop()\n {\n if(AudioDetector.getInstance().isNoAudio() || musicPlayer == null)\n {\n return;\n }\n\n\n musicPlayer.stop();\n }", "public static void stopMusic()\n\t{\n\t\tif (music != null && currentMusicFile != -1)\n\t\t{\n\t\t\tmusic.get(currentMusicFile).stop();\n\t\t\tcurrentMusicFile = -1;\n\t\t}\n\t}", "public void StopMusic();", "public void stopBackgroundMusic()\n {\n background.stop();\n }", "public void stop() {\n\t\tsound.stop();\n\t}", "public static void stopSong()\n {\n JSoundsMainWindowViewController.iAmPlaying = true;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.stopSong();\n }", "public void stop() {\n\t\tstop(!playing);\n\t}", "protected void stopTheSound(){\n mp.stop();\n }", "@Override\n protected void onStop() {\n super.onStop();\n stopMusic();\n }", "@Override\n public void stopSound(){\n gameMusic.stop();\n }", "private void stopAudio() {\r\n // stop playback if possible here!\r\n }", "public void stop() {\n AudioPlayer.player.stop(cas);\n playing = false;\n }", "public void stop()\n {\n mediaPlayer.stop();\n }", "public void stopPlaying() {\n seq.stop();\n }", "public void StopSound() {\r\n\t\tif (this.mp.isPlaying()) {\r\n\t\t\tmp.pause();\r\n\t\t}\r\n\t}", "public void stopSound(){\n p.stop(as);\n }", "public void stop() { \r\n timer.stop(); \r\n if (midi) \r\n sequencer.stop(); \r\n else \r\n clip.stop(); \r\n play.setText(\"Play\"); \r\n playing = false; \r\n }", "public void stopPlaying() {\n \t\tisPlaying = false;\n \t}", "public void stop() {\n\t\tplaybin.stop();\n\t}", "public void stop()\n {\n audioClip.stop();\n }", "private void stop()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n }", "@Override\n\tpublic void stop() {\n\t\tif (player != null) {\n\t\t\tplayer.close();\n\n\t\t\tpauseLocation = 0;\n\t\t\tsetSongTotalLenght(0);\n\t\t}\n\t}", "public void stopSound() {\n metaObject.stopSound();\n }", "public void stopPlaying()\n {\n player.stop();\n }", "public static void stop() {\r\n\r\n if (soundLoop!=null)\r\n {\r\n soundLoop.stop();\r\n }\r\n }", "public synchronized void stopSound() {\r\n running = false;\r\n }", "public void stopSong() {\n\t\tStatus status = mediaview.getMediaPlayer().getStatus();\n\t\t\n\t\tif (status == Status.PLAYING) {\n\t\t\tmediaview.getMediaPlayer().stop();\n\t\t\tplaying = false;\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\t}", "public void StopMusic(int id) {\n\t\t\n\t\tif(id == 1) {\n if(!bm.equals(null)) {\n\n \tbm.stop();\n }\n\t\t}else if(id == 2) {\n\t\t\n if(!bmwin.equals(null)) {\n bmwin.stop();\n }\n\t\t}else if(id == 3) {\n\n if(!bmdead.equals(null)) {\n \tbmdead.stop();\n }\n\t\t}\n \n\t}", "public void stop() {\n mMediaPlayer.stop();\n setPlayerState(State.STOPPED);\n notifyPlaying();\n }", "private void stop()\r\n {\r\n player.stop();\r\n }", "private void stop(){ player.stop();}", "private void stop()\n\t\t{\n\t\t\tif (mMediaPlayer != null)\n\t\t\t{\n\t\t\t\tmMediaPlayer.stop();\n\t\t\t\tmMediaPlayer.reset();\n\t\t\t}\n\t\t}", "public void stop() {\n try {\n mIsIdle = true;\n mIsLooping = false;\n if (mCurPlayer != null) \n {\n mCurPlayer.stop(); \n Thread.sleep(100);\n// mCurPlayer.setMediaTime(0);\n mIsPlaying = false;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void stopCurrentSound() {\n\t\tif (midiSound != null) {\n\t\t\tmidiSound.stop();\n\t\t}\n\t\tif (functionSound != null) {\n\t\t\tfunctionSound.pause(true);\n\t\t}\n\t}", "public void stopAudio() {\n\t\tif(audioStream != null ) {\n\t\t\tAudioPlayer.player.stop(audioStream);\n\t\t}\n\t}", "public void stopPlaying(){\r\n\t\tsongsToPlay.clear();\r\n\t\tselectedPreset = -1;\r\n\t\tselectedSource = \"\";\r\n\t\ttry{\r\n\t\t\tplayer.stop();\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.err.println(\"ERROR: BASICPLAYER STOP CODE HAS FAULTED.\");\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n stopMusic();\n }", "public synchronized void stop() {\n if(running) {\n this.running = false;\n try {\n this.soundThread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "public static void stopSound() {\n if(mAudioManager != null) {\n mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0);\n }\n if (mp != null) {\n mp.stop();\n Log.d(TAG, \"Stop Sound\");\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n private void stopAudio() {\n //stop audio\n playBtn.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.sharp_play_arrow_black_36, null));\n playerHeader.setText(\"Stopped\");\n isPlaying = false;\n mediaPlayer.stop();\n bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);\n seekBarHandler.removeCallbacks(updateSeekBar);\n }", "public static void stopCurrentSoundtrack() {\n\t\tif (soundtrack[GameBoardModel.getLevel()-1] != null)\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].stop();\n\t}", "public void stop(String key) {\n\t\t// Get the active sound for the key\n\t\tif (!actives.containsKey(key)) {\n\t\t\t//System.out.println(\"Returned\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tActiveSound snd = actives.get(key);\n\t\t\n\t\t// This is a workaround for the OS X sound bug\n\t\t//snd.sound.stop(snd.id);\n\t\tsnd.sound.setLooping(snd.id,false); // Will eventually garbage collect\n\t\tsnd.sound.setVolume(snd.id, 0.0f); \n\t\tactives.remove(key);\n\t}", "public void stopMedia() {\n\t\tif (videoviewer.getCurrentPosition() != 0) {\n\t\t\t\n\t\t\tplaytogglebutton.setChecked(true);\n\t\t\t\n\t\t\tvideoviewer.pause();\n\t\t\tvideoviewer.seekTo(0);\n\t\t\ttimer.cancel();\n\n\t\t\ttimeElapsed.setText(countTime(videoviewer.getCurrentPosition()));\n\t\t\tprogressBar.setProgress(0);\n\t\t}\n\t}", "public void stop() {\n if (playingClip != null)\n playingClip.stop();\n }", "private void stopPlaying() {\n Log.e(TAG, \"Stop playing file: \" + curRecordingFileName);\n if (null != mPlayer) {\n if (mPlayer.isPlaying())\n mPlayer.stop();\n mPlayer.release();\n mPlayer = null;\n }\n\n }", "@Override\n\tpublic void pause() {\n\t PhoneDevice.Settings.stopMusic();\n\t}", "public void stopped()\n {\n super.stopped();\n muteControl.stop();\n }", "public void stop()\n {\n if (this.mediaPlayer != null && mediaPlayer.getStatus().equals(MediaPlayer.Status.PLAYING))\n {\n this.mediaPlayer.stop();\n }\n }", "private void stop() {\n Log.i(\"TTS\", \"Stopping\");\n mSpeechQueue.clear();\n \n nativeSynth.stop();\n mIsSpeaking = false;\n if (mPlayer != null) {\n try {\n mPlayer.stop();\n } catch (IllegalStateException e) {\n // Do nothing, the player is already stopped.\n }\n }\n Log.i(\"TTS\", \"Stopped\");\n }", "public void stop()\n\t{\n\t\tindex = 0;\n\t\tlastUpdate = -1;\n\t\tpause();\n\t}", "public void stop(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn;\r\n \t\tmediaplayer.stop();\r\n \t}", "public void stop() {\n SystemClock.sleep(500);\n\n releaseAudioTrack();\n }", "public void stopPlayThread() {\n ms.stop();\n }", "public void stop() {\n mCurrentPlayer.reset();\n mIsInitialized = false;\n }", "public void StopSound(ISoundOrigin origin);", "public void stop() {\n\t\tif (player == null)\n\t\t\treturn;\n\t\t\n\t\tif (listener != null)\n\t\t\tlistener.setLooping(false);\n\t\t\n\t\t// This will invoke playbackFinished, which will decrement currentlyPlaying\n\t\t// and set player to null.\n\t\tplayer.stop();\n\t}", "public void stopPlayback(){\n \n \n if(getPlayMode()!=PlayMode.PLAYBACK){\n return;\n }\n setPlayMode(PlayMode.WAITING);\n playerControlPanel.setVisible(false);\n increasePlaybackSpeedMenuItem.setEnabled(false);\n decreasePlaybackSpeedMenuItem.setEnabled(false);\n rewindPlaybackMenuItem.setEnabled(false);\n togglePlaybackDirectionMenuItem.setEnabled(false);\n \n try {\n if(motionInputStream!=null){\n motionInputStream.close();\n motionInputStream=null;\n }\n if(fileInputStream!=null){\n fileInputStream.close();\n fileInputStream=null;\n }\n } catch (IOException ignore) {\n ignore.printStackTrace();\n }\n setTitleAccordingToState();\n }", "public void stop(){\n Log.d(TAG, \"stop: called\");\n if(mMediaPlayer!=null){\n mMediaPlayer.stop();\n FilePlayerDialog.isPlaying = false;\n seekHandler.removeCallbacksAndMessages(null);\n }\n }", "@Override\r\n\tpublic void stopped(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "public void stop() {\n\t\tlog.finer(\"Stopping node audio channel\");\n\t // always close Minim audio classes when you are done with them\n\t tone.close();\n\t minim.stop();\n\t}", "@Override\r\n public void hide() {\r\n bgMusic.pause();\r\n }", "@Override\n public void playStop() {\n }", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "private void stop() {\n MediaQueueItem item = mQueue.get(0);\n if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING\n || item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) {\n if (mCallback != null) {\n mCallback.onStop();\n }\n item.setState(MediaItemStatus.PLAYBACK_STATE_FINISHED);\n }\n }", "public void stop() {}", "public void stopThemeSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.stopSound(MUSIC_FOLDER, THEME);\n\n\t}", "public synchronized void stopBackgroundAbruptly(){\r\n if(currentLoop0) backgroundMusicLoop0.stopClip();\r\n else backgroundMusicLoop1.stopClip();\r\n }", "public synchronized void stopBackgroundSmoothly(){\r\n if(currentLoop0) backgroundMusicLoop0.fadeOut();\r\n else backgroundMusicLoop1.fadeOut();\r\n }", "public void stop() {\n synchronized (lock) {\n isRunning = false;\n if (rawAudioFileOutputStream != null) {\n try {\n rawAudioFileOutputStream.close();\n } catch (IOException e) {\n Log.e(TAG, \"Failed to close file with saved input audio: \" + e);\n }\n rawAudioFileOutputStream = null;\n }\n fileSizeInBytes = 0;\n }\n }", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();" ]
[ "0.89888436", "0.89242595", "0.8607088", "0.84918123", "0.84672606", "0.8264807", "0.8132159", "0.8131543", "0.8118073", "0.8108604", "0.80751127", "0.8068871", "0.8068249", "0.80142194", "0.80037993", "0.7980032", "0.7910469", "0.78600436", "0.7858758", "0.7835912", "0.782217", "0.78019917", "0.7780155", "0.7772623", "0.77565664", "0.7751902", "0.77115446", "0.7681007", "0.76631033", "0.75948685", "0.7579848", "0.7575812", "0.7541536", "0.7514831", "0.751272", "0.74868274", "0.7474417", "0.74318874", "0.7370293", "0.73545", "0.73112", "0.7299751", "0.7297665", "0.72460747", "0.724112", "0.72377264", "0.7203837", "0.71865165", "0.7181712", "0.7176743", "0.71609753", "0.7154646", "0.7145534", "0.7121304", "0.7111506", "0.71036667", "0.70700425", "0.70572627", "0.70379245", "0.7000437", "0.69718117", "0.6951028", "0.6944309", "0.6938787", "0.69386315", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.6928857", "0.69172317", "0.69163275", "0.6912509", "0.6910767", "0.68844014", "0.68762356", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406", "0.68742406" ]
0.0
-1
restarts the music, depending on where the user is in the game
@Override protected void onRestoreInstanceState(Bundle savedInstanceState) { switch(MySurfaceView.vicCount) { case 0: mBackgroundSound.playS(); break; case 1: mBackgroundSound2.playS(); break; case 2: mBackgroundSound3.playS(); break; case 3: mBackgroundSound4.playS(); break; } MySurfaceView.initDisplay = savedInstanceState.getBooleanArray("name"); super.onRestoreInstanceState(savedInstanceState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void restartIngamemusic() {\n\t\tingamemusicPlayer.seek(Duration.ZERO);\n\t\tingamemusicPlayer.play();\n\t\tlogger.info(\"restart ingame\");\n\t}", "private void restart()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n mPlayer.start();\n }", "synchronized void resumeGame() {\n try {\n myGamePause = false;\n if (!myShouldPause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "public void restartGame() {\n\t\tclearGame();\n\t\tstartGame();\n\t}", "@Override\n\tpublic void OnGameStart() {\n\t\tsuper.OnGameStart();\n\t\tMusicManage.setLoopingMusic(tumMusic, true);\n\t\tMusicManage.playMusic(tumMusic);\n\t}", "public void restartLevel() {\r\n world.stop();\r\n levelMusic.close();\r\n if(level == 1) {\r\n world = new Level1();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel1Sound();\r\n levelMusic.loop();\r\n controlPanel.setWorld(world);\r\n world.start();\r\n }\r\n else if(level == 2) {\r\n world = new Level2();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel2Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else if(level == 3) {\r\n world = new Level3();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel3Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n }", "public static void resumeMusic() {\n\t\t\n\t\tif (currentMusic == null) {\n\t\t\tplayMusic(\"mainMenuMusic\", 0.1f);\n\t\t} else {\n\t\t\tcurrentMusic.start();\n\t\t}\n\t}", "private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }", "public static void resumeCurrentSoundtrack() {\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null)\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t}", "private void initialMusic(){\n\n }", "public void Play() {\n superPlaneGodMode = false;\r\n if (!musicPlaying)\r\n backgroundMusic.pause();\r\n if (musicPlaying)\r\n backgroundMusic.start();\r\n paused = false;\r\n }", "public void game(){\n gameMusic.loop(pitch, volume);\n }", "public static void startMusic()\n\t{\n\t\tmusic.loop();\n\t}", "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "public static void startMusic()\r\n\t{\r\n\t\tif ( musicPlayer == null )\r\n\t\t\tmusicPlayer = new MusicPlayer( \"Music2.mid\" );\r\n\t\telse\r\n\t\t\tmusicPlayer.play();\r\n\t}", "public void ChangeMusic(int musicnum, boolean looping);", "public static void updateMusic()\r\n\t{\r\n\t\tif ( Settings.isMusicOn() && !musicPlaying() )\r\n\t\t\tstartMusic();\r\n\t\telse if ( !Settings.isMusicOn() && musicPlaying() )\r\n\t\t\tstopMusic();\r\n\t}", "public static void beginCurrentSoundtrack() {\n\t\t\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null) {\n\t\t\t\n\t\t\t// In case a new game is started before the victory jingle is finished\n\t\t\t// from a previous game (rare occurrence, but possible)\n\t\t\tif (victoryFanfare.isRunning()) victoryFanfare.stop();\t\t\t\n\t\t\t\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].setFramePosition(0);\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t\t\t\n\t\t}\n\t\t\n\t}", "public static void game_sound() {\n\t\tm_player_game.start();\n\t\tm_player_game.setMediaTime(new Time(0));\n\t}", "public static void startMusic()\n\t{\n\t\tif (music == null)\n\t\t{\n\t\t\tloadMusic();\n\t\t\tif (music.size() < 2)\n\t\t\t{\n\t\t\t\tthrow new GameLogicException(\"At least two songs must be specified.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tcurrentMusicFile = 0;\n\t\tmusic.get(currentMusicFile).setVolume(musicVolume / 100.f);\n\t\tmusic.get(currentMusicFile).play();\n\t\tmusic.get(currentMusicFile).setOnCompletionListener(musicOnCompletionListener);\n\t}", "public void ReplayCurrentLevel(){\n gamePaused = true;\n timeRuunableThread.setPause(gamePaused);\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"TimeoutSound\");\n }\n musicName = \"TimeoutSound\";\n JOptionPane.showMessageDialog(null, \"Oops! Time out. Please replay current level.\", \"Timeout\", JOptionPane.INFORMATION_MESSAGE);\n newGameStart(level);\n }", "@Override\n public void stopSound(){\n gameMusic.stop();\n }", "@Override\n protected void onResume() {\n super.onResume();\n if (is_resume) {\n is_resume = false;\n } else {\n Music.restart(mContext);\n }\n }", "public void playMusic() {\n\t\tthis.music.start();\n\t}", "public void gameOver(){\n gameOverMusic.loop(pitch, volume);\n }", "public void playAgain() {\r\n\t\t\r\n\t\tscreen.reset();\r\n\t\t\r\n\t}", "public void restartGame() {\n orientate(Orientation.DOWN);\n currentAnimation = idleAnimations[getOrientation().ordinal()];\n gameOver = false;\n strengthen(MAX_HP);\n }", "public void playAudio() {\n\t\tmusic[currentSong].stop();\n\t\tcurrentSong++;\n\t\tcurrentSong %= music.length;\n\t\tmusic[currentSong].play();\n\t}", "public synchronized void resume(){\r\n if(currentLoop0) backgroundMusicLoop0.unpause();\r\n else backgroundMusicLoop1.unpause();\r\n }", "@Override\r\n public void show()\r\n {\r\n // De inmediato, ponemos en marcha una melodia\r\n if (!juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).isPlaying())\r\n {\r\n juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).play();\r\n juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).setLooping(true);\r\n }\r\n }", "@Override\n protected void onResume()\n {\n super.onResume();\n setSound.resumeMusic(this);\n }", "void reset() {\n\t\tsongs.get(curSong).rewind();\n\t\tsongs.get(curSong).pause();\n\t}", "void pauseGame() {\n try {\n myGamePause = true;\n myPlayer.stop();\n // when the application pauses the game, resources\n // are supposed to be released, so we close the\n // player and throw it away.\n myPlayer.close();\n myPlayer = null;\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "public void restart() {\n\t\tmadeMove = false;\n\t\tcurrentPit = -1;\n\t\tnewGame(player1.getName(), player2.getName(), originalCount); \n\t}", "protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }", "@Override\n\tpublic void resume() {\n\t\tPhoneDevice.Settings.playMusic(PhoneDevice.Settings.MusicEnum.psyche_up);\n\t \n\t}", "public static void musicFirstLevel(){\n\t\ttry {\r\n\t\t\tbgmusicLevel = new Music(\"res/sound/firstLevel.wav\");\r\n\t\t\tbgmusicLevel.loop(1f, 0.1f);\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void playMusic() {\n\t\ttry {\n\t\t\tsoundManager.playMusic(\"bgroundmusic\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "synchronized void toggle() {\n try {\n myShouldPause = !myShouldPause;\n if (myShouldPause) {\n if (myPlayer != null) {\n myPlayer.stop();\n }\n } else if (!myGamePause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "void stopMusic();", "public static void previusSong()\n {\n MusicPlayerControl.prevSong();\n }", "@Override\n public void onResume() {\n super.onResume();\n MusicManager.start(this, prefs.getBoolean(\"bgMusic\", true));\n }", "public void playSoundGameLost() {\n\t\tlostGameSound.play();\n\t}", "public static void stopSong()\n {\n JSoundsMainWindowViewController.iAmPlaying = true;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.stopSong();\n }", "private void makeNewMusic() {\n File f = music.getFile();\n boolean playing = music.isPlaying();\n music.stop();\n music = new MP3(f);\n if (playing) {\n music.play(nextStartTime);\n }\n }", "public void StartMusic(int music_id);", "public void playGameOverSound() {\n\t\ttry {\n\t\t\tAudioInputStream audioStream = AudioSystem.getAudioInputStream(new File(\"Musik/DeadSound.wav\"));\n\t\t\t\n\t\t\tClip clip = AudioSystem.getClip(); \n\t\t\tclip.open(audioStream);\n\t\t\t\n\t\t\tboolean oldStatus = settings.isPlaying(); \n\t\t\t\n\t\t\tstopMusik();\n\t\t\t\n\t\t\t\n\t\t\tthis.settings.setPlaying(oldStatus);\n\t\t\tclip.start();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void restart() {\n Board.gameOver = false;\n CollisionUtility.resetScore();\n loadMenu();\n }", "public void playAgain();", "public static void musicMainMenu(){\n\t\ttry {\r\n\t\t\tbgmusic = new Music(\"res/otherSounds/Menu.wav\");\r\n\t\t\tbgmusic.loop(1f, 0.2f);\r\n\t\t\t//System.out.println(bgmusic.getVolume()); \t\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void start(){\n\t\tif (host.getGameSettings().isMusicOn()) {\r\n\t\t\tspr_btnMute.setFrame(0);\r\n\t\t}else{\r\n\t\t\tspr_btnMute.setFrame(1);\r\n\t\t}\r\n\t}", "public void RestartGame()\n {\n \n }", "public void play() { player.resume();}", "public void play() {\n\t\tplay(true, true);\n\t}", "public void doShit(int gameState) {\n\t\tif(gameState != 0){\n\t\t\tif (!songs.get(curSong).isPlaying()) {// If the song ends it will play another\n\t\t\t\t//System.out.println(\"Working?\");\n\t\t\t\tchangeSong(gameState);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (gameState != prevGameState) {\n\t\t\t\t\t//System.out.println(\"Working?\");\n\t\t\t\t\tprevGameState = gameState;\n\t\t\t\t\tchangeSong(gameState);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\treset();//if it is at the start screen don't play anything\n\t\t}\n\t}", "private void resume() { player.resume();}", "public void wrong()\n\t{\n\t\tMediaPlayer wrong = MediaPlayer.create(this, R.raw.wrong);\n\t\twrong.start();\n\t}", "private void i_win() {\n\t\tif (MainMusic.isPlaying())\n\t\t\tMainMusic.stop();\n\t\tMainMusic = MediaPlayer.create(Game.this, R.raw.win);\n\t\tMainMusic.start();\n\t\tgame_panel.Pause_game=true;\n\t\tWinDialog.setVisibility(View.VISIBLE);\n\t}", "private void resume()\r\n {\r\n player.resume();\r\n }", "public static void start(Context c, int music, boolean force) {\r\n if ((!force) && (currentMusic_ != INVALID_NUMBER)) {\r\n // already playing some music and not forced to change immediately\r\n if (music != INVALID_NUMBER) {\r\n nextMusic_ = music;\r\n MediaPlayer mp = players_.get(music);\r\n if (mp == null) {\r\n mp = MediaPlayer.create(c, music);\r\n players_.put(music, mp);\r\n }\r\n MediaPlayer cp = players_.get(currentMusic_);\r\n if (cp != null) {\r\n cp.setOnCompletionListener(new OnCompletionListener() {\r\n @Override\r\n public void onCompletion(MediaPlayer p) {\r\n MusicHandler.next();\r\n }\r\n });\r\n cp.setLooping(false);\r\n }\r\n }\r\n return;\r\n }\r\n if (currentMusic_ == music) {\r\n // already playing this music\r\n return;\r\n }\r\n if (currentMusic_ != INVALID_NUMBER) {\r\n // playing some other music, pause it and change\r\n pause();\r\n }\r\n currentMusic_ = music;\r\n MediaPlayer mp = players_.get(music);\r\n if (mp != null) {\r\n if (!mp.isPlaying()) {\r\n // Note: This continues the piece where it last let off\r\n mp.setLooping(true);\r\n mp.setOnCompletionListener(null);\r\n mp.start();\r\n return;\r\n }\r\n } else {\r\n mp = MediaPlayer.create(c, music);\r\n players_.put(music, mp);\r\n if (mp == null) {\r\n // Log an error, but don't do anthing (we do not want to risk f/c the app)\r\n Log.e(TAG, \"player was not created successfully\");\r\n } else {\r\n mp.setLooping(true);\r\n mp.setOnCompletionListener(null);\r\n mp.start();\r\n }\r\n }\r\n }", "@Override\n protected void onPause()\n {\n super.onPause();\n setSound.pauseMusic();\n }", "@Override\r\n protected void playGameStartAudio() {\n\taudio.playClip();\r\n }", "public void play() {\n\t\tmusic.play();\n\t\tsyncPosition();\n\t}", "@Override\n public void restartLoader() {\n for (final MusicStateListener listener : mMusicStateListener) {\n if (listener != null) {\n listener.restartLoader();\n }\n }\n }", "private void restart() {\n \tanimation.stop();\n \tspeed = 1;\n \tstart(stage);\n }", "public void resume() {\n\t\t\n\t\tmusic.resume();\n\t\tsyncPosition();\n\t}", "public void play() {\n\t\t\r\n\t}", "public void restart() {\r\n\t\tstart();\r\n\t}", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n//\t\tgv.f = false;\t//如果没有这句,即使退出,run()函数也不停止运行,既游戏界面退出,到后台后仍在运行着。\r\n\t\tMusic.stop();\r\n\t}", "@Override\n\tpublic void pause() {\n\t PhoneDevice.Settings.stopMusic();\n\t}", "public void toggleSound() { \n\t\tif (mSoundEnable) {\n\t\t\tmSoundEnable = false; \n\t\t\tif (ResourceManager.getInstance().gameMusic.isPlaying())\n\t\t\t\tResourceManager.getInstance().gameMusic.pause();\n\t\t}\n\t\telse {\n\t\t\tmSoundEnable = true;\n\t\t\tif (!ResourceManager.getInstance().gameMusic.isPlaying()) {\n\t\t\t\tResourceManager.getInstance().gameMusic.play();\n\t\t\t}\n\t\t}\n\t}", "public void playSong() {\n player.reset();\n Song playedSong;\n //get the right song\n if (shuffle) {\n int newSong = shuffleIndexes.get(songPosn);\n playedSong = songs1.get(newSong);\n } else {\n playedSong = songs1.get(songPosn);\n }\n songTitle = playedSong.getSongName();\n Uri uri = Uri.parse(playedSong.getSongLocation());\n try {\n player.setDataSource(getApplicationContext(), uri);\n } catch (Exception e) {\n Log.e(\"MUSIC SERVICE\", \"Error setting data source\", e);\n }\n state = PlaybackStateCompat.STATE_PLAYING;\n player.prepareAsync();\n showNotification();\n }", "public synchronized void pause(){\r\n if(currentLoop0) backgroundMusicLoop0.pause();\r\n else backgroundMusicLoop1.pause();\r\n }", "public static void playerRun()\n {\n runSound.playLooped();\n }", "public void restart();", "@Override\n public void onCreate(Bundle savedInstanceState) {\n \tif(Static_Date.VOICE_SWITCH == true){\n \t\tif(Static_Date.j ==0){\n \t\tStatic_Date.MUSIC_PLAYER = new MusicPlayer(this);\n \t\tStatic_Date.MUSIC_PLAYER.music_start(R.drawable.background);\n \t\tStatic_Date.MUSIC_PLAYER.mediaPlayer.setLooping(true);\n \t\tStatic_Date.j++;\n \t}\n \t}\n \tif(Static_Date.VOICE_SWITCH == false){\n \tif(Static_Date.MUSIC_PLAYER !=null&& Static_Date.MUSIC_PLAYER.mediaPlayer !=null&&Static_Date.MUSIC_PLAYER.mediaPlayer.isPlaying()){\n\t\t\tStatic_Date.MUSIC_PLAYER.mediaPlayer.setLooping(false);\n\t\t\tStatic_Date.MUSIC_PLAYER.music_stop();\n\t\t}\n \t Static_Date.j--;\n \t\n \t}\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n Button start_game = (Button)findViewById(R.id.start_game);\n AnimationSet animationSet = new AnimationSet(true);\n TranslateAnimation translateAnimation = new TranslateAnimation(\n \t\tAnimation.RELATIVE_TO_SELF,0f,\n \t\tAnimation.RELATIVE_TO_SELF,0f,\n \t\tAnimation.RELATIVE_TO_SELF,-3f,\n \t\tAnimation.RELATIVE_TO_SELF,0f);\n translateAnimation.setDuration(1500);\n animationSet.addAnimation(translateAnimation);\n start_game.startAnimation(animationSet);\n start_game.setOnTouchListener(new OnTouchListener(){\n \tpublic boolean onTouch(View v,MotionEvent event){\n \t\tif(event.getAction()==event.ACTION_DOWN){\n \t\t\tv.findViewById(R.id.start_game).setBackgroundResource(R.drawable.bstart_game);\n \t\t}\n \t\telse if(event.getAction()==event.ACTION_UP){\n \t\t\tv.findViewById(R.id.start_game).setBackgroundResource(R.drawable.start_game);\n\t\t\t\t\tIntent intent1 = new Intent();\n\t\t\t\t\tintent1.setClass(snakemain.this , startgame.class);\n\t\t\t\t\tstartActivity(intent1);\t\n\t\t\t\t\t\n \t\t}\n \t\treturn false;\n \t}\n }\n );\n Button set = (Button)findViewById(R.id.set);\n AnimationSet animationSet1 = new AnimationSet(true);\n TranslateAnimation translateAnimation1 = new TranslateAnimation(\n \t\tAnimation.RELATIVE_TO_SELF,0f,\n \t\tAnimation.RELATIVE_TO_SELF,0f,\n \t\tAnimation.RELATIVE_TO_SELF,10f,\n \t\tAnimation.RELATIVE_TO_SELF,0f);\n translateAnimation1.setDuration(1500);\n animationSet1.addAnimation(translateAnimation1);\n set.startAnimation(animationSet1);\n set.setOnTouchListener(new OnTouchListener(){\n \tpublic boolean onTouch(View v,MotionEvent event){\n \t\tif(event.getAction()==event.ACTION_DOWN){\n \t\t\tv.findViewById(R.id.set).setBackgroundResource(R.drawable.bset);\n \t\t}\n \t\telse if(event.getAction()==event.ACTION_UP){\n \t\t\tv.findViewById(R.id.set).setBackgroundResource(R.drawable.set);\n \t\t\tIntent intent2 = new Intent();\n\t\t\t\t\tintent2.setClass(snakemain.this , set.class);\n\t\t\t\t\tstartActivity(intent2);\t\n\t\t\t\t\tfinish();\n \t\t}\n \t\treturn false;\n \t}\n }\n );\n Button help = (Button)findViewById(R.id.help);\n AnimationSet animationSet2 = new AnimationSet(true);\n TranslateAnimation translateAnimation2 = new TranslateAnimation(\n \t\tAnimation.RELATIVE_TO_SELF,0f,\n \t\tAnimation.RELATIVE_TO_SELF,0f,\n \t\tAnimation.RELATIVE_TO_SELF,-7f,\n \t\tAnimation.RELATIVE_TO_SELF,0f);\n translateAnimation2.setDuration(1500);\n animationSet2.addAnimation(translateAnimation2);\n help.startAnimation(animationSet2);\n help.setOnTouchListener(new OnTouchListener(){\n \tpublic boolean onTouch(View v,MotionEvent event){\n \t\tif(event.getAction()==event.ACTION_DOWN){\n \t\t\tv.findViewById(R.id.help).setBackgroundResource(R.drawable.bhelp);\n \t\t}\n \t\telse if(event.getAction()==event.ACTION_UP){\n \t\t\tv.findViewById(R.id.help).setBackgroundResource(R.drawable.help);\n \t\t\tIntent intent3 = new Intent();\n\t\t\t\t\tintent3.setClass(snakemain.this , help.class);\n\t\t\t\t\tstartActivity(intent3);\t\n \t\t}\n \t\treturn false;\n \t}\n }\n );\n Button finish = (Button)findViewById(R.id.finish);\n AnimationSet animationSet3 = new AnimationSet(true);\n TranslateAnimation translateAnimation3 = new TranslateAnimation(\n \t\tAnimation.RELATIVE_TO_SELF,0f,\n \t\tAnimation.RELATIVE_TO_SELF,0f,\n \t\tAnimation.RELATIVE_TO_SELF,5f,\n \t\tAnimation.RELATIVE_TO_SELF,0f);\n translateAnimation3.setDuration(1500);\n animationSet3.addAnimation(translateAnimation3);\n finish.startAnimation(animationSet3);\n finish.setOnTouchListener(new OnTouchListener(){\n \tpublic boolean onTouch(View v,MotionEvent event){\n \t\tif(event.getAction()==event.ACTION_DOWN){\n \t\t\tv.findViewById(R.id.finish).setBackgroundResource(R.drawable.bfinish);\n \t\t}\n \t\telse if(event.getAction()==event.ACTION_UP){\n \t\t\tv.findViewById(R.id.finish).setBackgroundResource(R.drawable.finish);\n \t\t\tif(Static_Date.MUSIC_PLAYER != null && Static_Date.MUSIC_PLAYER.mediaPlayer != null&&Static_Date.MUSIC_PLAYER.mediaPlayer.isPlaying()){\n \t\t\t\tStatic_Date.MUSIC_PLAYER.mediaPlayer.setLooping(false);\n \t\t\t\tStatic_Date.MUSIC_PLAYER.music_stop();\n \t\t\t}\n \t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n \t\t}\n \t\treturn false;\n \t}\n }\n );\n \n \n }", "public void menu(){\n menuMusic.loop(pitch, volume);\n }", "@Override\n protected void onStop() {\n super.onStop();\n stopMusic();\n }", "void gameResumed();", "private void playBGM() {\n if (!gameStart) {\n if (title.getStatus().equals(MediaPlayer.Status.PLAYING)) {\n title.stop(); gaming.play();\n }\n else title.play();\n }\n else if (gaming.getStatus().equals(MediaPlayer.Status.PLAYING)) {\n gaming.stop();\n if (gameStart && bgmHelper) playerDown.play();\n title.play();\n }\n }", "public void playSoundGameWon() {\n\t\tcompletedGameSound.play();\n\t}", "private void restart(){\n model.init();\n view.refreshPieces();\n start();\n }", "private void gameSound(int attack){\n switch (attack){\n case 1:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_lightattack);\n break;\n case 2:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_strongattack);\n break;\n case 3:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_brutalattack);\n break;\n }\n mediaPlayer.start();\n }", "public void play() {\n\n showIntro();\n startGame();\n\n }", "public void restartGame() {\n\t\tplayerTurn = 1;\n\t\tgameStart = true;\n\t\tdispose();\n\t\tplayerMoves.clear();\n\t\tboardSize();\n\t\tnew GameBoard();\n\t}", "public void stopBackgroundMusic()\n {\n background.stop();\n }", "public void play() {\n\t\t//If volume is not muted\n\t\tif (volume != Volume.MUTE) {\n\t\t\t//If the clip is running\n\t\t\tif (clip.isRunning()) {\n\t\t\t\tclip.stop(); //Stop it\n\t\t\t}\n\t\t\tclip.setFramePosition(0); //Rewind\n\t\t\tclip.start(); //Play again\n\t\t}\n\t}", "public static void stopMusic() {\n\t\tcurrentMusic.stop();\n\t}", "public void restart(){\n for(Player p: players)\n if(p.getActive())\n p.reset();\n turn = 0;\n currentPlayer = 0;\n diceRoller=true;\n }", "public void continueSound() {\n\t\tclip.start();\n\t}", "public void specialSong()\n {\n if(!mute)\n {\n try {\n \n bclip.stop();\n \n // Open an audio input stream.\n //URL url = this.getClass().getClassLoader().getResource(\"Glitzville.wav\"); \n //if(lastpowerUp.equals(\"RAINBOW\"))\n URL url = this.getClass().getClassLoader().getResource(\"Mario Kart Starman.wav\");\n \n \n \n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n sclip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n sclip.open(audioIn); \n \n sclip.start();\n \n \n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n } \n }\n }", "public void restart() \n {\n xPosition = (int)(FlappyMain.WIDTH/2.5);\n yPosition = FlappyMain.HEIGHT/2;\n xVelocity = yVelocity = 0;\n secret = false;\n }", "protected void restart() {\r\n\t\tthis.stop();\r\n\t\tthis.start();\r\n\t}", "public void keepLooping() {\n\t\tif(!clip.isActive()) {\n\t\t\tstartSound();\n\t\t}\n\t}", "protected void restart()\r\n \t{\r\n \t\tspielen();\r\n \t}", "public void StopMusic();", "public void restart()\n\t{\n\t\tinit();\n\t}", "private void resumeGame() {\n\n gameCountDownTimer = getGameTimer();\n gameCountDownTimer.start();\n if(globalAnimatorMap != null && !globalAnimatorMap.isEmpty() && globalAnimatorMap.size() > 0) {\n for (Map.Entry<Integer, AnimatorSet> entry : globalAnimatorMap.entrySet()) {\n AnimatorSet animatorSet = entry.getValue();\n if (animatorSet != null) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n if (animatorSet.isPaused()) {\n animatorSet.resume();\n }\n } else {\n animatorSet.start();\n }\n }\n }\n }else{\n animateBalloonView(balloon1,false);\n animateBalloonView(balloon2,false);\n animateBalloonView(balloon3,false);\n animateBalloonView(balloon4,false);\n animateBalloonView(balloon5,false);\n }\n String controlButtonTitle = getResources().getString(R.string.pause_btn);\n conttroler.setText(controlButtonTitle);\n currentScreenGameState = GameState.PLAYING;\n setCurrentScreenCover();\n invalidateOptionsMenu();\n }", "public void reset() {\n playing = true;\n won = false;\n startGame();\n\n // Make sure that this component has the keyboard focus\n requestFocusInWindow();\n }", "@Override\r\n\tpublic void setMusic() {\r\n\t\tmanager.getMusicManager().setMusic((Music) Gdx.audio.newMusic(Gdx.files.internal(\"Music/Bandit Camp.mp3\")));\r\n\t}", "public void pauseSong()\n {\n if(!mute)\n {\n try{ \n //bclip.stop();\n \n URL url = this.getClass().getClassLoader().getResource(\"Refreshing Elevator Music.wav\");\n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n pclip = AudioSystem.getClip();\n \n // Open audio clip and load samples from the audio input stream.\n pclip.open(audioIn); \n pclip.start();\n pclip.loop(Clip.LOOP_CONTINUOUSLY);\n }catch(Exception e){}\n }\n }" ]
[ "0.8348618", "0.74386764", "0.73342437", "0.7276193", "0.7177171", "0.7139708", "0.7099681", "0.6979862", "0.6954821", "0.6908612", "0.6898744", "0.68523407", "0.6807263", "0.6799657", "0.6791126", "0.67825764", "0.6753523", "0.6751896", "0.6722857", "0.668813", "0.66823435", "0.6678692", "0.6670481", "0.6641365", "0.66345704", "0.6607006", "0.6606506", "0.6591532", "0.658507", "0.6582386", "0.6580759", "0.6578977", "0.6571277", "0.6559089", "0.6556333", "0.6550733", "0.6550413", "0.6529855", "0.65191746", "0.6517995", "0.6509455", "0.6506868", "0.64889944", "0.6478752", "0.645457", "0.64495206", "0.64395165", "0.6422371", "0.64205176", "0.64154273", "0.6405917", "0.64021975", "0.63702804", "0.6368634", "0.6358169", "0.6346157", "0.6344472", "0.63318896", "0.6312232", "0.6300145", "0.62964076", "0.62865597", "0.62844193", "0.62761223", "0.6275073", "0.6272516", "0.62721443", "0.62622267", "0.6259434", "0.6251136", "0.62379736", "0.62319064", "0.6217588", "0.6215932", "0.62062097", "0.6206119", "0.62030643", "0.61958754", "0.6195462", "0.61917573", "0.61884135", "0.61790097", "0.61782724", "0.6175826", "0.61741006", "0.61732274", "0.61580235", "0.6157313", "0.6152818", "0.6151858", "0.6149278", "0.6144717", "0.61422235", "0.6140771", "0.61392874", "0.6135268", "0.6133453", "0.6130874", "0.6128979", "0.6126854", "0.61256415" ]
0.0
-1
/ the method that plays the sounds. a different song is played depending on how far you are in the game. generally each level gets louder and more active.
protected void playSounds() { int x; try { switch(MySurfaceView.vicCount) { case 0: mBackgroundSound.execute(); mBackgroundSound5.foo(); break; case 1: if(mega==false) { mega=true; levelplayer = MediaPlayer.create(MainActivity.this, R.raw.levemega); levelplayer.setLooping(false); levelplayer.start(); } x = mBackgroundSound.getTime(); mBackgroundSound.foo(); mBackgroundSound2.execute(); mBackgroundSound2.fastF(x); break; case 2: if(superr==false) { superr=true; levelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelsuper); levelplayer.setLooping(false); levelplayer.start(); } x = mBackgroundSound2.getTime(); mBackgroundSound2.foo(); mBackgroundSound3.execute(); mBackgroundSound3.fastF(x); break; case 3: if(ultra==false) { ultra=true; levelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelultra); levelplayer.setLooping(false); levelplayer.start(); } x = mBackgroundSound3.getTime(); mBackgroundSound3.foo(); mBackgroundSound4.execute(); mBackgroundSound4.fastF(x); break; case 4: if(extra==false) { extra=true; levelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelextra); levelplayer.setLooping(false); levelplayer.start(); } x = mBackgroundSound4.getTime(); mBackgroundSound4.foo(); mBackgroundSound5.execute(); mBackgroundSound5.fastF(x); break; } } catch (IllegalStateException ise) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void playSounds(BlockPos pos) {\n float aggroPercent = getAggroProgress();\n if (soundTime <= 0) {\n playSound(ModSounds.MONK, 1F, 1F);\n soundTime = 100;\n }\n if (aggroPercent > 0.70 && soundTime < 100) {\n world.playSound(null, pos, ModSounds.TEARING, SoundCategory.HOSTILE, 1F, (float) (1 + rand.nextGaussian()));\n soundTime = 100 + rand.nextInt(75);\n }\n if (aggroPercent > 0.80 && soundTime < MAX_SOUND_COOLDOWN) {\n world.playSound(null, pos, ModSounds.TEARING, SoundCategory.HOSTILE, 7, 1F);\n soundTime = 250;\n }\n soundTime--;\n }", "public GameSoundPlayer() {\r\n mainThemeSoundPlayer = new SoundPlayer(\"src/main/resources/sounds/menu.mp3\", 0.7, -1);\r\n newGameThemeSoundPlayer = new SoundPlayer(\"src/main/resources/sounds/newMenu.mp3\", 1, 1);\r\n\r\n playBack1 = new SoundPlayer(\"src/main/resources/sounds/play1.mp3\", 1, -1);\r\n playBack2 = new SoundPlayer(\"src/main/resources/sounds/play2.mp3\", 1, -1);\r\n playBack3 = new SoundPlayer(\"src/main/resources/sounds/play3.mp3\", 1, -1);\r\n playBack4 = new SoundPlayer(\"src/main/resources/sounds/play4.mp3\", 1, -1);\r\n playBack5 = new SoundPlayer(\"src/main/resources/sounds/play5.mp3\", 1, -1);\r\n endGame = new SoundPlayer(\"src/main/resources/sounds/endGame.mp3\", 1, 1);\r\n\r\n for (BONUSES_SOUNDS sound : BONUSES_SOUNDS.values()) {\r\n switch (sound) {\r\n case ALLDIE:\r\n allDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case EXTRASPEED:\r\n extraSpeedPlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case MAKESLOWER:\r\n makeSlowerPlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BONUSFIRE:\r\n bonusFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BONUSJUMP:\r\n bonusJumpPlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BONUSJUMPSTART:\r\n jumpStartPlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n }\r\n }\r\n for (FIRE_SOUNDS sound : FIRE_SOUNDS.values()) {\r\n switch (sound) {\r\n case DARK:\r\n darkFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case FENIX:\r\n fenixFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BONE:\r\n boneFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case GHOST:\r\n ghostFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case ARCHANGEL:\r\n archFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BEHEMOTH:\r\n begemFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case CHAMPION:\r\n champFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case PEGASUS:\r\n pegasFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case THUNDERBIRD:\r\n thunderFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case TROGLODYTE:\r\n troglFirePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n }\r\n }\r\n for (DIE_SOUNDS sound : DIE_SOUNDS.values()) {\r\n switch (sound) {\r\n case DARK:\r\n darkDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case FENIX:\r\n fenixDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BONE:\r\n boneDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case GHOST:\r\n ghostDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case ARCHANGEL:\r\n archDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case BEHEMOTH:\r\n begemDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case CHAMPION:\r\n champDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case PEGASUS:\r\n pegasDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case THUNDERBIRD:\r\n thunderDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n case TROGLODYTE:\r\n troglDiePlayer = new SoundPlayer(sound.getUrl(), sound.getVolume(), sound.getCycleCount());\r\n break;\r\n }\r\n }\r\n }", "private void playAudio(int winLose)\t\t\t\t\t\t\t\n {\n // win\n if(winLose == 1)\n {\n String path = \"src/winningSound.wav\";\n Media media = new Media(new File(path).toURI().toString());\n\n mediaPlayer = new MediaPlayer(media);\n mediaPlayer.setCycleCount(1);\n mediaPlayer.setAutoPlay(true);\n }\n // lose\n else\n {\n String path = \"src/loserSound.wav\";\n Media media = new Media(new File(path).toURI().toString());\n mediaPlayer = new MediaPlayer(media);\n mediaPlayer.setCycleCount(1);\n mediaPlayer.setAutoPlay(true);\n }\n }", "public static void musicFirstLevel(){\n\t\ttry {\r\n\t\t\tbgmusicLevel = new Music(\"res/sound/firstLevel.wav\");\r\n\t\t\tbgmusicLevel.loop(1f, 0.1f);\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void loadSounds() {\n\t\ttry {\n\t\t\tSoundPlayer.load(\"bounce.wav\");\n\t\t\tSoundPlayer.load(\"laser1.wav\");\n\t\t\tSoundPlayer.load(\"hit1.wav\");\n\t\t\tSoundPlayer.load(\"speedup.wav\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void playWinSounds(){\r\n try {\r\n File mFile = new File(Filepath3);\r\n if (mFile.exists()) {\r\n AudioInputStream audioInput4 = AudioSystem.getAudioInputStream(mFile);\r\n Clip clip4 = AudioSystem.getClip();\r\n clip4.open(audioInput4);\r\n FloatControl gainControl4 = (FloatControl) clip4.getControl(FloatControl.Type.MASTER_GAIN);\r\n gainControl4.setValue(-10.0f); //reduces the volume by 10 decibels\r\n clip4.start();\r\n } else {\r\n System.out.println(\"Music File not found\"); // will be thrown if music file is not in the file\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "public void game(){\n gameMusic.loop(pitch, volume);\n }", "public static void loadSounds()\n {\n combust = new SoundLoader(\"explosion.wav\");\n zWalk = new SoundLoader(\"zWalk.wav\");\n bite = new SoundLoader(\"zBite.wav\");\n hitObst = new SoundLoader(\"zHitObst.wav\");\n runSound = new SoundLoader(\"pRunSound.wav\");\n walkSound = new SoundLoader(\"pWalkSound.wav\");\n scream = new SoundLoader(\"pScream.wav\");\n\n zWalk.makeBalanceControlled();\n hitObst.makeBalanceControlled();\n\n }", "public void specialSong()\n {\n if(!mute)\n {\n try {\n \n bclip.stop();\n \n // Open an audio input stream.\n //URL url = this.getClass().getClassLoader().getResource(\"Glitzville.wav\"); \n //if(lastpowerUp.equals(\"RAINBOW\"))\n URL url = this.getClass().getClassLoader().getResource(\"Mario Kart Starman.wav\");\n \n \n \n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n sclip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n sclip.open(audioIn); \n \n sclip.start();\n \n \n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n } \n }\n }", "public static void game_sound() {\n\t\tm_player_game.start();\n\t\tm_player_game.setMediaTime(new Time(0));\n\t}", "public void update() {\n\t\tswitch (playLevelScreenState) {\n\t\t// if level is \"running\" update player and map to keep game logic for the\n\t\t// platformer level going\n\t\tcase RUNNING:\n\t\t\tif (player.getLevelState() == LevelState.LEVEL_COMPLETED || player.getLevelState() == LevelState.PLAYER_DEAD) {\n\t\t\t\taudio.stopPlayingMusic();\n\t\t\t}\n\t\t\tif (!isGamePaused && player.getLevelState() == LevelState.RUNNING) {\n\n\t\t\t\tswitch (k) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\taudio.startPlayingLoop(0); // jumper\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\taudio.startPlayingLoop(0); // jumper\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\taudio.startPlayingLoop(0); // jumper\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\taudio.startPlayingLoop(13); // mario forest\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\taudio.startPlayingLoop(13); // mario forest\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\taudio.startPlayingLoop(12); // day sonic desert\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\taudio.startPlayingLoop(12); // day sonic desert\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 7:\n\t\t\t\t\t\taudio.startPlayingLoop(12); // day sonic desert\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 8:\n\t\t\t\t\t\taudio.startPlayingLoop(11); // mario desert\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 9:\n\t\t\t\t\t\taudio.startPlayingLoop(11); // mario desert\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 10:\n\t\t\t\t\t\taudio.startPlayingLoop(9); // aquatic mountain\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 11:\n\t\t\t\t\t\taudio.startPlayingLoop(9); // aquatic mountain\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 12:\n\t\t\t\t\t\taudio.startPlayingLoop(9); // aquatic mountain\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 13:\n\t\t\t\t\t\taudio.startPlayingLoop(8); // second mountain clip\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 14:\n\t\t\t\t\t\taudio.startPlayingLoop(14); // credits\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (Keyboard.isKeyDown(Key.P) && !keyLocker.isKeyLocked(Key.P)) {\n\t\t\t\taudio.stopPlaying(0);\n\t\t\t\tisGamePaused = !isGamePaused;\n\t\t\t\tkeyLocker.lockKey(Key.P);\n\n\n\t\t\t\tif (isGamePaused) {\n\t\t\t\t\taudio.startPlayingOnce(4);\n\t\t\t\t\tpauseLevelScreen.initialize();\n\t\t\t\t\tstartPauseTime = System.currentTimeMillis();\n\n\t\t\t\t} else {\n\t\t\t\t\taudio.startPlayingOnce(4);\n\t\t\t\t\tlong timePassedPaused = System.currentTimeMillis() - startPauseTime;\n\t\t\t\t\tpauseTime += timePassedPaused;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (Keyboard.isKeyUp(Key.P)) {\n\t\t\t\tkeyLocker.unlockKey(Key.P);\n\t\t\t}\n\n\t\t\tif (isGamePaused) {\n\t\t\t\tpauseLevelScreen.update();\n\t\t\t} else {\n\t\t\t\tplayer.update();\n\t\t\t\tmap.update(player);\n\t\t\t\thud.update();\n\t\t\t}\n\t\t\tbreak;\n\t\t// if level has been completed, bring up level cleared screen\n\t\tcase LEVEL_COMPLETED:\n\t\t\tlevelClearedScreen = new LevelClearedScreen(startTime, pauseTime);\n\t\t\tlevelClearedScreen.initialize();\n\t\t\tscreenTimer.setWaitTime(2500);\n\t\t\tplayLevelScreenState = PlayLevelScreenState.LEVEL_WIN_MESSAGE;\n\t\t\taudio.stopPlayingMusic();\n\t\t\taudio.startPlayingOnce(1);\n\t\t\tbreak;\n\t\t// if level cleared screen is up and the timer is up for how long it should stay\n\t\t// out, go back to main menu\n\t\tcase LEVEL_WIN_MESSAGE:\n\t\t\tif (screenTimer.isTimeUp()) {\n\t\t\t\tlevelClearedScreen = null;\n\t\t\t\tgoToNextLevel();\n\t\t\t}\n\t\t\tbreak;\n\t\t// if player died in level, bring up level lost screen\n\t\tcase PLAYER_DEAD:\n\t\t\taudio.stopPlaying(0);\n\t\t\tlevelLoseScreen = new LevelLoseScreen(this);\n\t\t\tlevelLoseScreen.initialize();\n\t\t\tplayLevelScreenState = PlayLevelScreenState.LEVEL_LOSE_MESSAGE;\n\t\t\tbreak;\n\t\t// wait on level lose screen to make a decision (either resets level or sends\n\t\t// player back to main menu)\n\t\tcase LEVEL_LOSE_MESSAGE:\n\t\t\tlevelLoseScreen.update();\n\t\t\tbreak;\n\t\t}\n\t}", "public static void beginCurrentSoundtrack() {\n\t\t\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null) {\n\t\t\t\n\t\t\t// In case a new game is started before the victory jingle is finished\n\t\t\t// from a previous game (rare occurrence, but possible)\n\t\t\tif (victoryFanfare.isRunning()) victoryFanfare.stop();\t\t\t\n\t\t\t\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].setFramePosition(0);\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void gameSound(int attack){\n switch (attack){\n case 1:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_lightattack);\n break;\n case 2:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_strongattack);\n break;\n case 3:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_brutalattack);\n break;\n }\n mediaPlayer.start();\n }", "public void play() {\n if (!isHungry()) {\n hunger += 2;\n mood += 2;\n fatigue += 3;\n\n if (!muted) {\n System.out.println(\"play\\t|\\tPlaying is fun!\");\n }\n }\n }", "protected void playStepSound(int par1, int par2, int par3, int par4)\n {\n this.playSound(\"mob.spider.step\", 0.15F, 1.0F);\n }", "public void foodSound(){\n if (enableSound){\r\n\t clip.play();\r\n }\r\n\t\t\r\n\t}", "public static void hit_sound() {\n\t\tif (!hit1) {\n\t\t\thit1 = true;\n\t\t\tm_player_hit.setMediaTime(new Time(0));\n\t\t\tm_player_hit.start();\n\t\t} else if (!hit2) {\n\t\t\thit2 = true;\n\t\t\tm_player_hit2.setMediaTime(new Time(0));\n\t\t\tm_player_hit2.start();\n\t\t} else if (!hit3) {\n\t\t\thit3 = true;\n\t\t\tm_player_hit3.setMediaTime(new Time(0));\n\t\t\tm_player_hit3.start();\n\t\t} else if (!hit4) {\n\t\t\thit4 = true;\n\t\t\tm_player_hit4.setMediaTime(new Time(0));\n\t\t\tm_player_hit4.start();\n\t\t} else if (!hit5) {\n\t\t\thit5 = true;\n\t\t\tm_player_hit5.setMediaTime(new Time(0));\n\t\t\tm_player_hit5.start();\n\t\t} else {\n\t\t\thit1 = hit2 = hit3 = hit4 = hit5 = false;\n\t\t\tm_player_hit6.setMediaTime(new Time(0));\n\t\t\tm_player_hit6.start();\n\t\t}\n\n\t}", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), controllerVars.getVolume(), controllerVars.getVolume(), 1, 0, 1f);\n\t\t\tcontrollerVars.COUNTER++;\n\t\t\t//Toast.makeText(act, \"Played sound\", Toast.LENGTH_SHORT).show();optional Playing message \n\t\t\tcontrollerVars.setPlays(true);\n\t\t\tonComplete(controllerVars.getMediaPlayer().getDuration());\n\t\t}\n\t\t//controllerVars.getMediaPlayer().start();\n\t\t//controllerVars.setPlays(true);\n\t}", "public void playLaneSounds(){\r\n try {\r\n File mFile = new File(Filepath5);\r\n if (mFile.exists()) {\r\n AudioInputStream audioInput6 = AudioSystem.getAudioInputStream(mFile);\r\n Clip clip6 = AudioSystem.getClip();\r\n clip6.open(audioInput6);\r\n FloatControl gainControl6 = (FloatControl) clip6.getControl(FloatControl.Type.MASTER_GAIN);\r\n gainControl6.setValue(-10.0f); //reduces the volume by 10 decibels\r\n clip6.start();\r\n } else {\r\n System.out.println(\"Music File not found\"); // will be thrown if music file is not in the file\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "@Override\r\n protected void playGameStartAudio() {\n\taudio.playClip();\r\n }", "public void play(){\n\t\t\n\t}", "public void gameOver(){\n gameOverMusic.loop(pitch, volume);\n }", "public static void musicMainMenu(){\n\t\ttry {\r\n\t\t\tbgmusic = new Music(\"res/otherSounds/Menu.wav\");\r\n\t\t\tbgmusic.loop(1f, 0.2f);\r\n\t\t\t//System.out.println(bgmusic.getVolume()); \t\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void play() {\n if (audio != null) {\n audio.play(sfxVolume);\n }\n }", "private void initSounds() {\n\n\n\t}", "public void play() {\n\t\t\r\n\t}", "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "@Override\n\tpublic void playLivingSound() {\n\t\tgetSoundManager().playLivingSound();\n\t}", "public void playAudio() {\n\t\tmusic[currentSong].stop();\n\t\tcurrentSong++;\n\t\tcurrentSong %= music.length;\n\t\tmusic[currentSong].play();\n\t}", "public static void playShootingSound(){\n String musicFile = \"Sounds\\\\Shoot.mp3\";\n Media sound = new Media(new File(musicFile).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(sound);\n mediaPlayer.setVolume(App.getVolume());\n mediaPlayer.play();\n }", "public void playLoseSounds(){\r\n try {\r\n File mFile = new File(Filepath4);\r\n if (mFile.exists()) {\r\n AudioInputStream audioInput5 = AudioSystem.getAudioInputStream(mFile);\r\n Clip clip5 = AudioSystem.getClip();\r\n clip5.open(audioInput5);\r\n FloatControl gainControl5 = (FloatControl) clip5.getControl(FloatControl.Type.MASTER_GAIN);\r\n gainControl5.setValue(-8.0f); //reduces the volume by 8 decibels\r\n clip5.start();\r\n } else {\r\n System.out.println(\"Music File not found\"); // will be thrown if music file is not in the file\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "@Override\n public void playSound(int soundId) {\n\n }", "static void soundsEZ() {\n\t\tapplauseSound = EZ.addSound(\"applause.wav\");\n\t\twallSound = EZ.addSound(\"stone1.wav\");\n\t\tdiamondSound = EZ.addSound(\"glass1.wav\");\n\t}", "public static void soundJump(){\n\t\ttry {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\t int randomNum = rand.nextInt((4 - 1) + 1) + 1;\r\n\t\t\t\r\n\t\t\t if(randomNum == 1){\r\n\t\t\t\t soundJump = new Sound(\"res/soundLiabary/Jump_00.wav\");\r\n\t\t\t\t soundJump.play(1f, 0.15f);\r\n\t\t\t\t \r\n\t\t\t } else if(randomNum == 2){\r\n\t\t\t\t soundJump = new Sound(\"res/soundLiabary/Jump_01.wav\");\r\n\t\t\t\t soundJump.play(1f, 0.15f);\r\n\t\t\t\t \r\n\t\t\t }else if(randomNum == 3){\r\n\t\t\t\t soundJump = new Sound(\"res/soundLiabary/Jump_02.wav\");\r\n\t\t\t\t soundJump.play(1f, 0.15f);\r\n\t\t\t\t \r\n\t\t\t }else if(randomNum == 4){\r\n\t\t\t\t soundJump = new Sound(\"res/soundLiabary/Jump_03.wav\");\r\n\t\t\t\t soundJump.play(1f, 0.15f);\r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void playSound(SoundEvent debug1, float debug2, float debug3) {\n/* 466 */ this.level.playSound(this, getX(), getY(), getZ(), debug1, getSoundSource(), debug2, debug3);\n/* */ }", "public void playSound(String sound) {\n\t\t \n\t\t // open the sound file as a Java input stream\n\t\tString soundFile = null;\n\t\tswitch (sound) {\n\t\tcase \"opening\":\n\t\t\tsoundFile = \"ConfigFiles\\\\opening.wav\";\n\t\t\tbreak;\n\t\tcase \"ending\":\n\t\t\tsoundFile = \"ConfigFiles\\\\ending.wav\";\n\t\t\tbreak;\n\t\tcase \"shop\":\n\t\t\tsoundFile = \"ConfigFiles\\\\shop.wav\";\n\t\t\tbreak;\n\t\tcase \"monsterbattle\":\n\t\t\tsoundFile = \"ConfigFiles\\\\monsterbattle.wav\";\n\t\t\tbreak;\n\t\tcase \"battlewin\":\n\t\t\tsoundFile = \"ConfigFiles\\\\monstervictory.wav\";\n\t\t\tbreak;\n\t\tcase \"trainerbattle\":\n\t\t\tsoundFile = \"ConfigFiles\\\\trainerBattle.wav\";\n\t\t\tbreak;\n\t\tcase \"trainerbattlewin\":\n\t\t\tsoundFile = \"ConfigFiles\\\\trainerVictory.wav\";\n\t\t\tbreak;\n\t\tcase \"map\":\n\t\t\tsoundFile = \"ConfigFiles\\\\map.wav\";\n\t\t\tbreak;\n\t\t}\n\t\t\t\n\t\t \n\t\t InputStream in = null;\n\t\t\ttry {\n\t\t\t\tin = new FileInputStream(soundFile);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t \n\t\t\tif(audioStream != null ) {\n\t\t\t\tAudioPlayer.player.stop(audioStream);\n\t\t\t}\n\t\t\t // create an audiostream from the inputstream\n\t\t\ttry {\n\t\t\t\taudioStream = new AudioStream(in);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t // play the audio clip with the audioplayer class\n\t\t\t\n\t\t AudioPlayer.player.start(audioStream);\n\t\t \n\t}", "public void playSoundGameWon() {\n\t\tcompletedGameSound.play();\n\t}", "PlaySound getSound();", "public void restartLevel() {\r\n world.stop();\r\n levelMusic.close();\r\n if(level == 1) {\r\n world = new Level1();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel1Sound();\r\n levelMusic.loop();\r\n controlPanel.setWorld(world);\r\n world.start();\r\n }\r\n else if(level == 2) {\r\n world = new Level2();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel2Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else if(level == 3) {\r\n world = new Level3();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel3Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n }", "protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }", "public void coinSound()\n {\n if(!mute)\n {\n try {\n // Open an audio input stream.\n URL url = this.getClass().getClassLoader().getResource(\"Coin.wav\"); \n \n if(dotColor.equals(\"BLUE\"))\n url = this.getClass().getClassLoader().getResource(\"Out Of Bounds Start.wav\");\n else if(dotColor.equals(\"CRYSTAL\"))\n url = this.getClass().getClassLoader().getResource(\"Crystal Noise.wav\");\n else if(dotColor.equals(\"YELLOW\"))\n url = this.getClass().getClassLoader().getResource(\"Mushroom Up.wav\");\n else if(dotColor.equals(\"BLACK\"))\n url = this.getClass().getClassLoader().getResource(\"Invisible On.wav\");\n else if(dotColor.equals(\"RAINBOW\"))\n url = this.getClass().getClassLoader().getResource(\"Sonic Ring.wav\");\n else if(powerupTimer>0 && lastpowerUp.equals(\"CRYSTAL\"))\n url = this.getClass().getClassLoader().getResource(\"Coin.wav\"); \n else if(powerupTimer > 0 && (lastpowerUp.equals(\"DOUBLE\")|| (lastpowerUp.equals(\"YELLOW\") && modeT)))\n url = this.getClass().getClassLoader().getResource(\"DK.wav\");\n else if(powerupTimer >0 && !lastpowerUp.equals(\"BLACK\"))\n url = this.getClass().getClassLoader().getResource(\"Boop.wav\");\n else if(powerupTimer >0 && lastpowerUp.equals(\"BLACK\") && !modeT)\n url = this.getClass().getClassLoader().getResource(\"Secret Sound.wav\");\n else if(dotColor.equals(\"DOUBLE\"))\n url = this.getClass().getClassLoader().getResource(\"Double Points.wav\");\n else if(dotColor.equals(\"WHITE\"))\n url = this.getClass().getClassLoader().getResource(\"Kaboom.wav\");\n else if(dotColor.equals(\"TROLL\"))\n {\n if(!modeT)\n url = this.getClass().getClassLoader().getResource(\"Toad Sound.wav\");\n else \n url = this.getClass().getClassLoader().getResource(\"Mushroom Up.wav\");\n }\n if(difficult.equals(\"GHOST\"))\n url = this.getClass().getClassLoader().getResource(\"Crystal Noise.wav\");\n \n double c = Math.random(); \n //if(c>.9)\n // {\n // url = this.getClass().getClassLoader().getResource(\"\");\n //}\n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n Clip clip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n clip.open(audioIn); \n \n clip.start();\n \n \n \n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n }\n }\n }", "public void playGoombaSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.playSound(MUSIC_FOLDER, GOOMBA);\n\t}", "public LevelOne(Time time) {\n this.finishLevel = 10;\n this.time=time;\n try {\n this.gameMusic = new SoundClip(\"data/level1.wav\");\n gameMusic.loop();\n } catch (UnsupportedAudioFileException ex) {\n ex.printStackTrace();\n } catch (IOException ex) {\n ex.printStackTrace();\n } catch (LineUnavailableException ex) {\n ex.printStackTrace();\n }\n }", "void play();", "public void initializeSounds() {\r\n\t\ttry {\r\n\t\t\tsound a = new sound();\r\n\r\n\t\t\t// Fire sound effect\r\n\t\t\tclipFire = a.getSound();\r\n\t\t\tstreamFire = a.getStream();\r\n\r\n\t\t\t// Shooting sound effect\r\n\t\t\tclipShoot = a.getSound2();\r\n\t\t\tstreamShoot = a.getStream2();\r\n\r\n\t\t\t// Sound when an alien is destroyed\r\n\t\t\tclipAlienDestroyed = a.getSoundAlienDestroyed();\r\n\t\t\tstreamAlienDestroyed = a.getStreamAlienDestroyed();\r\n\r\n\t\t\t// Sound when a ship has been destroyed\r\n\t\t\tclipShip = a.getSoundShip();\r\n\t\t\tstreamShip = a.getStreamShip();\r\n\r\n\t\t\t// Sound when an asteroid has been destroyed\r\n\t\t\tclipAsteroid = a.getSoundAsteroid();\r\n\t\t\tstreamAsteroid = a.getStreamAsteroid();\r\n\r\n\t\t\t// Sound when AlienShip appears\r\n\t\t\tclipAlienShip = a.getClipAlienShip();\r\n\t\t\tstreamAlienShip = a.getStreamAlienShip();\r\n\r\n\t\t\t// Open the sound clips\r\n\t\t\tclipFire.open(streamFire);\r\n\t\t\tclipShoot.open(streamShoot);\r\n\t\t\tclipAlienDestroyed.open(streamAlienDestroyed);\r\n\t\t\tclipShip.open(streamShip);\r\n\t\t\tclipAsteroid.open(streamAsteroid);\r\n\t\t\tclipAlienShip.open(streamAlienShip);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t} catch (LineUnavailableException f) {\r\n\t\t} catch (UnsupportedAudioFileException f) {\r\n\t\t} catch (IOException f) {\r\n\t\t}\r\n\r\n\t}", "public void play() {\n\t\tplay(true, true);\n\t}", "public void playGameOverSound() {\n\t\ttry {\n\t\t\tAudioInputStream audioStream = AudioSystem.getAudioInputStream(new File(\"Musik/DeadSound.wav\"));\n\t\t\t\n\t\t\tClip clip = AudioSystem.getClip(); \n\t\t\tclip.open(audioStream);\n\t\t\t\n\t\t\tboolean oldStatus = settings.isPlaying(); \n\t\t\t\n\t\t\tstopMusik();\n\t\t\t\n\t\t\t\n\t\t\tthis.settings.setPlaying(oldStatus);\n\t\t\tclip.start();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void play(MediaPlayer choice) {\n if (choice == background) {\n if (!background2.isPlaying() && levelCtrl.level >= levelChange) {\n background2.setVolume(volume, volume);\n background2.start();\n }\n else if (!background.isPlaying()) {\n background.setVolume(volume, volume);\n background.start();\n }\n }\n else if (!choice.isPlaying()) {\n choice.setVolume(volume, volume);\n choice.start();\n }\n }", "public void playSoundGameLost() {\n\t\tlostGameSound.play();\n\t}", "public void playDonkeySounds(){\r\n try {\r\n File mFile = new File(Filepath2);\r\n if (mFile.exists()) {\r\n AudioInputStream audioInput3 = AudioSystem.getAudioInputStream(mFile);\r\n Clip clip3 = AudioSystem.getClip();\r\n clip3.open(audioInput3);\r\n FloatControl gainControl3 = (FloatControl) clip3.getControl(FloatControl.Type.MASTER_GAIN);\r\n gainControl3.setValue(-10.0f); //reduces the volume by 10 decibels\r\n clip3.start();\r\n\r\n } else {\r\n System.out.println(\"Music File not found\"); // will be thrown if music file is not in the file\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "public void goNextLevel() {\r\n world.stop();\r\n levelMusic.close();\r\n if(level == 1) {\r\n level++;\r\n world = new Level2();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel2Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else if(level == 2) {\r\n level++;\r\n world = new Level3();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel3Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else {\r\n System.out.println(\"PLAYER SURVIVED\");\r\n System.exit(0);\r\n }\r\n }", "public void playSound() {\n\t\tmediaPlayer.play();\n\t}", "public void play(int soundID) {\n System.out.println(\"PlaySound: \" + soundID);\n// if (soundID == SOUND_EAT)\n// return;\n play(soundID, 1);\n }", "public void play() {\n\t\tif (happiness + 10 > 100) {\n\t\t\thappiness = 100;\n\t\t} else {\n\t\t\thappiness += 10;\n\t\t}\n\t}", "@Override\n\tpublic void play() {\n\t\tGuitar.super.play();\n\t\tPiano.super.play();\n\t}", "@Override\n\tpublic void play() {\n\t\t\n\t}", "public void play()\n\t{\n\t\tif (canPlay)\n\t\t{\n\t\t\tsong.play();\n\t\t\tsong.rewind();\n\t\t\tif (theSong == \"SG1\" || theSong == \"SG2\")\n\t\t\t\tcanPlay = false;\n\t\t}\n\t}", "public void playMusic() {\n\t\ttry {\n\t\t\tsoundManager.playMusic(\"bgroundmusic\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\r\n\tpublic float soundLevel() {\n\t\treturn 1f;\r\n\t}", "public void run() \n {\n //Runs the countdown before the game starts\n \n if(!mute)\n try{startSound();}catch(Exception e){}\n for(int i = 3; i > 0; i--)\n {\n text = \"Game will start in: \" +i;\n repaint();\n try{Thread.sleep(1000);}catch(InterruptedException e){}\n } \n text =\"\";\n start = true;\n \n soundClipTest();\n \n while(running)\n {\n tick();\n timer(); \n \n try\n {\n if(modeT)\n Thread.sleep(25);\n else if(difficult.equals(\"EASY\"))\n {\n if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer >0)\n Thread.sleep(45);\n else\n Thread.sleep(67);\n }\n else if(difficult.equals(\"MEDIUM\")||difficult.equals(\"GHOST\")|| difficult.equals(\"TROLL\"))\n Thread.sleep(45);\n else if(difficult.equals(\"HARD\"))\n Thread.sleep(30);\n else if(difficult.equals(\"YOU WILL NOT SURVIVE\"))\n Thread.sleep(10);\n } \n catch(InterruptedException e) {}\n \n if(pause)\n {\n pauseSong();\n }\n \n if(powerupTimer>.1 && powerupTimer<.21)\n {\n endSound();\n }\n\n \n if(dot.isEqual(head) || (lastpowerUp.equals(\"YELLOW\") && powerupTimer > 0 && wideSnakeOnDot() && !modeT) ||(lastpowerUp.equals(\"TROLL\") && powerupTimer > 0 && wideSnakeOnDot() && modeT))\n {\n coinSound();\n \n for(int k = 0; k<1 ; k++)\n {\n addSegment();\n }\n \n if(!dotColor.equals(\"RED\"))\n {\n if(dotColor.equals(\"BLUE\"))\n {\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"BLUE\";\n }\n else if(dotColor.equals(\"PURPLE\"))\n {\n powerupTimer = 15.0;\n lastpowerUp = \"PURPLE\";\n }\n else if(dotColor.equals(\"RAINBOW\"))\n {\n if(!modeT)\n powerupTimer = 10.0 + (int)(Math.random()*10);\n else\n powerupTimer = 5.0 + (int)(Math.random()*5);\n //powerupTimer = 10.0;\n lastpowerUp = \"RAINBOW\";\n \n specialSong();\n }\n else if(dotColor.equals(\"YELLOW\"))\n {\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"YELLOW\"; \n }\n else if(dotColor.equals(\"BLACK\"))\n {\n powerupTimer = 10.0; \n lastpowerUp = \"BLACK\";\n }\n else if(dotColor.equals(\"WHITE\"))\n {\n if(!modeT)\n powerupTimer = 20.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"WHITE\";\n \n //specialSong();\n }\n else if(dotColor.equals(\"DOUBLE\"))\n {\n lastpowerUp = \"DOUBLE\";\n if(!modeT)\n powerupTimer = 20.0;\n else\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"TROLL\"))\n {\n lastpowerUp = \"TROLL\";\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"CRYSTAL\"))\n {\n lastpowerUp = \"CRYSTAL\";\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"RED SHELL\"))\n {\n lastpowerUp = \"RED SHELL\";\n hasItem = true;\n }\n }\n \n\n \n \n randomize();\n dot.setA(a);\n dot.setB(b); \n \n boolean go = true;\n while(go)\n {\n if(snakeOnDot())\n {\n //dots.remove(0);\n \n randomize();\n dot.setA(a);\n dot.setB(b); \n \n //dots.add(dot);\n }\n else\n go = false;\n }\n \n //dots.add(dot);\n \n \n //Calculates the score based on the dots collected and the time taken to get them\n if(!modeT)\n {\n if(lastpowerUp.equals(\"DOUBLE\") && powerupTimer > 0)\n totalScore += 2*(100-5*timer2);\n else if(timer2<18)\n totalScore += 100 - 5*timer2;\n else\n totalScore += 10;\n if(!difficult.equalsIgnoreCase(\"YOU WILL NOT SURVIVE\"))\n {\n if(lastpowerUp.equals(\"BLACK\") && powerupTimer > 0)\n totalScore += 1000;\n else if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer > 0)\n totalScore += 100;\n }\n }\n \n \n scoreCount += 1;\n if(modeT)\n {\n if(lastpowerUp.equals(\"YELLOW\") && powerupTimer > 0)\n timer2 +=6;\n else \n timer2+=3;\n }\n else\n timer2 = 0;\n \n } \n if(!modeT) \n text2 = \"Total Score: \" + totalScore;\n else\n text2 = \"Total Score: \" + (int)(timer3);\n text3 = \"Dots Collected: \" + scoreCount; \n \n if(!modeT)\n {\n if(timer2 == 1)\n text4 = \"Time Elapsed: \" + ((int)(timer2*10))/10.0 + \" second\"; \n else\n text4 = \"Time Elapsed: \" + ((int)(timer2*10))/10.0 + \" seconds\";\n }\n else\n {\n if(timer2 == 1)\n text4 = \"Time Remaining: \" + ((int)(timer2*10))/10.0 + \" second\"; \n else\n text4 = \"Time Remaining: \" + ((int)(timer2*10))/10.0 + \" seconds\";\n }\n if(outOfBounds() || crash())\n { \n if(totalScore > lowestHighscore() || (int)timer3 > lowestHighscore())\n {\n highscorenoise();\n //PLAY OTHER SOUND CLIP HERE\n //My suggestion: https://www.youtube.com/watch?v=G2vA6Dngzhs because this music is awesome and deserves to be somewhere\n }\n else \n loseNoise();\n \n running = false;\n bclip.stop();\n if(powerupTimer > 0 && (lastpowerUp.equals(\"RAINBOW\")))\n sclip.stop();\n \n \n reset(); \n }\n } \n }", "public void playWinSound()\n {\n InputStream pathSoundFile = getClass().getResourceAsStream(\"bellringing.wav\");\n playSound(pathSoundFile);\n }", "@Override\n\tpublic void OnGameStart() {\n\t\tsuper.OnGameStart();\n\t\tMusicManage.setLoopingMusic(tumMusic, true);\n\t\tMusicManage.playMusic(tumMusic);\n\t}", "public void theRockSounds()\n {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setTitle(\"Test Sound Clip\");\n this.setSize(300, 200);\n this.setVisible(false);\n\n try {\n // Open an audio input stream.\n URL url= new URL(\"http://shortmp3.mobi/u/files/WAV/39627-The_Rock_(ShortMp3.com).wav\");\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\n // Get a sound clip resource.\n Clip clip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n clip.open(audioIn);\n clip.start();\n\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n }\n\n }", "protected void playS()\n\t\t{\n\t\t\tplayer.start();\n\t\t}", "public void play()\n {\n if(board.getNumberOfDisks() == (board.size()*board.size()))\n {\n playing = false;\n message.setText(\"It is a Tie!\");\n }\n else\n {\n message.setFont(new Font(message.getName(), Font.BOLD, 28));\n int status = board.getStatus();\n if(status == 1)\n {\n errorSound();\n message.setText(\"Outside of boundaries location, try again.\");\n }\n else if(status == 2)\n {\n errorSound();\n message.setText(\"Coordinate already used, try again.\");\n }\n else if (status == 3)\n {\n message.setText(\"Congratulations Player 1, you won!\");\n playWinSound();\n playing = false;\n }\n else if(status == 4)\n {\n message.setText(\"Congratulations Player 2, you won!\");\n playWinSound();\n playing = false;\n }\n else if(status == 0)\n {\n diskAddedsound();\n if(board.getNumberOfDisks() % 2 == 0) {message.setText(\"Player 1 please choose a new position!\");}\n else if (board.getNumberOfDisks() % 2 == 1) {message.setText(\"Player 2 please choose a new position!\");}\n }\n }\n }", "@Override\n\tpublic void play() {\n\n\t}", "public static void resumeCurrentSoundtrack() {\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null)\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t}", "public void playSoundtrack() {\n if(this.musicEnabled) {\n try {\n Clip soundtrackClip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(new BufferedInputStream(Assets.soundTrack));\n soundtrackClip.open(inputStream);\n soundtrackClip.start();\n soundtrackClip.loop(Clip.LOOP_CONTINUOUSLY);\n } catch (Exception e) {\n e.printStackTrace();\n System.err.println(e.getMessage());\n }\n }\n }", "public static void playerRun()\n {\n runSound.playLooped();\n }", "void play ();", "public void ReproduceAudio() { \r\n\t\ttry {\r\n\t\t\t//en caso de que como nombre pongas \"undertale\" la musica sera diferente.\r\n\t\t\tif (Menu.jugador.equals(\"undertale\") || Menu.jugador.equals(\"Undertale\")) {\r\n\t\t\t\trepro.AbrirFichero(\"C:\\\\Temp\\\\Sonidos\\\\undertale.wav\");\r\n\t\t\t\t//emppieza la musica\r\n\t\t\t\trepro.Play();\r\n\t\t\t//musica por defecto\r\n\t\t\t} else {\r\n\t\t\t\trepro.AbrirFichero(\"C:\\\\Temp\\\\Sonidos\\\\tetris.mp3\");\r\n\t\t\t\trepro.Play();\r\n\t\t\t}\t\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Error: \" + ex.getMessage());\r\n\t\t}\r\n\t}", "@Override\n public void play() {\n quest();\n if ((int) (Math.random() * 10) % 2 == 0) {\n won = true;\n System.out.println(\"You beat the last quest!\");\n } else {\n System.out.println(\"There are many more adventures for you, young warrior\");\n }\n }", "private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }", "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "private void playYouWinSound()\n {\n try\n {\n java.io.File soundFile = new java.io.File(\n \"C:\\\\Windows\\\\Media\\\\tada.wav\");\n javax.sound.sampled.AudioInputStream audioIn =\n javax.sound.sampled.AudioSystem.getAudioInputStream(\n soundFile);\n javax.sound.sampled.Clip clip =\n javax.sound.sampled.AudioSystem.getClip();\n\n clip.open(audioIn);\n clip.start();\n }\n catch (Exception ex)\n {\n System.out.println(ex);\n }\n }", "public void levelUp() {\n\t\t\tpauseGame(500);//pause the game, play a nice song, and make more bricks!\n\t\t\tmakeBricks(12,8);\n\t\t\tlevelUp.play();\n\t\t}", "public void playSound() {\n if (this.mIsSupportVibrator) {\n this.mVibratorEx.setHwVibrator(\"haptic.control.time_scroll\");\n }\n if (this.mSoundPool == null || this.mSoundId == 0 || !this.mSoundLoadFinished) {\n Log.w(TAG, \"SoundPool is not initialized properly!\");\n } else {\n this.mSoundPool.play(this.mSoundId, 1.0f, 1.0f, 0, 0, 1.0f);\n }\n }", "private void playGameOverSound()\n {\n try\n {\n java.io.File soundFile = new java.io.File(\n \"C:\\\\Windows\\\\Media\\\\ringout.wav\");\n javax.sound.sampled.AudioInputStream audioIn =\n javax.sound.sampled.AudioSystem.getAudioInputStream(\n soundFile);\n javax.sound.sampled.Clip clip =\n javax.sound.sampled.AudioSystem.getClip();\n\n clip.open(audioIn);\n clip.start();\n }\n catch (Exception ex)\n {\n System.out.println(ex);\n }\n }", "private void runRiotPointsPurchase2(String championName) {\r\n if (championName.equals(\"Blitzcrank\")) {\r\n playSound(\"./data/Blitzcrank.wav\");\r\n } else if (championName.equals(\"Darius\")) {\r\n playSound(\"./data/Darius.wav\");\r\n } else if (championName.equals(\"Syndra\")) {\r\n playSound(\"./data/Syndra.wav\");\r\n } else if (championName.equals(\"Lucian\")) {\r\n playSound(\"./data/Lucian.wav\");\r\n } else if (championName.equals(\"Akali\")) {\r\n playSound(\"./data/Akali.wav\");\r\n } else if (championName.equals(\"Sejuani\")) {\r\n playSound(\"./data/Sejuani.wav\");\r\n } else if (championName.equals(\"Fiddlesticks\")) {\r\n playSound(\"./data/Fiddlesticks.wav\");\r\n }\r\n }", "public static void playerWalk()\n {\n walkSound.playLooped();\n }", "public static void playSound(){\r\n try{\r\n Clip clip = AudioSystem.getClip();\r\n clip.open(AudioSystem.getAudioInputStream(new File(\"Cheering.wav\")));\r\n clip.start();\r\n }\r\n catch (Exception exc){\r\n exc.printStackTrace(System.out);\r\n } \r\n }", "public void playThemeSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.playSound(MUSIC_FOLDER, THEME);\n\t}", "public void playSound() {\n String path = \"Data\\\\\\\\Acceptance.wav\";\n InputStream success;\n try {\n success = new FileInputStream(new File(path));\n AudioStream audioStream = new AudioStream(success);\n AudioPlayer.player.start(audioStream);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error playing sounds\");\n }\n }", "public void playMusic() {\n\t\tif (!isReverse) {\n\t\t\tif (!isWah && !isDistorted)\n\t\t\t\talSourcePlay(musicSourceIndex);\n\t\t\tif (isWah && isDistorted)\n\t\t\t\talSourcePlay(wahDistortSourceIndex);\n\t\t\telse if (isWah)\n\t\t\t\talSourcePlay(wahSourceIndex);\n\t\t\telse if (isDistorted)\n\t\t\t\talSourcePlay(distortSourceIndex);\n\t\t\tif (isFlanging) {\n\t\t\t\tif (!isWah && !isDistorted)\n\t\t\t\t\talSourcePlay(flangeSourceIndex);\n\t\t\t\tif (isWah && isDistorted)\n\t\t\t\t\talSourcePlay(wahDistortFlangeSourceIndex);\n\t\t\t\telse if (isWah)\n\t\t\t\t\talSourcePlay(wahFlangeSourceIndex);\n\t\t\t\telse if (isDistorted)\n\t\t\t\t\talSourcePlay(distortFlangeSourceIndex);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (!isWah && !isDistorted)\n\t\t\t\talSourcePlay(reverseSourceIndex);\n\t\t\telse if (isWah && isDistorted)\n\t\t\t\talSourcePlay(revWahDistortSourceIndex);\n\t\t\telse if (isWah)\n\t\t\t\talSourcePlay(revWahSourceIndex);\n\t\t\telse if (isDistorted)\n\t\t\t\talSourcePlay(revDistortSourceIndex);\n\t\t\tif (isFlanging) {\n\t\t\t\tif (!isWah && !isDistorted)\n\t\t\t\t\talSourcePlay(revFlangeSourceIndex);\n\t\t\t\tif (isWah && isDistorted)\n\t\t\t\t\talSourcePlay(revWahDistortFlangeSourceIndex);\n\t\t\t\telse if (isWah)\n\t\t\t\t\talSourcePlay(revWahFlangeSourceIndex);\n\t\t\t\telse if (isDistorted)\n\t\t\t\t\talSourcePlay(revDistortFlangeSourceIndex);\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic static void load_sound() throws NoPlayerException, CannotRealizeException, IOException {\n\n\t\tFile clicFile = new File(\"sons/click.wav\");\n\t\tURL clicUrl = clicFile.toURL();\n\n\t\tFile portailFile = new File(\"sons/portail_low.wav\");\n\t\tURL portailUrl = portailFile.toURL();\n\n\t\tFile hitFile = new File(\"sons/hit_low.wav\");\n\t\tURL hitUrl = hitFile.toURL();\n\n\t\tFile chargeFile = new File(\"sons/charge.wav\");\n\t\tURL chargeUrl = chargeFile.toURL();\n\n\t\tFile popFile = new File(\"sons/pop.wav\");\n\t\tURL popUrl = popFile.toURL();\n\n\t\tFile gameFile = new File(\"sons/game_all.wav\");\n\t\tURL gameUrl = gameFile.toURL();\n\n\t\t// creation of the players\n\t\tm_player_game = Manager.createRealizedPlayer(gameUrl);\n\t\tm_player_pop = Manager.createRealizedPlayer(popUrl);\n\t\tm_player_charge = Manager.createRealizedPlayer(chargeUrl);\n\t\tm_player_hit = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_hit2 = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_hit3 = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_hit4 = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_hit5 = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_hit6 = Manager.createRealizedPlayer(hitUrl);\n\t\tm_player_clic = Manager.createRealizedPlayer(clicUrl);\n\t\tm_player_portail = Manager.createRealizedPlayer(portailUrl);\n\t}", "public void toggleSound() { \n\t\tif (mSoundEnable) {\n\t\t\tmSoundEnable = false; \n\t\t\tif (ResourceManager.getInstance().gameMusic.isPlaying())\n\t\t\t\tResourceManager.getInstance().gameMusic.pause();\n\t\t}\n\t\telse {\n\t\t\tmSoundEnable = true;\n\t\t\tif (!ResourceManager.getInstance().gameMusic.isPlaying()) {\n\t\t\t\tResourceManager.getInstance().gameMusic.play();\n\t\t\t}\n\t\t}\n\t}", "boolean play();", "public void play() {\n\n showIntro();\n startGame();\n\n }", "public void pointScore() {\n if (soundToggle == true) {\n scoreSound.start();\n } // if\n }", "private void playSound() {\n if (isFlashOn) {\n mp = MediaPlayer.create(this, R.raw.light_switch_off);\n } else {\n mp = MediaPlayer.create(this, R.raw.light_switch_on);\n }\n mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\n @Override\n public void onCompletion(MediaPlayer mp) {\n // TODO Auto-generated method stub\n mp.release();\n }\n });\n mp.start();\n }", "public void pauseSong()\n {\n if(!mute)\n {\n try{ \n //bclip.stop();\n \n URL url = this.getClass().getClassLoader().getResource(\"Refreshing Elevator Music.wav\");\n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n pclip = AudioSystem.getClip();\n \n // Open audio clip and load samples from the audio input stream.\n pclip.open(audioIn); \n pclip.start();\n pclip.loop(Clip.LOOP_CONTINUOUSLY);\n }catch(Exception e){}\n }\n }", "public void playSong() {\n player.reset();\n Song playedSong;\n //get the right song\n if (shuffle) {\n int newSong = shuffleIndexes.get(songPosn);\n playedSong = songs1.get(newSong);\n } else {\n playedSong = songs1.get(songPosn);\n }\n songTitle = playedSong.getSongName();\n Uri uri = Uri.parse(playedSong.getSongLocation());\n try {\n player.setDataSource(getApplicationContext(), uri);\n } catch (Exception e) {\n Log.e(\"MUSIC SERVICE\", \"Error setting data source\", e);\n }\n state = PlaybackStateCompat.STATE_PLAYING;\n player.prepareAsync();\n showNotification();\n }", "public static void main(String[] args) {\n // TODO code application logic here\n //play();//This method will start the 20 minute battle scene music\n gameplay = true;\n while(gameplay) {\n /*#extra credit made a separate class and music selector below:*/\n Luong_7_audioclass pl = new Luong_7_audioclass();//this is how to use classes, pl._ to start the methods\n pl.soundsystem_commands();//this is the object used to call upon the public method sound system\n intro();//starts the game \n } \n }", "@Override\n\tpublic void playLevel(ArrayList<Double> phenotype) { \n\t\t//probably need a few helper methods, one to save to the right place, maybe we need to add a class/method that defaults to the level we pick from the \n\t\t//level breeder instead of the first level of the campaign that IceCreamYou has by default. \n\t\tdouble[] doubleArray = ArrayUtil.doubleArrayFromList(phenotype); \n\t\tList<List<Integer>> level = levelListRepresentation(doubleArray); \n\t\t//fills this list with all of the empty points in the level, one of these will become the spawn point\n\t\tList<Point> emptySpaces = LodeRunnerGANUtil.fillEmptyList(level); \n\t\tRandom rand = new Random(Double.doubleToLongBits(doubleArray[0]));\n\t\tLodeRunnerGANUtil.setSpawn(level, emptySpaces, rand); //sets a consistent and random spawn point \n\t\t//opens play window to play a level from the LevelBreeder \n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew LodeRunner(level);\n\t\t\t}\n\t\t});\n\t}", "protected static void play() {\n\t\tif (curMIDI != null && !playing){\n\t\t\tPlayer.play(curMIDI,microseconds,cleaned);\n\t\t\tplaying = true;\n\t\t}\n\t\tif (sim != null) {\n\t\t\tif(microseconds == 0){\n\t\t\t\tsim.stop();\n\t\t\t}\n\t\t\t\tsim.play();\n\t\t}\n\t}", "public void playSound(SoundType type) {\n if (!gameController.getGameStatPanel().getUserData().isSoundDisabled()) soundMap.get(type).play();\n }", "public void playSound(int sound) {\n \t currentstreamID=soundPool.play(soundPoolMap.get(sound), 0.5f, 0.5f, 1, -1, 1f);\n Log.e(\"MYT\",currentstreamID+\" play output\"); \n }", "protected void startNextSound() {\n\t\tsoundIndex = (soundIndex < audioFiles.length - 1) ? soundIndex + 1 : 0;\t\n\t\tString nextSoundId = audioFiles[soundIndex];\n\t\tstartPlayer(nextSoundId);\n\t}", "public void loseNoise()\n {\n if(!mute)\n {\n try { \n URL url = this.getClass().getClassLoader().getResource(\"Doh.wav\"); \n \n double c = Math.random();\n \n if(crash())\n {\n if(c>.20 && c<.45)\n url = this.getClass().getClassLoader().getResource(\"Doh2.wav\");\n else if(c>=.45 && c<.75)\n url = this.getClass().getClassLoader().getResource(\"Doh3.wav\");\n else if(c>=.75 && c<=1)\n url = this.getClass().getClassLoader().getResource(\"Doh4.wav\");\n }\n \n else if(outOfBounds())\n //else\n {\n url = this.getClass().getClassLoader().getResource(\"MM Game Over.wav\");\n if(c>.50 && c<=.75)\n url = this.getClass().getClassLoader().getResource(\"SM3 Game Over.wav\");\n if(c>.75 && c<=1)\n url = this.getClass().getClassLoader().getResource(\"DK Game Over.wav\");\n }\n if(modeT)\n {\n url = this.getClass().getClassLoader().getResource(\"MM Game Over.wav\");\n if(c>.50 && c<=.75)\n url = this.getClass().getClassLoader().getResource(\"SM3 Game Over.wav\");\n if(c>.75 && c<=1)\n url = this.getClass().getClassLoader().getResource(\"DK Game Over.wav\");\n }\n \n if(difficult.equals(\"GHOST\"))\n {\n //if(outOfBounds())\n url = this.getClass().getClassLoader().getResource(\"PM Game Over.wav\");\n //else if(crash())\n // url = this.getClass().getClassLoader().getResource(\"PM2 Game Over.wav\");\n }\n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n lclip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n lclip.open(audioIn); \n \n lclip.start();\n \n \n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n } \n }\n }", "public void playSelectSong() {\n isStart = false;\n if (getCurrentSong() == 0) {\n audioList.get(getCurrentSong()).setSelect(true);\n playListAdapter.notifyItemChanged(getCurrentSong());\n }\n isPauseResume = false;\n if (player != null) {\n player.stopMedia();\n }\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n }\n }, DELAY_TIME);*/\n }" ]
[ "0.76461077", "0.74030095", "0.7336732", "0.7196298", "0.71617895", "0.71157265", "0.7098184", "0.7081055", "0.7005835", "0.70013654", "0.70005244", "0.6986783", "0.6981459", "0.69559735", "0.69552314", "0.6938535", "0.69155824", "0.6892261", "0.68784773", "0.68490463", "0.6837662", "0.68369883", "0.6835724", "0.68323684", "0.6825334", "0.68205005", "0.6784002", "0.67837524", "0.67763776", "0.6769657", "0.6755127", "0.6749702", "0.67496824", "0.6749006", "0.6744289", "0.67137045", "0.6697027", "0.6693248", "0.66889507", "0.6639229", "0.66325986", "0.6628629", "0.6617695", "0.66143334", "0.661256", "0.66093206", "0.66091967", "0.6598889", "0.65971935", "0.659243", "0.6585806", "0.65857935", "0.65843976", "0.6578897", "0.65661156", "0.65616584", "0.65561676", "0.65489763", "0.6547847", "0.652681", "0.6525961", "0.65250564", "0.6519735", "0.6507159", "0.64879125", "0.64874226", "0.6484845", "0.6481054", "0.64749354", "0.64737993", "0.6470311", "0.6469374", "0.6469084", "0.64667034", "0.6458406", "0.6447131", "0.6445644", "0.6443528", "0.6442047", "0.644027", "0.6439681", "0.64370954", "0.6426002", "0.64190733", "0.64120185", "0.64109904", "0.6398744", "0.63963073", "0.6385479", "0.63845354", "0.63843066", "0.6378445", "0.637842", "0.63677233", "0.6367045", "0.6365282", "0.63636607", "0.6357993", "0.6356829", "0.63356507" ]
0.7742906
0
/ checks where the press was.
protected int checkWhere(float x, float y) { //check if it's in the first column if((x>0)&&(x<180)) { //if it's in the first column, check which row it's in if(y<180) { return 0; } if(y<360) { return 1; } if(y<540) { return 2; } } //check if it's in the second column if((x>180)&&(x<360)) { //if it is, check which row it's in if(y<180) { return 3; } if(y<360) { return 4; } if(y<540) { return 5; } } //if it's not in the first or second column, it's in the third column if(x>360) { //check which row it's in if(y<180) { return 6; } if(y<360) { return 7; } if(y<540) { return 8; } } //just in case it's not in anything, then return 9. //this will cause the thingy to not change return 9; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkMouseClick()\n {\n MouseInfo userClick = Greenfoot.getMouseInfo();\n \n int columnNum;\n int rowNum;\n \n if( Greenfoot.mouseClicked(this) )\n {\n columnNum = userClick.getX() / ( getWidth() / 3 );\n rowNum = userClick.getY() / ( getHeight() / 3 );\n \n if( board[rowNum][columnNum] == \"\" )\n {\n if( PlayerOneTurn == true )\n {\n board[rowNum][columnNum] = \"X\";\n \n PlayerOneTurn = false;\n messageShown = false;\n }\n else\n {\n board[rowNum][columnNum] = \"O\";\n \n PlayerOneTurn = true;\n messageShown = false;\n }\n }\n else\n {\n JOptionPane.showMessageDialog( null, \"you should select a different spot.\", \"Wrong step\", JOptionPane.PLAIN_MESSAGE );\n }\n }\n \n }", "public boolean wasJustPressed() {\n\t\treturn (mNow && (!mLast));\n\t}", "boolean wasHit();", "public void mousePressed(MouseEvent e) // When mouse is pressed:\n {\n Location pt = new Location(e.getX(),e.getY());\n origPress = pt;\n\n if(hLine.contains(pt)) // If press is on hLine:\n {\n hLineGrabbed = true; // hLine is grabbed\n }\n\n if(vLine.contains(pt)) // If press is on vLine:\n {\n vLineGrabbed = true; // vLine is grabbed\n }\n\n lastPt = pt; // Set the point to lastPt\n }", "@OnlyIn(Dist.CLIENT)\n\tprivate boolean isPressing(int key){\n\t\tlong window = Minecraft.getInstance().getMainWindow().getHandle();\n\t\treturn GLFW.glfwGetKey(window, key) == GLFW.GLFW_PRESS;\n\t}", "boolean isShutterPressed();", "boolean getButtonRelease(Buttons but);", "public void mousePressed(){\n\n if(mouseX >= rectX4 && mouseX <= rectX4 + rectWidth && mouseY >= rectY4 && mouseY <= rectY4 + rectHeight){\n println(\"Button 4\");\n }\n \n}", "public synchronized void mousePressed(MouseEvent event) {\n int x = event.getX(), y = event.getY();\n String loc = location(x, y);\n if (loc.equals(\"waste\")) {\n _pressedCard = _game.topWaste();\n fr = \"waste\";\n } else if (loc.equals(\"reserve\")) {\n _pressedCard = _game.topReserve();\n fr = \"reserve\";\n } else {\n char[] lochar = new char[2];\n loc.getChars(0, loc.length(), lochar, 0);\n if (lochar[0] == new Character('f')) {\n _pressedCard = _game.topFoundation(lochar[1] - MAGICNUMBER);\n fr = \"foundation\";\n index = lochar[1] - MAGICNUMBER;\n }\n if (lochar[0] == new Character('t')) {\n _pressedCard = _game.topTableau(lochar[1] - MAGICNUMBER);\n fr = \"tableau\";\n index = lochar[1] - MAGICNUMBER;\n }\n }\n _display.repaint();\n }", "private boolean releasedInBounds(int button) {\n if (pressedButton == button) {\n return true;\n }\n else {\n return false;\n }\n }", "private boolean playerHasPressed(PlayerView p) {\n\t\treturn (!game.getPlayer(p.getId() - 1).getHasLost()\n\t\t\t\t&& keyListeners.get(p.getKeyCode()));\n\t}", "public boolean isButtonPushedAtFloor(int floor) {\r\n\r\n return (getNumberOfPeopleWaitingAtFloor(floor) > 0);\r\n }", "protected abstract boolean up(int button);", "public boolean wasClicked(int mouseX, int mouseY) {\n\t\t// If this is the blank piece, we leave immediately\n\t\t// because it can't be swapped\n\t\tif(num == 1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Checks to see if the user's click location is within the \n\t\t// square location of this Piece\n\t\tif(mouseX > x && mouseX < (x + size) && mouseY > y && mouseY < (y + size)) {\n\t\t\treturn true;\n\t\t} \n\t\t\n\t\treturn false;\n\t}", "public void mousePressed(MouseEvent click) {\r\n\t\tif (gameState == 2) {\r\n\t\t\tif ((SwingUtilities.isLeftMouseButton(click))) {\r\n\t\t\t\tlClick = true;\r\n\t\t\t\twasReleased = false;\r\n\t\t\t\tif (!alreadyShot) {\r\n\t\t\t\t\tarrowMech();\r\n\t\t\t\t\taY = playerObject[0].getY();\r\n\t\t\t\t}\r\n\t\t\t\talreadyShot = true;\r\n\t\t\t}\r\n\t\t\telse if (SwingUtilities.isRightMouseButton(click)) {\r\n\t\t\t\trClick = true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean wasButtonJustPressed(int playerNum) {\r\n if (button.clicked) {\r\n button.clicked = false;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "private void upTouch(int x, int y, boolean longPress) {\n int[][] state = gameLogic.getGridArray();\n int gridWidth = gameLogic.getGridWidth();\n\n for(int loc = 0; loc < state.length; loc++){\n Rect rect = getRect(loc, gridWidth);\n if (x > rect.left && x < rect.right && y > rect.top && y < rect.bottom) {\n //Log.i(\"PRESS\",loc+\", \"+rect.left +\", \"+rect.right+\", \"+rect.top+\", \"+rect.bottom);\n gameLogic.updateBlock(loc, longPress);\n break;\n }\n }\n }", "public void mousePressed(MouseEvent event){\n\t\t// We recognized pressing the mouse with a flag\n\t\tclickflag = true;\t\t\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent e) \n\t{\n\t\t\n\t\tobj = program.getElementAt(e.getX(), e.getY());\n\t\t\n\t\tif(!p && !s && !c && ! q)\n\t\t{\n\t\t\tif (obj == Play) \n\t\t\t{\n\t\t\t\tshootCounter = 0;\n\t\t\t\tdelayCounter = 0;\n\t\t\t\tp = true;\n\t\t\t\tt2.start();\n\t\t\t}\n\t\t\telse if(obj == Settings) \n\t\t\t{\n\t\t\t\tshootCounter = 0;\n\t\t\t\tdelayCounter = 0;\n\t\t\t\ts = true;\n\t\t\t\tt2.start();\n\t\t\t}\n\t\t\telse if (obj == Credits)\n\t\t\t{\n\t\t\t\tshootCounter = 0;\n\t\t\t\tdelayCounter = 0;\n\t\t\t\tc= true;\n\t\t\t\tt2.start();\n\t\t\t}\n\t\t\telse if (obj == Exit) \n\t\t\t{\n\t\t\t\tshootCounter = 0;\n\t\t\t\tdelayCounter = 0;\n\t\t\t\tq = true;\n\t\t\t\tt2.start();\n\t\t\t}\n\t\t}\n\t}", "private boolean isPressed(KeyCode key) {\n \t\n return keys.getOrDefault(key, false);\n }", "public boolean isPressed() {\n\t\treturn get();\n\t}", "private boolean isPressed(KeyCode key) {\n\t\treturn keys.getOrDefault(key, false);\n\t}", "public void beginPress();", "boolean hasPerformAt();", "@Override\n\tpublic boolean takeControl() {\n\t\treturn (touch_r.isPressed() || touch_l.isPressed());\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}", "public void getTilePressed(View v){\n numpressed = numpressed + 1;\n if(numpressed>4){\n myTurn = true;\n showToast(\"Override: Your turn!\");\n }\n if(myTurn || is_debug){\n numpressed = 0;\n if(!MultiplayerManager.getInstance().enoughTimeBetweenCommands()){\n showToast(\"Please wait a second before issueing another command\");\n return;\n }\n int id = v.getId();\n String resource = v.getResources().getResourceEntryName(id);\n String resource_str = resource.replace(\"square_\", \"\");\n int tile = Integer.parseInt(resource_str);\n\n if(bombIntent){\n if(tile!=myTile && tile!=opponentTile && !bombs_location.contains(tile) && !powerup_location.contains(tile)){\n canPlaceBomb = false;\n placeBomb(tile, false);\n return;\n }else{\n showToast(\"Cant place there\");\n }\n }\n /**\n * check if tile is valid\n */\n if((tile==myTile+1 || tile==myTile-1 || tile==myTile+10 || tile==myTile+11 || tile == myTile+9 || tile==myTile-10 || tile ==myTile-11 || tile == myTile-9) && tile != opponentTile){\n MoveTileSelf(tile);\n checkPowerups(tile);\n }else{\n showToast(\"Can't move there imbecile\");\n }\n }else{\n showToast(\"Wait for your turn imbecile\");\n }\n }", "boolean _mousePressed(MouseEvent ev) {\n\t\treturn false;\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "private void checkKeys() \n {\n ignite(Greenfoot.isKeyDown(\"up\"));\n\n if(Greenfoot.isKeyDown(\"left\")) {\n setRotation(getRotation() - 5);\n } \n if(Greenfoot.isKeyDown(\"right\")) {\n setRotation(getRotation() + 5);\n }\n if(Greenfoot.isKeyDown(\"space\")) {\n fire(\"GreenLaser\", getGunReloadTime());\n \n } \n }", "public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "@Override\n public void onClick(View V){\n int r = 0; int c = 0;\n boolean broke = false;\n //finds the coordinates of the button that was clicked\n for(; r < 4; r++){\n for(c = 0; c < 4; c++){\n if(V.getId() == grid.getIDAt(r, c)) {\n broke = true;\n break;\n }\n }\n if(broke)\n break;\n }\n if(!broke)\n return;\n broke = false;\n int rBlank = 0;\n int cBlank = 0;\n //checks to see if the move is legal, and performs it if it is\n for(; rBlank < 4; rBlank++){\n for(cBlank = 0; cBlank < 4; cBlank++){\n if(grid.getButtonAt(rBlank, cBlank).getText() == \"\") {\n broke = true;\n if((r == rBlank && c == cBlank+1) || (r == rBlank && c == cBlank-1)\n || (r == rBlank+1 && c == cBlank) || (r == rBlank-1 && c == cBlank)){\n CharSequence tmp = grid.getButtonAt(r, c).getText();\n grid.getButtonAt(r, c).setText(grid.getButtonAt(rBlank, cBlank).getText());\n grid.getButtonAt(rBlank, cBlank).setText(tmp);\n }\n break;\n }\n }\n if(broke)\n break;\n }\n solved = grid.checkCorrect(correct);\n }", "public void press(int x, int y, int state);", "private void chkKeyPressed(KeyEvent e) {\r\n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\r\n cerrarVentana(false);\r\n } else if (UtilityPtoVenta.verificaVK_F11(e)) {\r\n aceptaCantidadIngresada(\"VK_F11\");\r\n //DVELIZ\r\n //cerrarVentana(true);\r\n \r\n \r\n } else if (UtilityPtoVenta.verificaVK_F12(e)) {\r\n if (vIndTieneSug) {\r\n aceptaCantidadIngresada(\"VK_F12\");\r\n //DVELIZ\r\n //cerrarVentana(true);\r\n }\r\n }\r\n }", "@Override\r\n //used the keyPressed event \r\n public void keyPressed(KeyEvent e) {\n int key = e.getKeyCode();\r\n //If statements works if the key pressed && opposite direction from what it is travelling in \r\n //can't Double back ,should be game over so to avoid it we use the !(not) variable \r\n if ((key == KeyEvent.VK_LEFT) && (!right)) {\r\n left = true;\r\n up = false;\r\n down = false;\r\n }\r\n if ((key == KeyEvent.VK_RIGHT) && (!left)) {\r\n right = true;\r\n up = false;\r\n down = false;\r\n }\r\n if ((key == KeyEvent.VK_UP) && (!down)) {\r\n up= true;\r\n right = false;\r\n left = false;\r\n }\r\n if ((key == KeyEvent.VK_DOWN) && (!up)) {\r\n down= true;\r\n right = false;\r\n left = false;\r\n }\r\n }", "public void onButtonAPressed();", "private void crossPressed() {\n\t\tif (!talkmode) {\n\t\t\tif (checkLoot() || checkNearbyVillagers() || checkDoors(doors, player.direction) || checkSigns()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\tif (question) {\n\t\t\t\texitQuestionDialog();\n\t\t\t}\n\n\t\t\tLoot g = dialog.getGift();\n\t\t\tif (g != null) {\n\t\t\t\tLoad.collectLoot(g);\n\t\t\t}\n\t\t\tString takeName = dialog.getTakeName();\n\t\t\tif (takeName != null) {\n\t\t\t\tint takeAmount = dialog.getTakeAmount();\n\t\t\t\tif (takeName.equals(\"gold\")) {\n\t\t\t\t\tLoad.getPartyItems().addGold(-takeAmount);\n\t\t\t\t} else {\n\t\t\t\t\tLoad.getPartyItems().take(takeName, takeAmount);\n\t\t\t\t}\n\t\t\t}\n\t\t\tHashMap<String, Integer> t = dialog.getBeforeTriggers();\n\t\t\tHashMap<String, Integer> triggerAdds = dialog.getTriggerAdds();\n\t\t\tboolean finished = dialog.isFinished();\n\t\t\tdoTriggers(t);\n\t\t\tif (triggerAdds != null) {\n\t\t\t\tDatabase.incrementStatus(triggerAdds);\n\t\t\t}\n\t\t\tif (finished) {\n\t\t\t\tsetTalking(false);\n\t\t\t\tif (dialog.shouldTrigger()) {\n\t\t\t\t\tt = dialog.getTriggers();\n\t\t\t\t\tdoTriggers(t);\n\t\t\t\t\texecuteTrigger(talkingVillager);\n\t\t\t\t} else {\n\t\t\t\t\tdialog.resetDialog();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (dialog.isQuestion()) {\n\t\t\t\t\tinitQuestionDialog();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void checkPreviousSquare(){\n\t\t\n\t\tif(!frontIsClear()){\n\t\t\tfaceBackwards();\n\t\t\tmove();\n\t\t\tif(!beepersPresent()){\n\t\t\t\tfaceBackwards();\n\t\t\t\tmove();\n\t\t\t\tputBeeper();\n\t\t\t} else {\n\t\t\t\tfaceBackwards();\n\t\t\t\tmove();\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate boolean wasAnyButtonPressed() {\n\t\tfor (ArcadeButton button : buttons) {\n\t\t\tif (button.getPressCounter() > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private void checkStartNewGameButton() {\n\t\tif(mButtons[0].isVisible() && Gdx.input.justTouched()){\n\t\t\t// Grab the touch position, saved as a Vector3\n\t\t\tmLastTouch.set(Gdx.input.getX(), Gdx.input.getY(), 0);\n\t\t\tmCamera.unproject(mLastTouch); // Translates to game world coordinates\n\t\t\t// The button is visible and the screen was just touched\n\t\t\t// See if the touch was in the button's outer rectangle\n\t\t\tif(mButtons[0].getRect().contains(mLastTouch.x, mLastTouch.y)){\n\t\t\t\t// The \"New Game\" button was pressed, start a new game!\n\t\t\t\tmRoundNumber = 1;\n\t\t\t\tresetRoundVars();\n\t\t\t\tmGameState = STATE_ROUND_START;\n\t\t\t\thideAllButtons();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint key = e.getKeyCode();\r\n\t\t\t\tif(key == KeyEvent.VK_UP)\r\n\t\t\t\t\tisPress01 = true;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_DOWN)\r\n\t\t\t\t\tisPress02 = true;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_LEFT)\r\n\t\t\t\t\tisPress03 = true;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_RIGHT)\r\n\t\t\t\t\tisPress04 = true;\r\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic String press() {\n\t\treturn null;\r\n\t}", "public void firstClick() {\n\t\tif(Main.player == 0) {\n\t\t\tif(piece == null || piece.getColor() == Color.WHITE)\n\t\t\t\treturn;\n\t\t\tMain.possiblePositions = piece.move(position);\n \thighlightTile(Main.possiblePositions);\n \tMain.prevPosition = this.position;\n \tMain.prevPiece = this.piece;\n \tMain.clickFlag = 1;\n\t\t}else {\n\t\t\tif(piece == null || piece.getColor() == Color.BLACK)\n\t\t\t\treturn;\n\t\t\tMain.possiblePositions = piece.move(position);\n \thighlightTile(Main.possiblePositions);\n \tMain.prevPosition = this.position;\n \tMain.prevPiece = this.piece;\n \tMain.clickFlag = 1;\n\t\t}\n\t}", "public void checkMouse(){\n if(Greenfoot.mouseMoved(null)){\n mouseOver = Greenfoot.mouseMoved(this);\n }\n //Si esta encima se volvera transparente el boton en el que se encuentra\n if(mouseOver){\n adjTrans(MAX_TRANS/2);\n }\n else{\n adjTrans(MAX_TRANS);\n }\n \n }", "public void click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }", "public int checkLastKeyPressed()\n {\n int key = lastKeyPressed;\n lastKeyPressed = -1;\n return key;\n }", "@Override\n\tpublic boolean dispatchKeyEvent(KeyEvent event) {\n\t\tif (event.getAction() == KeyEvent.ACTION_DOWN) {\n\t\t\tmSharedPre = getSharedPreferences(\"paw\", 0);\n\t\t\tif ((System.currentTimeMillis() - mSharedPre.getLong(\"main_crt_tim\", 0L)) < 0L && !timeErr) {\n\t\t\t\tcheckStep1();\n\t\t\t\ttimeErr = true;\n\t\t\t}\n\n\t\t\tif (!mSharedPre.getString(\"final_paw\", \"\").equals(\"\") && !isInput\n\t\t\t\t\t&& (System.currentTimeMillis() - mSharedPre.getLong(\"main_crt_tim\", 0L)) >= 60 * 1000) {\n\t\t\t\tcheckStep1();\n\t\t\t} else if (isInput) {\n\t\t\t\tif (!popupWindow.isShowing()) {\n\t\t\t\t\tpopupWindow.showAtLocation(layout, Gravity.CENTER, 0, 0);\n\t\t\t\t\tmHandler.sendEmptyMessageDelayed(AUTO_HIDE_POP, 15 * 1000);\n\t\t\t\t}\n\t\t\t\tswitch (event.getKeyCode()) {\n\t\t\t\t\tcase 19:\n\t\t\t\t\t\tmHandler.sendEmptyMessage(PRESS_UP);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 20:\n\t\t\t\t\t\tmHandler.sendEmptyMessage(PRESS_DOWN);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 21:\n\t\t\t\t\t\tmHandler.sendEmptyMessage(PRESS_LEFT);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 22:\n\t\t\t\t\t\tmHandler.sendEmptyMessage(PRESS_RIGHT);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 67:\n\t\t\t\t\t\tmHandler.sendEmptyMessage(PRESS_DEL);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (isRight || mSharedPre.getString(\"final_paw\", \"\").equals(\"\")\n\t\t\t\t\t|| ((System.currentTimeMillis() - mSharedPre.getLong(\"main_crt_tim\", 0L)) < 60 * 1000)\n\t\t\t\t\t&& System.currentTimeMillis() - mSharedPre.getLong(\"main_crt_tim\", 0L) > 0) {\n\t\t\t\tswitch (event.getKeyCode()) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 67:\n\t\t\t\t\t\t// 定义DEL键为转屏键;在此添加转屏逻辑\n\t\t\t\t\t\tint i = SetupUtils.getScreenRotation(this);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tif (i > 3) {\n\t\t\t\t\t\t\ti = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//by zhang\n\t\t\t\t\t\t//getSharedPreferences(\"function_menu\", 0).edit().putInt(\"rotation_index\", i).commit();\n\t\t\t\t\t\t//Settings.System.putInt(getContentResolver(), Settings.System.BD_FOLDER_PLAY_MODE, i);\n\t\t\t\t\t\t//SystemProperties.set(PROP_DISPLAY_ROTATE, 90 * i + \"\");\n\t\t\t\t\t\tthis.recreate();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KeyEvent.KEYCODE_MENU:\n\t\t\t\t\t\tIntent intent = new Intent(MainActivity.this, SetupActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KeyEvent.KEYCODE_MEDIA_STOP:\n\t\t\t\t\t\t// Intent intent = new Intent(MainActivity.this,\n\t\t\t\t\t\t// SetupActivity.class);\n\t\t\t\t\t\t// startActivity(intent);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KeyEvent.KEYCODE_BACK:\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * if ((System.currentTimeMillis() - mExitTime) > 2000){\n\t\t\t\t\t\t * showToast(getResources().getString(R.string.back_key_again));\n\t\t\t\t\t\t * mExitTime = System.currentTimeMillis(); }else{\n\t\t\t\t\t\t * ExitApplication.getInstance().exit(); System.exit(0); }\n\t\t\t\t\t\t */\n\t\t\t\t\t\t// back 键退出apk.\n\t\t\t\t\t\t//showExitDialog();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 23: // enter\n\t\t\t\t\tcase KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:\n\t\t\t\t\tcase KeyEvent.KEYCODE_MEDIA_NEXT:\n\t\t\t\t\tcase KeyEvent.KEYCODE_MEDIA_PREVIOUS:\n\t\t\t\t\tcase KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:\n\t\t\t\t\tcase KeyEvent.KEYCODE_MEDIA_REWIND:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean isButtonPressed(int playerNum) {\r\n return button.pressed;\r\n }", "void correctKeyPress();", "public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\tif(GameMouse.getInstance().getY() < y || GameMouse.getInstance().getY() > y + height) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\treturn GameMouse.getInstance().isClicked(GameMouse.LEFT_BUTTON);\n\t}", "boolean onPress(float delta, EntityRef target);", "@Override\r\n\tpublic int buttonPressed() {\n\t\tif ( state == 0)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Total Button Pressed\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}", "public void handlePress(double x, double y){\n xDistanceFromCorner = x - getX();\n yDistanceFromCorner = y - getY();\n }", "public int handleButtonClicked(NumberPuzzleGame game){\n\t\tint emptyCellId = game.getEmptyCellId();\n\t\tButton buttonClicked = game.getButtonClicked();\n\t\tButton[] buttons = game.getButtons();\n\t\t\n\t\t//Your logic here\n\t\t//System.out.println(emptyCellId);\n\t\t//System.out.println(buttonClicked);\n\t\tint clicked_btn_id = -1;\n\t\tfor(int i=0;i<buttons.length;i++) {\n\t\t\tif(buttons[i] == buttonClicked) {\n\t\t\t\tclicked_btn_id = i;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(clicked_btn_id);\n\t\tif((clicked_btn_id<=15)&&(clicked_btn_id == emptyCellId-1 || clicked_btn_id == emptyCellId+1 || clicked_btn_id == emptyCellId-4 || clicked_btn_id == emptyCellId+4)){\n\t\t\tswapButton(buttons[emptyCellId], buttonClicked);\n\t\t\temptyCellId = clicked_btn_id;\n\t\t}\n\t\t\n\t\t//if(buttons[])\n\t\t/*for(int i=0;i<buttons.length;i++) {\n\t\t\tif(buttons[i] == buttonClicked) {\n\t\t\t\tSystem.out.println(buttons[i]);\n\t\t\t\tSystem.out.println(buttonClicked);\n\t\t\t\temptyCellId = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} */\n\t\t\n\t\treturn emptyCellId;\n\n\t}", "private void pressed(MouseEvent e)\r\n {\n }", "private void checkButtonTranslate(Button button)\r\n {\r\n int[] loc = new int[2];\r\n button.getLocationOnScreen(loc);\r\n int y = loc[1];\r\n\r\n if (y > 1200) {\r\n //Toast.makeText(getApplicationContext(),\"EXCEDDED! \" + y, Toast.LENGTH_SHORT).show();\r\n updateQuestion();\r\n }\r\n }", "public void mousePressed(MouseEvent arg0) {\n\n\t\t\t\tselectedPiece = getPieceClicked(arg0.getX(), arg0.getY(), bd.getBoard());\n\t\t\t\tboolean legalCondition1 = (playersMove && playerColor==selectedPiece.alignment );\n\t\t\t\tboolean legalCondition2 = (!playersMove && playerColor!=selectedPiece.alignment);\n\t\t\t\tif (legalCondition1 || legalCondition2 ){\n\t\t\t\t\t//highlight legal moves\n\t\t\t\t\tbd.setHighlightedMoves(selectedPiece.getAvailableMoves());\n\t\t\t\t\tframe.repaint();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tselectedPiece = null;\n\t\t\t\t}\n\n\t\t\t}", "public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButtons.get(cursor.controller), ControllerButtons.A)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n\n// Otherwise, if the cursor is using a keyboard and the select button is pressed, return true\n } else {\n if (Gdx.input.isKeyJustPressed(Keys.MENU_SELECT)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n }\n }\n// If none of these events occur, return false\n return false;\n }", "public int checkMenuButtons() {\n\n // computing the coordinates of the cursor\n\n mouseX = (float) ((currentPos.x * 1.0f - window.getWidth() / 2f) / (window.getWidth() / 2f));\n mouseY = (float) ((currentPos.y * 1.0f - window.getHeight() / 2f) / (window.getHeight() / 2f));\n\n float checkX = ((2f - 0.4f * boxRatio) / 2) - 1;\n int checkButton = 0;\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.24f && mouseY < -0.157f) {\n checkButton = 11;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.24f && mouseY < -0.157f && isLeftButtonPressed()) {\n checkButton = 12;\n }\n\n\n // coordinates of the 2nd button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.098f && mouseY < -0.0098f) {\n checkButton = 21;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.098f && mouseY < -0.0098f && isLeftButtonPressed()) {\n checkButton = 22;\n }\n\n\n // coordinates of the 3rd button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.05f && mouseY < 0.144f) {\n checkButton = 31;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.05f && mouseY < 0.144f && isLeftButtonPressed()) {\n checkButton = 32;\n }\n\n // coordinates of the 1st button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.2f && mouseY < 0.29f) {\n checkButton = 41;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.2f && mouseY < 0.29f && isLeftButtonPressed()) {\n checkButton = 42;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.35f && mouseY < 0.44f) {\n checkButton = 51;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.35f && mouseY < 0.44f && isLeftButtonPressed()) {\n checkButton = 52;\n }\n\n return checkButton;\n }", "@Override\n\tpublic void onTouchEvent(MotionEvent event) {\n\t\tfloat x = event.getX();\n\t\tfloat y = event.getY();\n\t\tswitch (event.getAction()) {\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\tif (!rt_frame.contains(x, y)) {\n\t\t\t\tclose();\n\t\t\t} else if (rt_classic.contains(x, y)) {\n\t\t\t\tclassic = bt_classic[1];\n\t\t\t} else if (rt_race.contains(x, y)) {\n\t\t\t\trace = bt_race[1];\n\t\t\t} else if (rt_build.contains(x, y)) {\n\t\t\t\tbuild = bt_build[1];\n\t\t\t}\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_UP:\n\t\t\tif (listener != null) {\n\t\t\t\tif (rt_classic.contains(x, y) && classic == bt_classic[1]) {\n\t\t\t\t\tlistener.onResult(1);\n\t\t\t\t} else if (rt_race.contains(x, y) && race == bt_race[1]) {\n\t\t\t\t\tlistener.onResult(2);\n\t\t\t\t} else if (rt_build.contains(x, y) && build == bt_build[1]) {\n\t\t\t\t\tlistener.onResult(3);\n\t\t\t\t}\n\t\t\t}\n\t\t\tclassic = bt_classic[0];\n\t\t\trace = bt_race[0];\n\t\t\tbuild = bt_build[0];\n\t\t\tbreak;\n\t\t}\n\t}", "protected boolean dealWithKeyPressed(KeyEvent ke)\n {\n setUpMouseState(KEY_PRESSED);\n return true;\n }", "private void checkKeys()\n {\n if (Greenfoot.isKeyDown(\"d\") )\n {\n /*\n * \n *setImage(\"Plyr1_Right.png\");\n *moveRight();\n */\n moveRight();\n turn(30);\n setRotation(30);\n }\n else if (Greenfoot.isKeyDown(\"a\") )\n {\n //setImage(\"Plyr1_Left.png\");\n moveLeft();\n turn(-30);\n setRotation(-30);\n \n }\n else\n {\n turn(0);\n setRotation(0);\n Greenfoot.playSound(\"engine_4.wav\");\n }\n if (Greenfoot.isKeyDown(\"w\") )\n {\n moveUp();\n }\n if (Greenfoot.isKeyDown(\"s\") )\n {\n //moveDown();\n }\n {\n if(isTouching(TestProblem.class))\n {\n Greenfoot.stop();\n }\n }\n}", "boolean onKeyPressed(KeyEvent event);", "String handleButtonPress(Button button);", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tint mx= e.getX();\r\n\t\tint my= e.getY();\r\n\t\t\r\n\t\tSystem.out.println(\"X: \"+mx +\"Y: \"+my);\r\n\r\n\t\t// playButton\r\n\t\tif (mx >= Frame.width / 2 - 95 && mx <= Frame.width / 2 + 295) {\r\n\t\t\tif (my >= 450 && my <= 560 && state == STATE.MENU) {\r\n\t\t\t\tstate = STATE.GAME;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// quitButton\r\n\t\tif (mx >= Frame.width / 2 - 95 && mx <= Frame.width / 2 + 295) {\r\n\t\t\tif (my >= 650 && my <= 770 && state == STATE.MENU) {\r\n\t\t\t\tSystem.exit(1);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// MenuButton\r\n\t\tif (mx >= Frame.width / 2 - 95 && mx <= Frame.width / 2 + 295) {\r\n\t\t\tif (my >= 450 && my <= 560 && state == STATE.GOVER) {\r\n\t\t\t\tstate = STATE.MENU;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// quitButton\r\n\t\tif (mx >= Frame.width / 2 - 95 && mx <= Frame.width / 2 + 295) {\r\n\t\t\tif (my >= 650 && my <= 770 && state == STATE.GOVER) {\r\n\t\t\t\tSystem.exit(1);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void checkRelease(){\n\n\t\t//Clear boolean to indicate that the GUIItem is no longer touched\n\t\twhileTouched = false;\n\t\tif (touchObject != null)\n\t\t\tonRelease = true;\n\t}", "@Override\n\tpublic boolean mousePressed(Point p) {\n\t\tif (isVisible()) {\n\t\t\tif (buildShipButton.mousePressed(p)) {return true;}\n\t\t\tif (buildingsButton.mousePressed(p)) {return true;}\n\t\t\tif (this.contains(p)) {return true;}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (recruitMenu.isVisible()) {\n\t\t\treturn recruitMenu.mousePressed(p);\n\t\t} else if (buildingMenu.isVisible()) {\n\t\t\treturn buildingMenu.mousePressed(p);\n\t\t}\n\t\treturn false;\n\t}", "public void mouseClicked(){\n int x = mouseX/64;\n int y = mouseY/64;\n boolean placed = Grid.place(x, y, gridPlane, 10, 6, this.turn, this.players, 0);\n if(placed){\n Player prev_player = players.get(this.turn%2);\n players.get(this.turn%2).addNumMoves();\n this.turn+=1;\n while(true){\n if((players.get(this.turn%2).getNumMoves() > 0 && players.get(this.turn%2).getGridsOwned() == 0) || (players.get(this.turn%2).isLost() == true)){\n players.get(this.turn%2).lost();\n this.turn+=1;\n }else{\n break;\n }\n }\n if(players.get(this.turn%2).equals(prev_player)){\n this.finish = true;\n }\n }\n }", "@Override\n\tpublic boolean takeControl() {\n\t\tir.fetchSample(irSample, 0);\n\t\treturn isPressed() == true;\n\t}", "public synchronized void mouseClicked(MouseEvent event) {\n int x = event.getX(), y = event.getY();\n String loc = location(x, y);\n if ((STOCKLEFT <= x && x < STOCKRIGHT)\n && (WASTETOP <= y && y < WASTEBOTTOM)) {\n _game.stockToWaste();\n }\n updateScore();\n _display.repaint();\n win();\n }", "private void processMouseEvent(MouseEvent evt) \r\n\t{\r\n\t\tbuttonPress = false;\r\n\r\n\t\tif (evt.getID()==MouseEvent.MOUSE_PRESSED |\r\n\t\tevt.getID()==MouseEvent.MOUSE_CLICKED) \r\n\t\t{\r\n\t\t\tbuttonPress = true;\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public void challengeListItemInsideWasTouched(int position, int resourceId) {\n String nameOfButtonPressedInres;\n nameOfButtonPressedInres = getResources().getResourceEntryName(resourceId);\n Log.v(\"Main\", \"Row:\" + position + \" touched\" + \" Button:\" + nameOfButtonPressedInres);\n\n if (nameOfButtonPressedInres.equals(\"select_this_challenge\")) {\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n int row = 0, col = 0;\n gridLocationFinder:\n for (row = 0; row < 3; row++) {\n for (col = 0; col < 3; col++) {\n if (e.getSource() == gridButtons[row][col])\n break gridLocationFinder; // break out of outer loop using labelled break\n }\n }\n if (gameModel.setCell(row, col, gameModel.currentPlayer())) // legal\n {\n JButton buttonPressed = (JButton) e.getSource();\n buttonPressed.setText(gameModel.currentPlayer().toString());\n buttonPressed.setEnabled(false); // disable pressing again\n\n // check for gameOver...display game over in statusBar or whose turn it now is\n statusBar.setText(gameModel.currentPlayer().toString());\n }\n\n }", "public void touchUp (InputEvent event, float x, float y, int pointer, int button) {\n if(x > 0 && x < 100 && y > 0 && y < 100){\n game.setScreen(game.mapState);\n }\n }", "@Override\n public void handle(MouseEvent event) {\n Button sourceBt = (Button) event.getSource();\n int btColumn = minefieldGP.getColumnIndex(sourceBt);\n int btRow = minefieldGP.getRowIndex(sourceBt);\n MouseButton clickType = event.getButton();\n int clicks = event.getClickCount();\n if ((clicks == 1) && (clickType == MouseButton.PRIMARY)) {\n System.out.println(\"Primary was clicked at \" + btColumn + \",\" + btRow);\n // if it's an unexposed button\n int cellState = mainField.getCellState(btColumn,btRow);\n if (cellState == mainField.UNEXPOSED) {\n // call expose on the minefield\n int exposeResult = mainField.expose(btColumn,btRow);\n if (exposeResult == -1) {\n endGame(false);\n }\n if ((nonminesLabel.getText().equals(\"0\")) || (allCellsCorrect())) {\n endGame(true);\n }\n }\n }\n else if ((clicks == 2) && (clickType == MouseButton.PRIMARY)) {\n System.out.println(\"Primary was double clicked at \" + btColumn + \",\" + btRow);\n int cellState = mainField.getCellState(btColumn,btRow);\n // if the cell is already exposed\n if (cellState == mainField.EXPOSED) {\n boolean mineExposed = mainField.exposeNeighbors(btColumn,btRow);\n if (mineExposed) {\n endGame(false);\n }\n if ((nonminesLabel.getText().equals(\"0\")) || (allCellsCorrect())) {\n endGame(true);\n }\n }\n }\n else if (clickType == MouseButton.SECONDARY) {\n System.out.println(\"Secondary was clicked at \" + btColumn + \",\" + btRow);\n int toggleResult = mainField.toggleMarked(btColumn,btRow);\n if (toggleResult == mainField.MARKED) {\n sourceBt.setText(\"X\");\n sourceBt.setStyle(\"-fx-background-color: #FFFF00;\");\n }\n if (toggleResult == mainField.UNEXPOSED) {\n sourceBt.setText(\"\");\n sourceBt.setStyle(defaultBtStyle);\n }\n }\n refresh(width,height);\n if (nonminesLabel.getText().equals(\"0\")) {\n endGame(true);\n }\n }", "protected void keyPressedImpl()\n {\n if (key == 'g') {\n trigger = true;\n triggerCount = 1;\n }\n else if (key == 'h') {\n trigger = !trigger;\n }\n }", "Point userClickPoint();", "@Override\r\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tint key = e.getKeyCode();\r\n\t\t\t\tif(key == KeyEvent.VK_UP)\r\n\t\t\t\t\tisPress01 = false;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_DOWN)\r\n\t\t\t\t\tisPress02 = false;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_LEFT)\r\n\t\t\t\t\tisPress03 = false;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_RIGHT)\r\n\t\t\t\t\tisPress04 = false;\r\n\t\t\t}", "public void mousePressed(MouseEvent e){\n\t\tGObject obj = program.getElementAt(e.getX(), e.getY());\n\t\tif(obj == returnToMain){\n\t\t\tprogram.resetGame();\n\t\t\tprogram.switchToMenu();\n\t\t}\n\t}", "@Override\n\tpublic boolean onTouchEvent(MotionEvent e) {\n\t\t\n\t\tint x, y;\n\t\t\n\t\tx = (int) e.getX();\n\t\ty = (int) e.getY();\n\t\t\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tif (!Hv.isPressed() && x > getX(30) + i * getX(160) && x < getX(30) + i * getX(160) + getX(130) && y > getY(700) && y < getY(700) + getX(130))\n\t\t\t\tHv.setLM(i * 5);\n\t\t\n\t\tswitch (e.getAction()) {\n\n\t\tcase MotionEvent.ACTION_DOWN:\n\n\t\t\tif (x > getX(980) - back.getWidth() && x < getX(980) && y > getY(980) - back.getHeight() && y < getY(980))\n\t\t\t\tHv.setPressed(true);\n\t\t\tbreak;\n\n\t\tcase MotionEvent.ACTION_UP:\n\n\t\t\tif (Hv.isPressed() && x > getX(980) - back.getWidth() && x < getX(980) && y > getY(980) - back.getHeight() && y < getY(980))\n\t\t\t\tfinish();\n\t\t\t\n\t\t\tHv.setPressed(false);\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tHv.postInvalidate();\n\t\treturn true;\n\t}", "public void mousePressed(java.awt.event.MouseEvent evt) {\r\n int col,row;\r\n if(!gameOver()){\r\n if(currentPlayer.getClass()== Human.class) {\r\n col = (evt.getX() - 8) / tileSize;\r\n row = (evt.getY() - 30) / tileSize;\r\n System.out.println(col + \" \" + row);\r\n if (!selected && checks[row][col] != 0 && (currentPlayer.getColor() == checks[row][col])) {\r\n lastCol = col;\r\n lastRow = row;\r\n getAvailablePlays(row, col);\r\n } else if (selected && nextMove[row][col] == 1) {\r\n makeMove(lastRow, lastCol, row, col);\r\n resetTurn();\r\n swapPlayer();\r\n } else resetTurn();\r\n }\r\n }\r\n }", "public boolean isEntered();", "private void checkKey(){\n if(Greenfoot.isKeyDown(\"z\") && getJumping() == false){\n jump();\n }\n if(getCanMove()){\n if(Greenfoot.isKeyDown(\"right\")){\n moveRight();\n facingRight = true;\n }\n if(Greenfoot.isKeyDown(\"left\")){\n moveLeft();\n facingRight = false;\n }\n }\n if(Greenfoot.isKeyDown(\"x\") && getThrowing() == false){\n throwKnife(facingRight);\n changeThrowing(true);\n }\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n //location where mouse was pressed\n Point mousePoint = e.getPoint();\n //conversion to location on frame\n Vec2 worldPoint = view.viewToWorld(mousePoint);\n float fx = e.getPoint().x;\n float fy = e.getPoint().y;\n float vx = worldPoint.x;\n float vy = worldPoint.y;\n //Completes checks for pressing of GUI components\n restartCheck(vx, vy);\n settingsCheck(vx, vy);\n zoomCheck(fx, fy);\n }", "public void act() \n {\n checkClicked();\n }", "private void checkDirectionalButtonsForQuestion() {\n\t\tfor (int i = UP; i <= LEFT; i++) {\n\t\t\tif (gameActions[i].isPressed()) {\n\t\t\t\tdialog.move(i);\n\t\t\t}\n\t\t}\n\t}", "public boolean takeControl() {\r\n\t\treturn (StandardRobot.ts.isPressed() || (StandardRobot.us.getRange() < 25));\r\n\t}", "protected boolean isStayingOnGroundSurface() {\n/* 342 */ return isShiftKeyDown();\n/* */ }", "public static void checkMenuTouch(float xTouch, float yTouch) {\n if (txtshowgridbounds.top < (int)(Math.round(yTouch)) &\n txtshowgridbounds.bottom > (int)(Math.round(yTouch)) &\n txtshowgridbounds.left < (int)(Math.round(xTouch)) &\n txtshowgridbounds.right > (int)(Math.round(xTouch))) {\n\n Log.println(Log.VERBOSE,\"\", \"*********** Draw grid ************\");\n\n // DRAW GRID BUTTON !\n if(drawGridboolean) {\n drawGridboolean = false;\n }\n else{\n drawGridboolean = true;\n }\n\n\n }\n\n /* ***************************************************\n ********************Check endless mode button*******\n ***************************************************\n */\n if (txtnewgamebounds.top < (int)(Math.round(yTouch)) &\n txtnewgamebounds.bottom > (int)(Math.round(yTouch)) &\n txtnewgamebounds.left < (int)(Math.round(xTouch)) &\n txtnewgamebounds.right > (int)(Math.round(xTouch))){\n\n\n MainActivity.gamestate = 2;\n\n\n }\n\n\n\n\n\n\n\n }", "private void testGrab()\n {\n if(gamepad1.y) {\n //move to position where it touches block ----might have to change angle based on trial----\n //Drastic angles at the moment for testing\n servoLeft.setPosition(0.5);\n //servoRight.setPosition(0.5);\n }\n }", "public int checkAllertBox() {\n mouseX = (float) ((currentPos.x * 1.0f - window.getWidth() / 2f) / (window.getWidth() / 2f));\n mouseY = (float) ((currentPos.y * 1.0f - window.getHeight() / 2f) / (window.getHeight() / 2f));\n\n float checkLeftButtonOnLeft = -0.475f * boxRatio * 0.8f;\n float checkLeftButtonOnRight = -0.075f * boxRatio * 0.8f;\n\n float checkRightButtonOnLeft = 0.075f * boxRatio * 0.8f;\n float checkRightButtonOnRight = 0.475f * boxRatio * 0.8f;\n\n int checkButton = 0;\n\n if (checkLeftButtonOnLeft < mouseX && mouseX < checkLeftButtonOnRight && mouseY > -0.079f && mouseY < -0.003f) {\n checkButton = 11;\n }\n\n if (checkLeftButtonOnLeft < mouseX && mouseX < checkLeftButtonOnRight && mouseY > -0.079f && mouseY < -0.003f && isLeftButtonPressed()) {\n checkButton = 12;\n }\n\n if (checkRightButtonOnLeft < mouseX && mouseX < checkRightButtonOnRight && mouseY > -0.079f && mouseY < -0.003f) {\n checkButton = 21;\n }\n\n if (checkRightButtonOnLeft < mouseX && mouseX < checkRightButtonOnRight && mouseY > -0.079f && mouseY < -0.003f && isLeftButtonPressed()) {\n checkButton = 22;\n }\n\n return checkButton;\n }", "public boolean mouseClicked(gb gui, int mousex, int mousey, int button) {\n/* 233 */ if (button == 0)\n/* 234 */ return transferRect(gui, false); \n/* 235 */ if (button == 1) {\n/* 236 */ return transferRect(gui, true);\n/* */ }\n/* 238 */ return false;\n/* */ }", "public boolean onTouchEvent(MotionEvent event) {\n // React only to some actions, ignoring the others\n int action = event.getAction();\n int actionCode = action & MotionEvent.ACTION_MASK;\n if (!(\n actionCode == MotionEvent.ACTION_DOWN ||\n actionCode == MotionEvent.ACTION_POINTER_DOWN ||\n actionCode == MotionEvent.ACTION_UP ||\n actionCode == MotionEvent.ACTION_POINTER_UP ||\n actionCode == MotionEvent.ACTION_MOVE)) {\n return false;\n }\n // Use of maps to keep track of:\n // all affected keys: pressed_map\n // pressed keys: new_pressed\n Set<Integer> new_pressed = new HashSet<Integer>();\n HashMap<Integer, Float> pressed_map = new HashMap<Integer, Float>();\n // For every pointer, see which key the point belongs to\n for (int pointerIndex = 0; pointerIndex < event.getPointerCount(); pointerIndex++) {\n // Get coordinates of the point for the current pointer\n int x = (int) event.getX(pointerIndex);\n int y = (int) event.getY(pointerIndex);\n int keyWasFound = 0; // flag to do something with a key\n int noteFound = 0; // variable to store the note number of the affected key\n // Check black keys first, because white keys' bounding rectangles overlap with\n // black keys\n int blackKeyFound = 0; // flag to skip white keys check\n // Check black keys\n for (int i = 0; i < numberOfBlackKeys; i++) {\n RectF bounds = new RectF();\n keys.get(blackKeyNoteNumbers.get(i)).computeBounds(bounds, true);\n if (bounds.contains((float) x, (float) y)) {\n blackKeyFound = 1;\n keyWasFound = 1;\n noteFound = blackKeyNoteNumbers.get(i);\n }\n }\n // Check white keys, if necessary\n for (int i = 0; (i < numberOfNotes) && (blackKeyFound == 0); i++) {\n if (blackKeyNoteNumbers.contains(i)) {\n continue; // skip black keys -already checked\n }\n RectF bounds = new RectF();\n keys.get(i).computeBounds(bounds, true);\n if (bounds.contains((float) x, (float) y)) {\n keyWasFound = 1;\n noteFound = i;\n }\n }\n // Save found key\n if (keyWasFound == 1) {\n // save note number and pressure in all affected keys map\n if (pressed_map.containsKey(noteFound)) {\n pressed_map.put(noteFound,\n Math.max(event.getPressure(pointerIndex),\n pressed_map.get(noteFound)));\n } else {\n pressed_map.put(noteFound, event.getPressure(pointerIndex));\n }\n // if appropriate, save note number in pressed keys map\n if ((pointerIndex != event.getActionIndex() || (\n actionCode != MotionEvent.ACTION_UP &&\n actionCode != MotionEvent.ACTION_POINTER_UP))) {\n new_pressed.add(noteFound);\n }\n }\n }\n // Map of newly pressed keys (pressed keys that weren't already pressed)\n Set<Integer> just_pressed = new HashSet<Integer>(new_pressed);\n just_pressed.removeAll(old_pressed);\n // Play the sound of each newly pressed key\n Iterator<Integer> it = just_pressed.iterator();\n justPressedKeys.clear(); // empty the list of just pressed keys (used to draw them)\n while (it.hasNext()) {\n int i = it.next();\n justPressedKeys.add(i); // add the key (note number) to the list so that it can be shown as pressed\n try {\n playIds.set(i, pianoSounds.play(soundIds.get(i), 1.0f, 1.0f, 1, 0, 1.0f));\n } catch (Exception e) {\n Log.e(\"onTouchEvent\", \"Key \" + i + \" not playable!\");\n }\n }\n // Stop the sound of released keys\n if (damper.equals(\n getContext().getString(R.string.pref_damper_dampen_value))) {\n Set<Integer> just_released = new HashSet<Integer>(old_pressed);\n just_released.removeAll(new_pressed);\n it = just_released.iterator();\n while (it.hasNext()) {\n int i = it.next();\n pianoSounds.stop(playIds.get(i));\n }\n }\n // Update map of pressed keys\n old_pressed = new_pressed;\n // Force a call to onDraw() to give visual feedback to the user\n this.invalidate();\n return true;\n }", "public boolean mouseClicked(MouseEvent e)\r\n {\r\n double x = e.getX();\r\n double y = e.getY();\r\n \r\n //find if coordinates are in a \"button\"\r\n for (int i = 0; i < towerButtons.length; i++)\r\n {\r\n if (towerButtons[i].contains(x,y))\r\n {\r\n display.setUnit(dummyList.get(i));\r\n selectedIndex = i;\r\n }\r\n }\r\n \r\n //within bounds\r\n if ((new Rectangle2D.Double(initX, 0, width, height)).contains(x,y))\r\n return true;\r\n return false;\r\n }", "@Override\n\tpublic void tick() {\n\t\twhile (clicks.size() > 0)\n\t\t{\n\t\t\tClick click = clicks.remove(0);\n\t\t\tSystem.out.println(click.posX + \" \" + click.posY);\n\t\t}\n\t\twhile (presses.size() > 0)\n\t\t{\n\t\t\tPress press = presses.remove(0);\n\t\t}\n\t}", "@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "@Override\n\t\t\t\tpublic boolean touchDown(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\t\treturn true;\n\t\t\t\t}", "public boolean getButtonPressed(Button button) {\n return getButtonPressed(button.getNumber());\n }" ]
[ "0.68068814", "0.65612245", "0.64373994", "0.6366435", "0.6304481", "0.6282867", "0.6207637", "0.6206778", "0.6150213", "0.6142328", "0.6109704", "0.6108914", "0.6103317", "0.6046711", "0.6027397", "0.60201675", "0.600712", "0.60035366", "0.59986037", "0.5997072", "0.5994121", "0.59833395", "0.59829295", "0.5976657", "0.59699214", "0.59559196", "0.59559196", "0.59559196", "0.5950979", "0.5950039", "0.5949128", "0.5939332", "0.591768", "0.5917525", "0.5895683", "0.58939666", "0.5885432", "0.58803266", "0.587884", "0.5872286", "0.5869177", "0.58640337", "0.58394396", "0.5832557", "0.5818249", "0.58182096", "0.58176446", "0.5813085", "0.58123606", "0.5811857", "0.5811472", "0.58107954", "0.5807848", "0.5797547", "0.5793487", "0.57895327", "0.57888126", "0.5782272", "0.5777181", "0.5761317", "0.57594824", "0.57573634", "0.5753761", "0.5752169", "0.57505393", "0.5748345", "0.57462984", "0.57433224", "0.5742471", "0.5737314", "0.57366014", "0.5732922", "0.57211053", "0.57163584", "0.57101995", "0.57071275", "0.5703782", "0.57018524", "0.570152", "0.56976175", "0.569676", "0.5696379", "0.56953263", "0.5692257", "0.56870246", "0.5683651", "0.56806034", "0.5679699", "0.5671442", "0.56707686", "0.5666165", "0.56563926", "0.564609", "0.56423", "0.5640624", "0.5634136", "0.56280416", "0.56277585", "0.56269705", "0.5625199", "0.56218666" ]
0.0
-1
stops the player so that it can be restarted later
protected void foo() { player.stop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void stop()\r\n {\r\n player.stop();\r\n }", "private void stop(){ player.stop();}", "public static void playerStop() {\n\t\tif(playing){\n\t\t\tPlayer.stop();\n\t\t\tmicroseconds = 0;\n\t\t\tplaying = false;\n\t\t\tif (sim!=null) sim.stop();\n\t\t}\n\t}", "public void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tstopPlayer();\n\t\t}\n\t\tcatch (JavaLayerException ex)\n\t\t{\n\t\t\tSystem.err.println(ex);\n\t\t}\n\t}", "public void stop() {\n mCurrentPlayer.reset();\n mIsInitialized = false;\n }", "public void stopPlaying()\n {\n player.stop();\n }", "private void detener() {\n player.stop();\n player.release();\n player = null;\n }", "public void stop() {\n\t\tplaybin.stop();\n\t}", "@Override\n\tpublic void stop() {\n\t\tif (player != null) {\n\t\t\tplayer.close();\n\n\t\t\tpauseLocation = 0;\n\t\t\tsetSongTotalLenght(0);\n\t\t}\n\t}", "private void stopPlayer() {\n if (player != null) {\n player.release();\n Toast.makeText(this, \"player released\", Toast.LENGTH_SHORT);\n player = null;\n }\n }", "public void stop()\n {\n mediaPlayer.stop();\n }", "private void stopGame() {\n\t\ttimer.cancel();\n\t\tboard.stopGame();\n\t\treplayButton.setEnabled(true);\n\t\t// to do - stopGame imp\n\t}", "public void stopPlaying() {\n \t\tisPlaying = false;\n \t}", "public void stop() {\n mMediaPlayer.stop();\n setPlayerState(State.STOPPED);\n notifyPlaying();\n }", "public void stop() {\n AudioPlayer.player.stop(cas);\n playing = false;\n }", "public void stop() {\n\t\tstop(!playing);\n\t}", "@Override\n public void stop() {\n GameManager.getInstance().stopTimer();\n }", "public void stop() {\n try {\n mIsIdle = true;\n mIsLooping = false;\n if (mCurPlayer != null) \n {\n mCurPlayer.stop(); \n Thread.sleep(100);\n// mCurPlayer.setMediaTime(0);\n mIsPlaying = false;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public synchronized void stopGame(){\n \t\tif (running){\n \t\t\trunning = false;\n \t\t}\n \t}", "public void stopPlaying() {\n seq.stop();\n }", "public void stop() { \r\n\t if (remoteControlClient != null) {\r\n\t remoteControlClient\r\n\t .setPlaybackState(RemoteControlClient.PLAYSTATE_STOPPED);\r\n\t } \r\n\t }", "protected void stopPlayer() throws JavaLayerException\n\t{\n\t\tif (player!=null)\n\t\t{\n\t\t\tplayer.close();\n\t\t\tplayer = null;\n\t\t\tplayerThread = null;\n\t\t}\n\t}", "public void stop() {\n\t\tif (player == null)\n\t\t\treturn;\n\t\t\n\t\tif (listener != null)\n\t\t\tlistener.setLooping(false);\n\t\t\n\t\t// This will invoke playbackFinished, which will decrement currentlyPlaying\n\t\t// and set player to null.\n\t\tplayer.stop();\n\t}", "public static void stopCurrentGamePlay() {\r\n\t\tif(!STATUS.equals(Gamestatus.RUNNING) && !STATUS.equals(Gamestatus.PREPARED)) return;\r\n\t\tif(STATUS.equals(Gamestatus.RUNNING)) clock.stop();\r\n\t\tSTATUS = Gamestatus.STOPPED;\r\n\t\tgui.setMenu(new LoseMenu(), false);\r\n\t}", "public void stop() {\n\t\tsound.stop();\n\t}", "public void stopPlayThread() {\n ms.stop();\n }", "public void stop() {\n\t\tmusic.stop();\n\t}", "public void stop(){\n\t\tthis.timer.stop();\n\t\t//whenever we stop the entire game, also calculate the endTime\n\t\tthis.endTime = System.nanoTime();\n\t\tthis.time = this.startTime - this.endTime;\t//calculate the time difference\n\t\t\n\t\tthis.stop = true;\n\t}", "public void stop()\r\n\t{\r\n\t\tif (state == State.ENTERING) {\r\n\t\t\tsetSpeed(0);\r\n\t\t\tstate = State.STOPPED;\r\n\t\t\tsetSprite(\"pedestrians/\"+spriteName.substring(0,spriteName.indexOf(\"Walk1.gif\")) + \"Stop1.gif\");\r\n\t\t}\r\n\t}", "public void killPlayer(){\n setInPlay(false);\n setDx(0.0f);\n setDy(0.04f);\n }", "public void stop() {}", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop() { \r\n timer.stop(); \r\n if (midi) \r\n sequencer.stop(); \r\n else \r\n clip.stop(); \r\n play.setText(\"Play\"); \r\n playing = false; \r\n }", "public void stop() {\n\t\t\n\t\tif(stop){\n\t\t\tGameError error=new GameError(\"The game already has been stopped\");\n\t\t\t\t\n\t\t\t\tnotifyObservers(new GameEvent<S, A>(EventType.Stop,null,currentState,\n\t\t\t\t\terror,\"The game already has been stopped\"));\n\t\t\t\n\t\t\tthrow error;\n\t\t}else{\n\t\t\tstop=true;\n\t\t\tnotifyObservers(new GameEvent<S, A>(EventType.Stop,null,currentState,null,\"The game has been stopped\"));\n\t\t}\n\t\t\n\t}", "public void stop() {\n enemyTimeline.stop();\n }", "@Override\n public void stopGame() {\n ((MultiplayerHostController) Main.game).stopGame();\n super.stopGame();\n }", "public void stopPlaying(){\r\n\t\tsongsToPlay.clear();\r\n\t\tselectedPreset = -1;\r\n\t\tselectedSource = \"\";\r\n\t\ttry{\r\n\t\t\tplayer.stop();\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.err.println(\"ERROR: BASICPLAYER STOP CODE HAS FAULTED.\");\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n if(player != null){\n\n player.stop();\n }\n }", "public void stop()\n\t{\n\t\tindex = 0;\n\t\tlastUpdate = -1;\n\t\tpause();\n\t}", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "public void endGame() {\n\r\n\t\tplaying = false;\r\n\t\tstopShip();\r\n\t\tstopUfo();\r\n\t\tstopMissle();\r\n\t}", "public static void stopMoving()\n {\n //System.out.println(\"player stopped moving\");\n runSound.stop();\n walkSound.stop();\n }", "void stopGame() {\n leader.disconnect();\n opponent.disconnect();\n }", "public static void stopSong()\n {\n JSoundsMainWindowViewController.iAmPlaying = true;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.stopSong();\n }", "public void stopVideo() {\n try {\n texture.getSurfaceTexture().release();\n nodeMediaPlayer.reset();\n nodeMediaPlayer.prepare();\n nodeMediaPlayer.stop();\n nodeMediaPlayer.release();\n nodeMediaPlayer = null;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void shutDownPlayer()\n {\n MusicPlayerControl.shutdown();\n JSoundsMainWindowViewController.listSongs=null;\n JSoundsMainWindowViewController.listSongs=new JMusicPlayerList();\n JSoundsMainWindowViewController.alreadyPlaying=false;\n JSoundsMainWindowViewController.dontInitPlayer=false;\n JSoundsMainWindowViewController.shutDown=true;\n }", "private void stop()\n\t\t{\n\t\t\tif (mMediaPlayer != null)\n\t\t\t{\n\t\t\t\tmMediaPlayer.stop();\n\t\t\t\tmMediaPlayer.reset();\n\t\t\t}\n\t\t}", "private void pause() { player.pause();}", "private void stop()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n }", "private void stopGame() {\r\n gameThread.interrupt();\r\n gameWindow.getStartButton().setText(\"Start\");\r\n gameRunning = false;\r\n }", "public void stop(View v) {\n stopPlayer();\n }", "public void stop()\n {\n if(AudioDetector.getInstance().isNoAudio() || musicPlayer == null)\n {\n return;\n }\n\n\n musicPlayer.stop();\n }", "protected void stopTheSound(){\n mp.stop();\n }", "private void pause()\r\n {\r\n player.pause();\r\n }", "public void stop() {\n if (playingClip != null)\n playingClip.stop();\n }", "public void stop()\n\t{\n\t\trunning = false;\n\t}", "public void stopGame() {\n\t\t\tif (extended)\n\t\t\t\textendTimer.stop();//stops the extend timer\n\t\t\tpause=true;//waits for other stimuli to unpause.\n\t\t\tstopped = true;//set the stopped flag to true\n\t\t\trepaint();//repaint once to indicate user said to pause\n\t\t\t\n\t\t}", "public void stop() {\n\t\tResources.getmScene().unregisterUpdateHandler(time);\n\t\trunning = false;\n\t}", "private void stopPlayback() {\n // stop player service using intent\n Intent intent = new Intent(mActivity, PlayerService.class);\n intent.setAction(ACTION_STOP);\n mActivity.startService(intent);\n LogHelper.v(LOG_TAG, \"Stopping player service.\");\n }", "public void stop() {\n }", "public void stop() {\n }", "public void stop()\n {\n if (this.mediaPlayer != null && mediaPlayer.getStatus().equals(MediaPlayer.Status.PLAYING))\n {\n this.mediaPlayer.stop();\n }\n }", "public void stop(){\n\t\t\n\t}", "public void stop() {\n System.out.println(\"STOP!\");\n xp.stop();\n }", "@Override\n public void stopSound(){\n gameMusic.stop();\n }", "public void stop() {\n stop = true;\n }", "public void stop()\n {\n }", "public void stop(){\n }", "public void stop() {\n\t\tthis.velocity = 0.0;\n\t}", "public void stop() {\n\t\t\n\t}" ]
[ "0.90067613", "0.8744028", "0.8368926", "0.8287433", "0.8286991", "0.82501614", "0.8068956", "0.7868586", "0.7847799", "0.78432214", "0.76754254", "0.7649291", "0.7633198", "0.7633103", "0.7632364", "0.76179343", "0.76065594", "0.759019", "0.75192505", "0.7515371", "0.7489324", "0.74601024", "0.7447099", "0.743413", "0.7429507", "0.7382783", "0.73826855", "0.73809713", "0.7374182", "0.73737055", "0.73679173", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7358905", "0.7341952", "0.73281235", "0.7312306", "0.73096037", "0.7308739", "0.72897875", "0.72829986", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72761625", "0.72749287", "0.7268212", "0.7249762", "0.72428", "0.7235922", "0.72319025", "0.7214392", "0.719993", "0.7199191", "0.71962", "0.71926224", "0.7133453", "0.7128233", "0.7127242", "0.7126088", "0.7122804", "0.7110123", "0.71065754", "0.7085988", "0.7064788", "0.7064788", "0.7052026", "0.70410013", "0.70254505", "0.70211923", "0.7020058", "0.70122737", "0.7009152", "0.70083314", "0.7007902" ]
0.72534776
72
/ restarts the music
protected void playS() { player.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void restartIngamemusic() {\n\t\tingamemusicPlayer.seek(Duration.ZERO);\n\t\tingamemusicPlayer.play();\n\t\tlogger.info(\"restart ingame\");\n\t}", "private void restart()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n mPlayer.start();\n }", "void reset() {\n\t\tsongs.get(curSong).rewind();\n\t\tsongs.get(curSong).pause();\n\t}", "public void restart()\n\t{\n\t\tstop();\n\t\treset();\n\t\tstart();\n\t}", "public void restart() {\r\n\t\tstart();\r\n\t}", "public static void resumeMusic() {\n\t\t\n\t\tif (currentMusic == null) {\n\t\t\tplayMusic(\"mainMenuMusic\", 0.1f);\n\t\t} else {\n\t\t\tcurrentMusic.start();\n\t\t}\n\t}", "public void restart();", "protected void restart() {\r\n\t\tthis.stop();\r\n\t\tthis.start();\r\n\t}", "void stopMusic();", "@Override\n protected void onResume() {\n super.onResume();\n if (is_resume) {\n is_resume = false;\n } else {\n Music.restart(mContext);\n }\n }", "public void restartGame() {\n\t\tclearGame();\n\t\tstartGame();\n\t}", "public void ChangeMusic(int musicnum, boolean looping);", "private void initialMusic(){\n\n }", "private void makeNewMusic() {\n File f = music.getFile();\n boolean playing = music.isPlaying();\n music.stop();\n music = new MP3(f);\n if (playing) {\n music.play(nextStartTime);\n }\n }", "private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }", "public static void stopSong()\n {\n JSoundsMainWindowViewController.iAmPlaying = true;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.stopSong();\n }", "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "public static void previusSong()\n {\n MusicPlayerControl.prevSong();\n }", "public void restart()\n\t{\n\t\tinit();\n\t}", "private void restart() {\n \tanimation.stop();\n \tspeed = 1;\n \tstart(stage);\n }", "public static void startMusic()\n\t{\n\t\tmusic.loop();\n\t}", "synchronized void resumeGame() {\n try {\n myGamePause = false;\n if (!myShouldPause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "public static void resumeCurrentSoundtrack() {\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null)\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t}", "public void playAgain() {\r\n\t\t\r\n\t\tscreen.reset();\r\n\t\t\r\n\t}", "public void resume() {\n\t\t\n\t\tmusic.resume();\n\t\tsyncPosition();\n\t}", "@Override\n protected void onResume()\n {\n super.onResume();\n setSound.resumeMusic(this);\n }", "public void StopMusic();", "@Override\n\tpublic void resume() {\n\t\tPhoneDevice.Settings.playMusic(PhoneDevice.Settings.MusicEnum.psyche_up);\n\t \n\t}", "protected void restart()\r\n \t{\r\n \t\tspielen();\r\n \t}", "public static void stopMusic() {\n\t\tcurrentMusic.stop();\n\t}", "public void playAudio() {\n\t\tmusic[currentSong].stop();\n\t\tcurrentSong++;\n\t\tcurrentSong %= music.length;\n\t\tmusic[currentSong].play();\n\t}", "public synchronized void resume(){\r\n if(currentLoop0) backgroundMusicLoop0.unpause();\r\n else backgroundMusicLoop1.unpause();\r\n }", "public void playAgain();", "public void StartMusic(int music_id);", "public void playMusic() {\n\t\tthis.music.start();\n\t}", "public void stop() {\n\t\tmusic.stop();\n\t}", "@Override\n\tpublic void pause() {\n\t PhoneDevice.Settings.stopMusic();\n\t}", "@Override\n public void stopSound(){\n gameMusic.stop();\n }", "public void restart() {\r\n\t\tthis.cancel = false;\r\n\t}", "public void pause() {\n\t\tmusic.pause();\n\t}", "public void restart() {\n\t\tthis.restartEvent.emit();\n\t}", "public static void startMusic()\r\n\t{\r\n\t\tif ( musicPlayer == null )\r\n\t\t\tmusicPlayer = new MusicPlayer( \"Music2.mid\" );\r\n\t\telse\r\n\t\t\tmusicPlayer.play();\r\n\t}", "void restartVideo();", "public void stopBackgroundMusic()\n {\n background.stop();\n }", "private void audioManipulatorResetMediaPlayer() {\n\t\tcontroller.audioManipulatorResetMediaPlayer();\n\t}", "private void restart(){\n model.init();\n view.refreshPieces();\n start();\n }", "@Override\n\tpublic void restart() {\n\t\t\n\t}", "public void ReplayCurrentLevel(){\n gamePaused = true;\n timeRuunableThread.setPause(gamePaused);\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"TimeoutSound\");\n }\n musicName = \"TimeoutSound\";\n JOptionPane.showMessageDialog(null, \"Oops! Time out. Please replay current level.\", \"Timeout\", JOptionPane.INFORMATION_MESSAGE);\n newGameStart(level);\n }", "@Override\n public void restart() {\n }", "public static void updateMusic()\r\n\t{\r\n\t\tif ( Settings.isMusicOn() && !musicPlaying() )\r\n\t\t\tstartMusic();\r\n\t\telse if ( !Settings.isMusicOn() && musicPlaying() )\r\n\t\t\tstopMusic();\r\n\t}", "public void continueSound() {\n\t\tclip.start();\n\t}", "private void resetMediaPlayer() {\n if (mediaPlayer != null) {\n //mediaPlayer.stop();\n mediaPlayer.reset();\n mediaPlayer.release();\n mediaPlayer = null;\n listen_icon.setText(Html.fromHtml(\"&#xf57e;\"));\n listen_text.setText(\"Listen\");\n }\n }", "public void restartLevel() {\r\n world.stop();\r\n levelMusic.close();\r\n if(level == 1) {\r\n world = new Level1();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel1Sound();\r\n levelMusic.loop();\r\n controlPanel.setWorld(world);\r\n world.start();\r\n }\r\n else if(level == 2) {\r\n world = new Level2();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel2Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else if(level == 3) {\r\n world = new Level3();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel3Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n }", "public void restart() {\n eaten = 0;\n }", "@Override\n public void restartLoader() {\n for (final MusicStateListener listener : mMusicStateListener) {\n if (listener != null) {\n listener.restartLoader();\n }\n }\n }", "public void Play() {\n superPlaneGodMode = false;\r\n if (!musicPlaying)\r\n backgroundMusic.pause();\r\n if (musicPlaying)\r\n backgroundMusic.start();\r\n paused = false;\r\n }", "@Override\n protected void onPause()\n {\n super.onPause();\n setSound.pauseMusic();\n }", "public static void startMusic()\n\t{\n\t\tif (music == null)\n\t\t{\n\t\t\tloadMusic();\n\t\t\tif (music.size() < 2)\n\t\t\t{\n\t\t\t\tthrow new GameLogicException(\"At least two songs must be specified.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tcurrentMusicFile = 0;\n\t\tmusic.get(currentMusicFile).setVolume(musicVolume / 100.f);\n\t\tmusic.get(currentMusicFile).play();\n\t\tmusic.get(currentMusicFile).setOnCompletionListener(musicOnCompletionListener);\n\t}", "public void restart() {\n\t\tmadeMove = false;\n\t\tcurrentPit = -1;\n\t\tnewGame(player1.getName(), player2.getName(), originalCount); \n\t}", "@Override\n protected void onStop() {\n super.onStop();\n stopMusic();\n }", "public void pauseSong()\n {\n if(!mute)\n {\n try{ \n //bclip.stop();\n \n URL url = this.getClass().getClassLoader().getResource(\"Refreshing Elevator Music.wav\");\n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n pclip = AudioSystem.getClip();\n \n // Open audio clip and load samples from the audio input stream.\n pclip.open(audioIn); \n pclip.start();\n pclip.loop(Clip.LOOP_CONTINUOUSLY);\n }catch(Exception e){}\n }\n }", "public void restartGame() {\n orientate(Orientation.DOWN);\n currentAnimation = idleAnimations[getOrientation().ordinal()];\n gameOver = false;\n strengthen(MAX_HP);\n }", "protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }", "void undoPlay();", "public void restart()\n\t\t{\n\t\tif (!restart_in_progress)\n\t\t\t{\n\t\t\tif (number_of_inits++ < 16)\n\t\t\t\t{\n\t\t\t\t/* will mess up our context */\n\t\t\t\tlog (\"Youtube is probably released, re-initializing\");\n\t\t\t\trestart_in_progress = true;\n\t\t\t\t\n\t\t\t\tinitialize (devkey, this);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\tlog (\"Youtube init is \" + number_of_inits + \", probably in some awful feedback loop, won't try to init\");\n\t\t\t}\n\t\telse\n\t\t\tlog (\"YouTube state error! but a re-initialization is in progress\");\n\t\t}", "public void startReloading() {\n reload.setTimeOffset(1);\n reload.play();\n }", "public void restart() {\n\t\telements[currentElement - 1].turnOff();\n\t\tstart();\n\t}", "public void play() { \r\n if (midi) \r\n sequencer.start(); \r\n else \r\n clip.start(); \r\n timer.start(); \r\n play.setText(\"Stop\"); \r\n playing = true; \r\n }", "@Override\n\tpublic void OnGameStart() {\n\t\tsuper.OnGameStart();\n\t\tMusicManage.setLoopingMusic(tumMusic, true);\n\t\tMusicManage.playMusic(tumMusic);\n\t}", "private void resume()\r\n {\r\n player.resume();\r\n }", "public void play() {\n\t\t\r\n\t}", "public void play() {\n\t\tplay(true, true);\n\t}", "public void play() { player.resume();}", "private void resume() { player.resume();}", "@Override\n public void playStop() {\n }", "@Override\n public void onResume() {\n super.onResume();\n MusicManager.start(this, prefs.getBoolean(\"bgMusic\", true));\n }", "protected void stopTheSound(){\n mp.stop();\n }", "public void wrong()\n\t{\n\t\tMediaPlayer wrong = MediaPlayer.create(this, R.raw.wrong);\n\t\twrong.start();\n\t}", "public static void repeatFromTheBeginning()\n {\n if (JSoundsMainWindowViewController.jtbRepeatSongs.isSelected())\n MusicPlayerControl.repeatSongsFromTheBeginning(true);\n else\n MusicPlayerControl.repeatSongsFromTheBeginning(false);\n }", "public static void stopMusic()\n\t{\n\t\tif (music != null && currentMusicFile != -1)\n\t\t{\n\t\t\tmusic.get(currentMusicFile).stop();\n\t\t\tcurrentMusicFile = -1;\n\t\t}\n\t}", "public void play() {\n\t\t//If volume is not muted\n\t\tif (volume != Volume.MUTE) {\n\t\t\t//If the clip is running\n\t\t\tif (clip.isRunning()) {\n\t\t\t\tclip.stop(); //Stop it\n\t\t\t}\n\t\t\tclip.setFramePosition(0); //Rewind\n\t\t\tclip.start(); //Play again\n\t\t}\n\t}", "public void toggleSound() { \n\t\tif (mSoundEnable) {\n\t\t\tmSoundEnable = false; \n\t\t\tif (ResourceManager.getInstance().gameMusic.isPlaying())\n\t\t\t\tResourceManager.getInstance().gameMusic.pause();\n\t\t}\n\t\telse {\n\t\t\tmSoundEnable = true;\n\t\t\tif (!ResourceManager.getInstance().gameMusic.isPlaying()) {\n\t\t\t\tResourceManager.getInstance().gameMusic.play();\n\t\t\t}\n\t\t}\n\t}", "public void keepLooping() {\n\t\tif(!clip.isActive()) {\n\t\t\tstartSound();\n\t\t}\n\t}", "public void restart() {\n Board.gameOver = false;\n CollisionUtility.resetScore();\n loadMenu();\n }", "public void StartMusic(musicenum_t music_id);", "public void play() {\n\t\tmusic.play();\n\t\tsyncPosition();\n\t}", "public void RestartGame()\n {\n \n }", "public void playSelectSong() {\n isStart = false;\n if (getCurrentSong() == 0) {\n audioList.get(getCurrentSong()).setSelect(true);\n playListAdapter.notifyItemChanged(getCurrentSong());\n }\n isPauseResume = false;\n if (player != null) {\n player.stopMedia();\n }\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n }\n }, DELAY_TIME);*/\n }", "synchronized void toggle() {\n try {\n myShouldPause = !myShouldPause;\n if (myShouldPause) {\n if (myPlayer != null) {\n myPlayer.stop();\n }\n } else if (!myGamePause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "@Override\n\tprotected void onRestart() {\n\t\tshowPhoto(0);\n\t\tsuper.onRestart();\n\t}", "public void playMusic() {\n\t\ttry {\n\t\t\tsoundManager.playMusic(\"bgroundmusic\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void killMusic() {\n\t\t// Stop the sources\n\t\talSourceStop(musicSourceIndex);\n\t\talSourceStop(reverseSourceIndex);\n\t\talSourceStop(flangeSourceIndex);\n\t\talSourceStop(revFlangeSourceIndex);\n\t\talSourceStop(wahSourceIndex);\n\t\talSourceStop(revWahSourceIndex);\n\t\talSourceStop(wahFlangeSourceIndex);\n\t\talSourceStop(revWahFlangeSourceIndex);\n\t\talSourceStop(distortSourceIndex);\n\t\talSourceStop(revDistortSourceIndex);\n\t\talSourceStop(distortFlangeSourceIndex);\n\t\talSourceStop(revDistortFlangeSourceIndex);\n\t\talSourceStop(wahDistortSourceIndex);\n\t\talSourceStop(revWahDistortSourceIndex);\n\t\talSourceStop(wahDistortFlangeSourceIndex);\n\t\talSourceStop(revWahDistortFlangeSourceIndex);\n\t\t// Delete the sources\n\t\talDeleteSources(musicSourceIndex);\n\t\talDeleteSources(reverseSourceIndex);\n\t\talDeleteSources(flangeSourceIndex);\n\t\talDeleteSources(revFlangeSourceIndex);\n\t\talDeleteSources(wahSourceIndex);\n\t\talDeleteSources(revWahSourceIndex);\n\t\talDeleteSources(wahFlangeSourceIndex);\n\t\talDeleteSources(revWahFlangeSourceIndex);\n\t\talDeleteSources(distortSourceIndex);\n\t\talDeleteSources(revDistortSourceIndex);\n\t\talDeleteSources(distortFlangeSourceIndex);\n\t\talDeleteSources(revDistortFlangeSourceIndex);\n\t\talDeleteSources(wahDistortSourceIndex);\n\t\talDeleteSources(revWahDistortSourceIndex);\n\t\talDeleteSources(wahDistortFlangeSourceIndex);\n\t\talDeleteSources(revWahDistortFlangeSourceIndex);\n\t\t// Delete the buffers\n\t\talDeleteBuffers(musicBufferIndex);\n\t\talDeleteBuffers(reverseBufferIndex);\n\t\talDeleteBuffers(wahBufferIndex);\n\t\talDeleteBuffers(revWahBufferIndex);\n\t\talDeleteBuffers(distortBufferIndex);\n\t\talDeleteBuffers(revDistortBufferIndex);\n\t\talDeleteBuffers(wahDistortBufferIndex);\n\t\talDeleteBuffers(revWahDistortBufferIndex);\n\t}", "@Override\r\n public void show()\r\n {\r\n // De inmediato, ponemos en marcha una melodia\r\n if (!juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).isPlaying())\r\n {\r\n juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).play();\r\n juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).setLooping(true);\r\n }\r\n }", "public void previousItem(boolean noRestart) {\n\t\tif(currentPlayingItem==null) return;\n\t\t\n\t\tif(!noRestart && getCurrentPosition()>2000) {\n\t\t\tplayItem(currentPlayingItem);\n\t\t\treturn;\n\t\t}\n\n\t\tswitch (playMode) {\n\t\t\tcase PLAY_MODE_REPEAT_ONE:\n\t\t\t\tplayItem(currentPlayingItem);\n\t\t\t\treturn;\n\t\t\tcase PLAY_MODE_SHUFFLE:\n\t\t\t\trandomItem();\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tPlayableItem previousItem = currentPlayingItem.getPrevious();\n\t\tif(previousItem!=null) {\n\t\t\tplayItem(previousItem);\n\t\t}\n\t}", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n//\t\tgv.f = false;\t//如果没有这句,即使退出,run()函数也不停止运行,既游戏界面退出,到后台后仍在运行着。\r\n\t\tMusic.stop();\r\n\t}", "void startMusic(AudioTrack newSong);", "@Override\n public void onPause() {\n super.onPause();\n MusicManager.start(this, false);\n }", "public void restart() \n {\n xPosition = (int)(FlappyMain.WIDTH/2.5);\n yPosition = FlappyMain.HEIGHT/2;\n xVelocity = yVelocity = 0;\n secret = false;\n }", "public void restart(){\n for(Player p: players)\n if(p.getActive())\n p.reset();\n turn = 0;\n currentPlayer = 0;\n diceRoller=true;\n }", "public void restartButtonOnTouch1(int scaledX, int scaledY, OnePlayerState oneplayerstate) {\n if (restartButton.isPressed(scaledX, scaledY) && oneplayerstate.isPause()) {\n oneplayerstate.setPause(false);\n //start a new game\n myGame.restartGame();\n //super.onRestart();\n }else{\n restartButton.cancel();\n }\n }", "public static void start(Context c, int music, boolean force) {\r\n if ((!force) && (currentMusic_ != INVALID_NUMBER)) {\r\n // already playing some music and not forced to change immediately\r\n if (music != INVALID_NUMBER) {\r\n nextMusic_ = music;\r\n MediaPlayer mp = players_.get(music);\r\n if (mp == null) {\r\n mp = MediaPlayer.create(c, music);\r\n players_.put(music, mp);\r\n }\r\n MediaPlayer cp = players_.get(currentMusic_);\r\n if (cp != null) {\r\n cp.setOnCompletionListener(new OnCompletionListener() {\r\n @Override\r\n public void onCompletion(MediaPlayer p) {\r\n MusicHandler.next();\r\n }\r\n });\r\n cp.setLooping(false);\r\n }\r\n }\r\n return;\r\n }\r\n if (currentMusic_ == music) {\r\n // already playing this music\r\n return;\r\n }\r\n if (currentMusic_ != INVALID_NUMBER) {\r\n // playing some other music, pause it and change\r\n pause();\r\n }\r\n currentMusic_ = music;\r\n MediaPlayer mp = players_.get(music);\r\n if (mp != null) {\r\n if (!mp.isPlaying()) {\r\n // Note: This continues the piece where it last let off\r\n mp.setLooping(true);\r\n mp.setOnCompletionListener(null);\r\n mp.start();\r\n return;\r\n }\r\n } else {\r\n mp = MediaPlayer.create(c, music);\r\n players_.put(music, mp);\r\n if (mp == null) {\r\n // Log an error, but don't do anthing (we do not want to risk f/c the app)\r\n Log.e(TAG, \"player was not created successfully\");\r\n } else {\r\n mp.setLooping(true);\r\n mp.setOnCompletionListener(null);\r\n mp.start();\r\n }\r\n }\r\n }" ]
[ "0.854037", "0.8358996", "0.73301333", "0.72573584", "0.720572", "0.7187897", "0.71855676", "0.71613103", "0.7134449", "0.7075094", "0.70411325", "0.7027485", "0.7019139", "0.7004188", "0.6954694", "0.69407433", "0.69343245", "0.69216305", "0.69099146", "0.69035697", "0.6899905", "0.6892225", "0.686641", "0.68545973", "0.6851609", "0.68510044", "0.6778057", "0.67651147", "0.67292565", "0.6724114", "0.6722315", "0.6717877", "0.67177486", "0.6714709", "0.6712925", "0.6687566", "0.6680773", "0.6673697", "0.6671294", "0.666915", "0.6668658", "0.66631436", "0.66608006", "0.66447204", "0.6644684", "0.66226757", "0.66072065", "0.6580232", "0.6574989", "0.656737", "0.65643495", "0.65628755", "0.6555663", "0.65407723", "0.6529142", "0.65055925", "0.6496938", "0.6495983", "0.6489357", "0.6487678", "0.647963", "0.6477726", "0.6475704", "0.6474849", "0.646534", "0.6464124", "0.6455821", "0.6451954", "0.6427898", "0.6411512", "0.6410304", "0.6389079", "0.6387325", "0.638211", "0.6381552", "0.63780534", "0.6370247", "0.6368447", "0.6359111", "0.6345025", "0.63393515", "0.6336034", "0.6327704", "0.6326087", "0.6323233", "0.63013875", "0.6292796", "0.6290151", "0.6283816", "0.62690794", "0.6250547", "0.6248789", "0.6247367", "0.624515", "0.6244467", "0.62372035", "0.62358683", "0.6235376", "0.62276405", "0.62250715", "0.62197304" ]
0.0
-1
interface represents manager for handling recipes in database
public interface RecipeManager { /** * creates a recipe in DB * @param recipe recipe to be created */ void createRecipe(Recipe recipe) throws ServiceFailureException; /** * deletes a recipe from DB * @param recipe recipe to be deleted */ void deleteRecipe(Recipe recipe) throws ServiceFailureException; /** * edit a recipe in DB * @param recipe recipe to be edited */ void updateRecipe(Recipe recipe) throws ServiceFailureException; /** * find recipe by ID * @param id id of the searched recipe * @return recipe with entered ID */ Recipe findRecipeById(Long id) throws ServiceFailureException; /** * find recipes, that have this substring in their names * @param name name of the searched recipes * @return set of recipes with entered substring */ SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException; /** * find recipes by it's type * @param type type of the searched recipes * @return set of recipes with entered type */ SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException; /** * find recipes by it's category * @param category category of the searched recipes * @return set of recipes with entered category */ SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException; /** * find recipes by it's cooking time * @param fromTime lower border of the searched cooking time * @param toTime upper border of the searched cooking time * @return set of recipes with cooking time between lower and upper borders */ SortedSet<Recipe> findRecipesByCookingTime(int fromTime, int toTime) throws ServiceFailureException; SortedSet<Recipe> findRecipesUptoCookingTime(int toTime) throws ServiceFailureException; SortedSet<Recipe> findRecipesFromCookingTime(int fromTime) throws ServiceFailureException; /** * find all recipes in the recipe book * @return all recipes in the system */ SortedSet<Recipe> findAllRecipes() throws ServiceFailureException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RecipeStore {\n //Returns a recipe list of all recipes\n List<Recipe> getAllRecipes();\n //Returns a string list of recipe titles found from ingredients query\n List<String> getRecipeByIngredients(CharSequence query);\n //Returns a single recipe found from query\n Recipe getRecipe(CharSequence query);\n //Returns a single recipe image from query\n byte[] getRecipeImage(CharSequence query);\n //Returns a bitmap list of all small images for all recipes\n List<Bitmap> getRecipeImgSmall();\n //Returns a string list of all recipe titles\n List<String> getRecipeTitles();\n //Takes a recipe id and adds it to the favorites table\n void addToFavorites(int recipeId);\n //Returns a bitmap list of all images for recipes in the favorites table\n List<Bitmap> getFavoriteRecipeImgs();\n //Returns a string list of all titles for recipes in the favorites table\n List<String> getFavoriteRecipeTitle();\n //Takes a recipe id and deletes it from the favorites table\n void deleteFavorite(int id);\n //Takes a recipe id and checks if it exists in the favorites table\n boolean isFavorite(int id);\n //Takes recipe parameters and inserts a new row in recipes table\n Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);\n //Returns number of rows in recipes\n long getRecipesCount();\n //Opens the database\n SQLiteDatabase open() throws SQLException;\n //Closes the database\n void close();\n}", "public interface RecipeListRepository {\n void getSavedRecipes();\n void updateRecipe(Recipe recipe);\n void removeRecipe(Recipe recipe);\n void getFavoriteRecipes();\n}", "@Dao\npublic interface RecipeDao {\n\n @Query (\"SELECT * FROM recipes LIMIT 1\")\n Recipe getAnyRecipe();\n\n @Query (\"SELECT * FROM recipes\")\n List<Recipe> getAllRecipes();\n\n @Query (\"SELECT * FROM recipes\")\n LiveData<List<Recipe>> loadAllRecipes();\n\n @Query (\"SELECT * FROM recipes WHERE id =:rid\")\n LiveData<Recipe> findByRecipeID(Integer rid);\n\n @Insert\n void insertRecipe(Recipe recipe);\n\n @Update(onConflict = OnConflictStrategy.REPLACE)\n void updateRecipe(Recipe recipe);\n\n @Delete\n void deleteRecipe(Recipe recipe);\n\n /**\n * Select all cheeses.\n *\n * @return A {@link Cursor} of all the cheeses in the table.\n */\n @Query(\"SELECT * FROM recipes\" )\n Cursor selectAll();\n\n /**\n * Select a cheese by the ID.\n *\n * @param id The row ID.\n * @return A {@link Cursor} of the selected cheese.\n */\n @Query(\"SELECT * FROM recipes WHERE id = :id\")\n Cursor selectById(Integer id);\n\n}", "public interface IngredientRepository {\n}", "public interface Recipe {\n\n String getTitle();\n\n String getDescription();\n\n List<String> getMealType();\n\n List<String> getFoodType();\n\n List<String> getIngredients();\n}", "public interface IngredientListReadWriteModel extends BaseReadWriteModel,ICustomListViewModel,IngredientListReadModel {\n\n void setMealName(String mealName);\n void setEditableIngredientPosition(int pos);\n boolean checkMealName();\n void saveMeal();\n void newActiveIngredient();\n IMeal getActiveMeal();\n}", "public interface IngredientService {\n\n List<Ingredient> getAll();\n Ingredient save(Ingredient ingredient);\n\n}", "public RecipeDataBase(){\n //recipes = new ArrayList<>();\n loadDatabase();\n \n }", "RecipeObject getRecipe(int recipeID);", "RecipeObject addRecipe(RecipeObject recipe);", "public interface IRecipeTransferHandler {\r\n\tClass<? extends Container> getContainerClass();\r\n\r\n\tString getRecipeCategoryUid();\r\n\r\n\tIRecipeTransferError transferRecipe(@Nonnull Container container, @Nonnull RecipeLayout recipeLayout, @Nonnull EntityPlayer player, boolean doTransfer);\r\n}", "List<Recipe> getAllRecipes();", "public Recipe getRecipe() {\r\n return recipe;\r\n }", "Recipe findRecipeById(Long id) throws ServiceFailureException;", "public ArrayList<Recipe> getDatabase(){\n return recipes;\n }", "public Recipe getRecipe() {\n return recipe;\n }", "@Override\n\tpublic void save(RecipeTable recipe) {\n\t\t\n\t}", "@Override\n\tpublic void persist(Recipe entity) {\n\t\t\n\t}", "public interface IDataBaseRepository {\r\n\r\n /**\r\n * Get DataBase object\r\n *\r\n * @return obj\r\n */\r\n //DataBase getDataBase();\r\n\r\n /**\r\n * Save new clothes\r\n *\r\n * @param clothes obj\r\n */\r\n void save(Clothes clothes);\r\n\r\n /**\r\n * Delete clothes\r\n *\r\n * @param clothes obj\r\n */\r\n void delete(Clothes clothes);\r\n\r\n /**\r\n * Update clothes\r\n *\r\n * @param oldClothes obj\r\n * @param newClothes ojb\r\n */\r\n void update(Clothes oldClothes, Clothes newClothes);\r\n\r\n /**\r\n * Get all clothes\r\n *\r\n * @return list\r\n */\r\n List<Clothes> getAll();\r\n\r\n /**\r\n * Get all clothes by type of the office\r\n *\r\n * @param officeType obj\r\n * @return list\r\n */\r\n List<Clothes> getByOffice(OfficeType officeType);\r\n\r\n /**\r\n * Get clothes by ID\r\n *\r\n * @param id int\r\n * @return clothes obj\r\n */\r\n Clothes getById(int id);\r\n\r\n}", "public void addIngredientRecipe(IngredientRecipePOJO ingr);", "public List<Recipe> getRecipe()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "public interface RecipeRepository extends CrudRepository<Recipe,Long> {\n}", "public interface ResourceItemDao {\n ResourceItemEntity getResourceById(Integer id);\n List<ResourceItemEntity> listResources();\n void addResourceItem(ResourceItemEntity resourceItemEntity);\n void updateResourceItem(ResourceItemEntity resourceItemEntity);\n void removeResourceItem(Integer id);\n}", "public interface DBManager {\n\n\t// Populate Data can have different Implementations\n\tvoid populateData();\n}", "@Override\r\n\tpublic void registerRecipes()\r\n\t{\n\r\n\t}", "@Override\n public void setupRecipes()\n {\n\n }", "public interface DB_manager {\n\n\n boolean check_exist_client(Client c);\n\n\n ///add function content value\n String addclient(ContentValues client);\n String addmodel(ContentValues model);\n int addcar(ContentValues car);\n int addbranch(ContentValues car);\n void add_url_image(ContentValues contentValues);\n\n\n\n ////list function\n List<Models> allmodels();\n List<Client> allclient();\n List<Branch> allbranch();\n List<Car> allcars();\n public void allurl();\n\n\n\n /// instance of all database\n void db_all(Context context);\n\n\n ///cursor list function\n Cursor Allmodels();\n Cursor Allclient();\n Cursor Allcar();\n Cursor Allbranch();\n\n public String get_url_image(String num);\n\n ///delete function\n int delete_client(int id);\n int delete_model(int id);\n int delete_branch(int id);\n int delete_car(int id);\n\n\n\n}", "public interface IRecipeNetworkFetcher {\n void fetchRecipes(SuccessCallback<List<Recipe>> successCallback, ErrorCallback errorCallback);\n}", "@Override\n public void createRecipe(RecipeEntity recipeEntity)\n {\n this.save(recipeEntity);\n }", "@Override\r\n protected void readImpl() {\r\n _recipeId = readD();\r\n }", "public interface ItemService {\n\n //创建商品\n ItemModel createItem(ItemModel itemModel) throws BusinessException;\n\n //商品列表浏览\n List<ItemModel> listItem();\n\n //商品详情浏览\n ItemModel getItemById(Integer id);\n\n //验证item及其promo 缓存模型\n\n ItemModel getItemByIdInCache(Integer id);\n\n //库存扣减\n boolean decreaseStock(Integer itemId, Integer amount) throws BusinessException;\n\n //商品销量增加\n void increaseSales(Integer itemId, Integer amount) throws BusinessException;\n\n\n //异步更新库存\n boolean ansyDecreaseStock(Integer itemId, Integer amount);\n\n //库存回滚\n boolean increaseStock(Integer itemId, Integer amount) throws BusinessException;\n\n\n //初始化库存流水\n String initStockLog(Integer itemId,Integer amount);\n\n\n}", "public void addNewRecipe() {\r\n listOfRecipes.add(new Recipe().createNewRecipe());\r\n }", "public interface IngredientService {\n IngredientDTO getIngredient(Long id);\n\n Ingredient insert(IngredientDTO ingredientDTO);\n\n List<IngredientDTO> getAllIngredients();\n\n Ingredient update(IngredientDTO ingredientDTO);\n\n boolean delete(Long ingredientId);\n\n long getLastEditTimeIngredient();\n\n IngredientUnit insertIngredientUnit(IngredientUnitDTO ingredientUnitDTO);\n\n List<IngredientUnitDTO> getAllIngredientUnits();\n}", "ArrayList<RecipeObject> getRecipes();", "public interface BookManager {\n /**\n * Save.\n *\n * @param bookEntity\n * @return\n */\n BookEntity save(BookEntity bookEntity);\n\n /**\n * Find by id.\n *\n * @param id\n * @return\n */\n BookEntity findOne(long id);\n\n /**\n * Find all.\n *\n * @return\n */\n Iterable<BookEntity> findAll();\n}", "public interface CorretorService {\n\n /**\n * Save a corretor.\n * \n * @param corretor the entity to save\n * @return the persisted entity\n */\n Corretor save(Corretor corretor);\n\n /**\n * Get all the corretors.\n * \n * @return the list of entities\n */\n List<Corretor> findAll();\n\n /**\n * Get the \"id\" corretor.\n * \n * @param id the id of the entity\n * @return the entity\n */\n Corretor findOne(Long id);\n\n /**\n * Delete the \"id\" corretor.\n * \n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n * Search for the corretor corresponding to the query.\n * \n * @param query the query of the search\n * @return the list of entities\n */\n List<Corretor> search(String query);\n}", "public interface RoomManager {\n /**\n * Stores new room into database. Id for the new room is automatically\n * generated and stored into id attribute.\n *\n * @param room room to be created.\n * @throws NullPointerException when room is null.\n * @throws IllegalArgumentException when room has already assigned id.\n * @throws ServiceFailureException when db operation fails.\n */\n public Room createRoom(Room room);\n\n /**\n * Deletes room from database.\n *\n * @param room room to be deleted from db.\n * @throws NullPointerException when room is null.\n * @throws IllegalArgumentException when room has null id.\n * @throws ServiceFailureException when db operation fails.\n */\n public void deleteRoom(Room room);\n\n /**\n * Updates room in database.\n *\n * @param room updated room to be stored into database.\n * @throws NullPointerException when room is null.\n * @throws IllegalArgumentException when room has null id.\n * @throws ServiceFailureException when db operation fails.\n */\n public void updateRoom(Room room);\n\n /**\n * Returns room with given id.\n *\n * @param id primary key of requested room.\n * @return room with given id or null if such room does not exist.\n * @throws IllegalArgumentException when given id is null.\n * @throws ServiceFailureException when db operation fails.\n */\n public Room findRoomById(Long id);\n\n /**\n * Returns list of all rooms in the database.\n *\n * @return list of all rooms in database.\n * @throws ServiceFailureException when db operation fails.\n */\n public List<Room> findAllRooms();\n\n}", "public interface MtRelationService {\n\n List<MtRelation> getMRList(MtRelation mtRelation);\n List<MtRelation> getMRListByRelId(MtRelation mtRelation);\n void insertMRDetail(MtRelation mtRelation);\n MtRelation getMRDetailById(String id);\n void updateMRDetailById(MtRelation mtRelation);\n void delMRDetailById(MtRelation mtRelation);\n void mtMRDetailById(MtRelation mtRelation);\n}", "public interface RecipeDataSource {\n\n /**\n * Gets the recipes from the data source.\n *\n * @return the recipes from the data source.\n */\n Observable<List<Recipe>> getRecipes();\n}", "public List<Recipe> getAllRecipesFromRepository(){\n\t\tList<RecipeEntity> retrievedRecipes = recipesRepo.findAll();\n\t\tlog.debug(\"Number of retrieved recipes from DB: \"+retrievedRecipes.size());\n\t\t//Map all retrieved recipes entity to recipe instances\n\t\tList<Recipe> recipesList = new ArrayList<>(retrievedRecipes.size());\n\t\tretrievedRecipes.forEach(recipeEntity -> recipesList.add(mapToRecipeObject(recipeEntity)));\n\t\tlog.debug(\"Number of recipe entities mapped and stored to recipesList: \"+recipesList.size());\n\t\t//Return mapped recipes\n\t\treturn recipesList;\n\t}", "public interface CarDAO {\n\n /**\n *\n * @return all car object in the database.\n */\n Collection<Car> readCars();\n\n /**\n *\n * @param producer selected producer\n * @return return all car of the selected producer\n */\n Collection<Car> readCars(CarProducer producer);\n\n /**\n * Read a single car based on the plate number.\n * @param plateNo selected plate number\n * @return a car object. It should not return with null.\n * @throws CarNotFoundException if no car record is found in the database\n */\n Car readCar(String plateNo) throws CarNotFoundException;\n\n /**\n * Record car\n * @param car car which will be recorded\n * @throws CarRecordAlreadyExistsException if there is a car with the given plate number in the system.\n */\n void createCar(Car car) throws CarRecordAlreadyExistsException;\n}", "public interface MaterialDAO\n{\n /**\n * Register a new abstract material to the database\n *\n * @param title The material's title\n * @param publisher The material's publisher\n * @param releaseDate The material's release date\n * @param description The material's description\n * @param targetAudience The material's target audience\n * @param language The material's language\n * @param genre The material's genre\n * @param url The material's image link\n * @param keywords The material's keywords\n * @return the material id for the registered material\n * @throws SQLException if the given parameters violates the constraints, or object type in the database\n * the exception is thrown also if the connection to the database is not established\n */\n int create(String title, String publisher, String releaseDate,\n String description, String targetAudience, String language, String genre,\n String url, String keywords) throws SQLException;\n\n /**\n * Check the database for a material using that material's id\n *\n * @param materialID The material's id\n * @return true if the given material id matches that of an existed material id database\n * @throws SQLException if the given parameters violates the constraints, or object type in the database\n * the exception is thrown also if the connection to the database is not established\n */\n boolean materialExistInDB(int materialID) throws SQLException;\n\n /**\n * Returns the latest copy number of the given material.\n *\n * @param materialID materialID is the ID of the material you want to find the latest copy number of.\n * @return the copy number if fund\n * @throws NoSuchElementException NoSuchElementException is thrown if no Material with given materialID exists.\n * @throws SQLException if the given parameters violates the constraints, or object type in the database\n * the exception is thrown also if the connection to the database is not established\n */\n int getLatestCopyNo(int materialID)\n throws SQLException, NoSuchElementException;\n\n /**\n * Search the system to locate a material.\n *\n * @param title The material's title\n * @param language The material's language\n * @param keywords The material's keywords\n * @param genre The material's genre\n * @param targetAudience The material's target audience\n * @param type The material's type\n * @return list of material\n * @throws SQLException if the given parameters violates the constraints, or object type in the database\n * the exception is thrown also if the connection to the database is not established\n */\n List<Material> findMaterial(String title, String language, String keywords,\n String genre, String targetAudience, String type) throws SQLException;\n\n /**\n * Get the total number of copies of a material based on the given material id\n *\n * @param materialId The material's id\n * @return the numbers of copies\n */\n int getCopyNumberForMaterial(int materialId);\n\n /**\n * Get the total number of available copies of a material based on the given material id\n *\n * @param materialId The material's id\n * @return the numbers of available copies\n */\n int getNumberOfAvailableCopies(int materialId);\n\n /**\n * Checks if there are any available copies for a material based on the Given material id\n *\n * @param materialId The material's id\n * @return true if there any available copies for that material\n */\n boolean checkIfCopyAvailable(int materialId);\n\n /**\n * Get all the keywords related to a material based on the given material id\n *\n * @param materialId The material's id\n * @return a list of keywords\n */\n List<String> getKeywordsForMaterial(int materialId);\n\n /**\n * Get the total number of copies of a material based on the given material id\n *\n * @param materialID The material's id\n * @return the numbers of copies\n */\n int totalNumberOfCopies(int materialID);\n\n /**\n * Delete a material from database based on the given material id\n *\n * @param materialID The material's id\n */\n void deleteMaterial(int materialID);\n}", "public interface MedicineService {\n\n\t/**\n\t * Save an existing Medicine entity\n\t * \n\t */\n\tpublic void saveMedicine(Medicine medicine);\n\n\t/**\n\t * Delete an existing MedicineSymptom entity\n\t * \n\t */\n\tpublic Medicine deleteMedicineMedicineSymptoms(Integer medicine_id, Integer related_medicinesymptoms_id);\n\n\t/**\n\t * Delete an existing Medicine entity\n\t * \n\t */\n\tpublic void deleteMedicine(Medicine medicine_1);\n\n\t/**\n\t * Delete an existing Category entity\n\t * \n\t */\n\tpublic Medicine deleteMedicineCategory(Integer medicine_id_1, Integer related_category_id);\n\n\t/**\n\t * Save an existing Category entity\n\t * \n\t */\n\tpublic Medicine saveMedicineCategory(Integer id, Category related_category);\n\n\t/**\n\t * Load an existing Medicine entity\n\t * \n\t */\n\tpublic Set<Medicine> loadMedicines();\n\n\t/**\n\t * Save an existing MedicineSymptom entity\n\t * \n\t */\n\tpublic Medicine saveMedicineMedicineSymptoms(Integer id_1, MedicineSymptom related_medicinesymptoms);\n\n\t/**\n\t * Return a count of all Medicine entity\n\t * \n\t */\n\tpublic Integer countMedicines();\n\n\t/**\n\t */\n\tpublic Medicine findMedicineByPrimaryKey(Integer id_2);\n\n\t/**\n\t * Return all Medicine entity\n\t * \n\t */\n\tpublic List<Medicine> findAllMedicines(Integer startResult, Integer maxRows);\n}", "@Test\n\tpublic void testAddRecipe(){\n\t\t\n\t\ttestingredient1.setName(\"Peanut Butter\");\n\t\ttestingredient2.setName(\"Jelly\");\n\t\ttestingredient3.setName(\"Bread\");\n\t\t\n\t\t\n\t\tingredients.add(testingredient1);\n\t\tingredients.add(testingredient2);\n\t\tingredients.add(testingredient3);\n\t\t\n\t\ttestRecipe.setName(\"PB and J\");\n\t\ttestRecipe.setDescription(\"A nice, tasty sandwich\");\n\t\ttestRecipe.setIngredients(ingredients);\n\t\t\n\t\ttest2.saveRecipe(testRecipe);\n\t\t//test2.deleteRecipe(testRecipe);\n\t}", "public interface RetardManager\r\n extends GenericManager<Retard, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"RetardManager\";\r\n \r\n /**\r\n * Justification d'un retard\r\n * @param entity\r\n * @return\r\n */\r\n public Retard justifie(Retard entity);\r\n \r\n /**\r\n * \r\n * @param entity\r\n * @return\r\n */\r\n public Retard nonjustifie(Retard entity);\r\n\r\n}", "public interface PreparedDishHistoryDAO {\n int addPreparedDish(PreparedDish dish);\n List<PreparedDish> getAll();\n}", "@Override\n\tpublic void initRecipes()\n\t{\n\n\t}", "public interface ProductEntryController {\n\n Category addCategory(String categoryName) throws MelanieBusinessException;\n\n Category findCategory(int id,\n OperationCallBack<Category> operationCallBack)\n throws MelanieBusinessException;\n\n Category findCategory(String categoryName,\n OperationCallBack<Category> operationCallBack)\n throws MelanieBusinessException;\n\n List<Category> getAllCategories(\n OperationCallBack<Category> operationCallBack)\n throws MelanieBusinessException;\n\n OperationResult addProduct(String productName, int quantity, double price,\n Category category, String barcode) throws MelanieBusinessException;\n\n OperationResult removeProduct(int productId)\n throws MelanieBusinessException;\n\n List<Product> findAllProducts(\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n Product findProduct(int productId,\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n Product findProductByBarcode(String barcodDigits,\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n Product findProduct(String productName,\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n OperationResult updateProduct(Product product) throws MelanieBusinessException;\n\n void getLastInsertedProductId(OperationCallBack<Integer> operationCallBack) throws MelanieBusinessException;\n\n OperationResult saveCostEntries(List<CostEntry> costEntries) throws MelanieBusinessException;\n\n List<CostEntry> getAllCostEntries(\n OperationCallBack<CostEntry> operationCallBack)\n throws MelanieBusinessException;\n\n List<CostItem> getAllCostItems(\n OperationCallBack<CostItem> operationCallBack)\n throws MelanieBusinessException;\n}", "public interface BookStore {\r\n\r\n\t// CRUD - Create, Read, Update, Delete\r\n\t/**\r\n\t * create the specified book in the system.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with all attributes initialized.\r\n\t */\r\n\tvoid create(Book book);\r\n\r\n\t/**\r\n\t * read the specified book from the system.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with the isbn initialized.\r\n\t * @return a book instance with all attributes initialized or null if not found.\r\n\t */\r\n\tBook read(Book book);\r\n\r\n\t/**\r\n\t * update the specified book in the system according to the book parameter.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with all attributes initialized.\r\n\t */\r\n\tvoid update(Book book);\r\n\r\n\t/**\r\n\t * delete the specified book (by isbn) from the system.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with isbn initialized.\r\n\t */\r\n\tvoid delete(Book book);\r\n\r\n\t/**\r\n\t * read all books from the system\r\n\t * \r\n\t * @return a collection of all system books\r\n\t */\r\n\tCollection<Book> readAll();\r\n\r\n}", "protected abstract void initCache(List<RECIPE> recipes);", "public interface RecipeExecutor {\n\n /**\n * Submit a Test recipe for asynchronous execution.\n *\n * @param recipe Test recipe to be executed.\n * @return an instance of <code>Execution</code> containing the current state of execution\n */\n Execution submitRecipe(TestRecipe recipe);\n\n /**\n * Submit a Test recipe for synchronous execution.\n *\n * @param recipe Test recipe to be executed.\n * @return an instance of <code>Execution</code> containing the execution result\n */\n Execution executeRecipe(TestRecipe recipe);\n\n /**\n * @return List of all the execution stored on server\n */\n// List<Execution> getExecutions();\n\n /**\n * Adds an execution listener, used when a recipe is submitted for asynchronous execution.\n *\n * @param listener listener to be added\n */\n void addExecutionListener(ExecutionListener listener);\n\n /**\n * Removes the provided listener\n *\n * @param listener listener to be removed\n */\n void removeExecutionListener(ExecutionListener listener);\n\n /**\n * Adds a recipe filter for preprocessing generated recipes\n *\n * @param recipeFilter\n */\n\n void addRecipeFilter(RecipeFilter recipeFilter);\n\n /**\n * Removes an existing recipe filter\n *\n * @param recipeFilter\n */\n\n void removeRecipeFilter(RecipeFilter recipeFilter);\n\n /**\n * @return executionMode <code>ExecutionMode.LOCAL</code> if running locally, <code>ExecutionMode.LOCAL</code> otherwise (when running on TestEngine)\n */\n ExecutionMode getExecutionMode();\n}", "public interface ReminderRepository {\n public void add(ReminderEntity reminderEntity);\n public void update(ReminderEntity reminderEntity);\n public ReminderEntity remove(Integer id);\n public ReminderEntity find(Integer id);\n public List<ReminderEntity> findAll();\n}", "public interface GirlService extends GenericManager<Girl> {\n\n public Page<Girl> findAll(Integer appointment,Girl girl, Integer currentPage, Integer pageSize) throws Exception;\n\n public Integer findSize(Long id);\n\n public Result saveGirl(Girl girl, City city, Province province, MultipartHttpServletRequest multipartRequest);\n\n}", "@Test\n public void createRecipeTest() throws BusinessLogicException {\n RecipeEntity newEntity = factory.manufacturePojo(RecipeEntity.class);\n newEntity.getIngredientes().add(new IngredientEntity());\n RecipeEntity persistence=recipeLogic.createRecipe(newEntity);\n Assert.assertEquals(persistence.getId(), newEntity.getId());\n Assert.assertEquals(persistence.getDescription(), newEntity.getDescription());\n Assert.assertEquals(persistence.getName(), newEntity.getName());\n }", "public interface IInventoryDao {\n\n\t// public boolean ingredientAvailable(String name, int count);\n\tpublic List<InventoryEntry> getInventoryEntries();\n\n\tpublic void removeIngredients(Map<String, Integer> ingredientMap);\n\n\tpublic BigDecimal getIngredientCost(String name);\n\n\tpublic int getIngredientCount(String iname);\n\n\tpublic InventoryEntry getInventoryEntry(String name);\n\n\tpublic void updateInventoryEntry(InventoryEntry entry);\n}", "public interface CategoryManager {\n public List<Category> getAllCategories();\n\n public Category getCategoryById(int cid);\n\n public int addCategory(String cname);\n\n public int updateCategoryById(int cid, String cname);\n\n public int deleteCategoryById(int cid);\n}", "public interface IAcquestRepository {\n //createAcquest is used to create a new acquest in database\n boolean createAcquest(Acquest acquest);\n //getAcquest is used for getting selected acquest from database\n Acquest getAcquest(int Acquest_id);\n //getAllAcquests is used to get all acquests from database\n List<Acquest> getAllAcquests();\n}", "public interface Manager {\n\n}", "public interface IngredientList {\r\n\r\n}", "public void saveRecipe(Recipe recipe) {\r\n \t\tif (!recipeList.contains(recipe)) {\r\n \t\t\trecipeList.add(recipe);\r\n \t\t}\r\n \t\tpersistenceManager.save(recipe);\r\n \t}", "public interface BookManager {\n public int count();\n public Book getBook(int index);\n public Book createBook();\n public ArrayList<Book> getAllBooks();\n public void removeBook(Book book);\n public void moveBook (int from, int to);\n public int getMinPrice();\n public int getMaxPrice();\n public float getMeanPrice();\n public int getTotalCost();\n public void saveChanges(Context context);\n}", "public interface IngredientController {\n /**\n * Searches for Ingredients that match the specified name.\n * @param name Name of an ingredient to search for.\n * @return A list of ingredients represented as Maps (JSON)\n */\n List<Map<String, Object>> searchIngredient(String name);\n\n /**\n * Gets teh ingredient with the given ID. Returns null if none exists.\n * @param foodID the ID of the ingredient to search for.\n * @return The ingredient attribute names mapped to values.\n */\n Map<String, Object> getIngredient(long foodID);\n}", "public interface InventoryDataManager{\n\n /**\n * Returns the Lot records with entity type matching the given parameter.\n * \n * @param type\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityType(String type, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type matching the given\n * parameter.\n * \n * @param type\n * @return\n */\n public long countLotsByEntityType(String type) throws MiddlewareQueryException;\n\n /**\n * Returns the Lot records with entity type and entity id matching the given\n * parameters.\n * \n * @param type\n * @param entityId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityTypeAndEntityId(String type, Integer entityId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type and entity id matching\n * the given parameters.\n * \n * @param type\n * @param entityId\n * @return\n */\n public long countLotsByEntityTypeAndEntityId(String type, Integer entityId) throws MiddlewareQueryException;\n\n /**\n * Returns the Lot records with entity type and location id matching the\n * given parameters.\n * \n * @param type\n * @param locationId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityTypeAndLocationId(String type, Integer locationId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type and location id\n * matching the given parameters.\n * \n * @param type\n * @param locationId\n * @return\n */\n public long countLotsByEntityTypeAndLocationId(String type, Integer locationId) throws MiddlewareQueryException;\n\n /**\n * Returns the Lot records with entity type, entity id, and location id\n * matching the given parameters.\n * \n * @param type\n * @param entityId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityTypeAndEntityIdAndLocationId(String type, \n Integer entityId, Integer locationId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type, entity id, and\n * location id matching the given parameters.\n * \n * @param type\n * @param entityId\n * @param locationId\n * @return\n */\n public long countLotsByEntityTypeAndEntityIdAndLocationId(String type, Integer entityId, Integer locationId) throws MiddlewareQueryException;\n\n /**\n * Returns the actual transaction balance of the Lot with the specified\n * lotId. Lot balance is computed from the sum of all its related\n * transaction records' quantity. Only committed transactions (nstat=1) are\n * included in the computation.\n * \n * @param lotId\n * - id of the Lot record\n * @return The actual transaction balance of all the specified Lot\n */\n public Long getActualLotBalance(Integer lotId) throws MiddlewareQueryException;\n\n /**\n * Returns the available transaction balance of the Lot with the specified\n * lotId. Lot balance is computed from the sum of all its related\n * transaction records' quantity. All non-cancelled transactions (nstat!=9)\n * are included in the computation.\n * \n * @param lotId\n * - id of the Lot record\n * @return The available transaction balance of all the specified Lot\n */\n public Long getAvailableLotBalance(Integer lotId) throws MiddlewareQueryException;\n\n /**\n * Given a valid Lot object, add it as a new record to the database. It is\n * assumed that the entity referenced by the Lot is already present in the\n * database.\n * \n * @param lot\n * @return Returns the id of the {@code Lot} record added\n * @throws MiddlewareQueryException\n */\n public Integer addLot(Lot lot) throws MiddlewareQueryException;\n\n /**\n * Given a List of valid Lot objects, add them as new records to the\n * database. It is assumed that the entities referenced by the lots are\n * already present in the database.\n * \n * @param lots\n * @return Returns the ids of the {@code Lot} records added\n * @throws MiddlewareQueryException\n */\n public List<Integer> addLot(List<Lot> lots) throws MiddlewareQueryException;\n\n /**\n * Given a valid Lot object which represents an existing record in the\n * database, update the record to the changes contained in the given object.\n * \n * @param lot\n * @return Returns the id of the updated {@code Lot} record\n * @throws MiddlewareQueryException\n */\n public Integer updateLot(Lot lot) throws MiddlewareQueryException;\n\n /**\n * Given a List of valid Lot objects, each of them representing an existing\n * record in the database, update the records to the changes contained in\n * the given objects.\n * \n * @param lots\n * @return Returns the ids of the updated {@code Lot} records\n * @throws MiddlewareQueryException\n */\n public List<Integer> updateLot(List<Lot> lots) throws MiddlewareQueryException;\n\n /**\n * Given a valid Transaction record, add it as a new record to the database.\n * \n * @param transaction\n * @return Returns the id of the {@code Transaction} record added\n * @throws MiddlewareQueryException\n */\n public Integer addTransaction(Transaction transaction) throws MiddlewareQueryException;\n\n /**\n * Given a List of valid Transaction records, add them as new records to the\n * database.\n * \n * @param transactions\n * @return Returns the ids of the {@code Transaction} records added\n * @throws MiddlewareQueryException\n */\n public List<Integer> addTransaction(List<Transaction> transactions) throws MiddlewareQueryException;\n\n /**\n * Given a valid Transaction record, update the database to the changes from\n * the object. Note that the Lot can not be changed.\n * \n * @param transaction\n * @return Returns the id of the updated {@code Transaction} record\n * @throws MiddlewareQueryException\n */\n public Integer updateTransaction(Transaction transaction) throws MiddlewareQueryException;\n\n /**\n * Givan a List of valid Transaction objects, update their corresponding\n * records in the database. Note that the Lot of the Transactions can not be\n * changed.\n * \n * @param transactions\n * @return Returns the ids of the updated {@code Transaction} records\n * @throws MiddlewareQueryException\n */\n public List<Integer> updateTransaction(List<Transaction> transactions) throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction object which represents the record identified by\n * the given id.\n * \n * @param id\n * @return\n */\n public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;\n\n /**\n * Return all Transaction records associated with the Lot identified by the\n * given parameter.\n * \n * @param id\n * @return Set of Transaction POJOs representing the records\n */\n public Set<Transaction> getTransactionsByLotId(Integer id) throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as reserve\n * transactions. The records have status = 0 and negative quantities.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return\n */\n public List<Transaction> getAllReserveTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as reserve\n * transactions. The records have status = 0 and negative quantities.\n * \n * @return\n */\n public long countAllReserveTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as deposit\n * transactions. The records have status = 0 and positive quantities.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Transaction POJOs\n */\n public List<Transaction> getAllDepositTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as deposit\n * transactions. The records have status = 0 and positive quantities.\n * \n * @return\n */\n public long countAllDepositTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as reserve\n * transactions (the records have status = 0 and negative quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Transaction POJOs\n */\n public List<Transaction> getAllReserveTransactionsByRequestor(Integer personId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as reserve\n * transactions (the records have status = 0 and negative quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @return\n */\n public long countAllReserveTransactionsByRequestor(Integer personId) throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as deposit\n * transactions (the records have status = 0 and positive quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Transaction POJOs\n */\n public List<Transaction> getAllDepositTransactionsByDonor(Integer personId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as deposit\n * transactions (the records have status = 0 and positive quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @return\n */\n public long countAllDepositTransactionsByDonor(Integer personId) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all uncommitted Transaction records. Included\n * information are: commitment date, quantity of transaction, scale of the\n * lot of the transaction, location of the lot, comment on the lot.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of TransactionReportRow objects\n */\n public List<TransactionReportRow> generateReportOnAllUncommittedTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Return the number of all Transaction records which are uncommitted\n * (status is equal to zero).\n * \n * @return\n */\n public long countAllUncommittedTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Transaction records classified as reserve\n * transactions. Included information are: commitment date, quantity of\n * transaction, scale of the lot of the transaction, location of the lot,\n * comment on the lot, entity id of the lot.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of TransactionReportRow objects\n */\n public List<TransactionReportRow> generateReportOnAllReserveTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Transaction records classified as withdrawal\n * transactions (quantity is negative). Included information are: commitment\n * date, quantity of transaction, scale of the lot of the transaction,\n * location of the lot, comment on the lot, entity id of the lot, person\n * responsible for the transaction.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of TransactionReportRow objects\n */\n public List<TransactionReportRow> generateReportOnAllWithdrawalTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records classified as withdrawal\n * transactions (quantity is negative).\n * \n * @return\n */\n public long countAllWithdrawalTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns all Lot records in the database.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Lot POJOs\n */\n public List<Lot> getAllLots(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Counts the lots in the database.\n * \n * @return The number of lots in the database.\n */\n public long countAllLots() throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records. Included information are: lot\n * balance, location of the lot, and scale of the lot.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnAllLots(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all dormant Lot records given a specific year. All\n * lots with non-zero balance on or before the given year are retrieved as\n * dormant lots. Included information are: lot balance, location of the lot,\n * and scale of the lot.\n * \n * @param year\n * - filter dormant lots depending on the year specified\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnDormantLots(int year, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report about Lots with zero balance Included information are:\n * lot id of the lot, entity id of the lot, lot balance, location of the\n * lot, and scale of the lot.\n * \n * @return List of LotReportRow\n * @throws MiddlewareQueryException\n */\n public List<LotReportRow> generateReportOnEmptyLots(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report about Lots with balance less than the amount specified\n * Included information are: lot id of the lot, entity id of the lot, lot\n * balance, location of the lot, and scale of the lot.\n * \n * @param minAmount\n * - value specified\n * @return List of LotReportRow objects\n * @throws MiddlewareQueryException\n */\n public List<LotReportRow> generateReportOnLotsWithMinimumAmount(long minimumAmount, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records associated with the given entity\n * type. Included information are: lot id of the lot, entity id of the lot,\n * lot balance, location of the lot, and scale of the lot.\n * \n * @param type\n * - entity type of the Lots to generate the report from\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnLotsByEntityType(String type, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records associated with the given entity type\n * and entityId. Included information are: lot id of the lot, entity id of\n * the lot, lot balance, location of the lot, and scale of the lot.\n * \n * @param type\n * - entity type of the Lots to generate the report from\n * @param entityId\n * - entity Id of the Lot to generate the report from\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnLotsByEntityTypeAndEntityId(String type, Integer entityId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records associated with the given entity type\n * and a list of entityIds. Included information are: lot id of the lot,\n * entity id of the lot, lot balance, location of the lot, and scale of the\n * lot.\n * \n * @param type\n * - entity type of the Lots to generate the report from\n * @param entityIds\n * - a List of entity Ids of the Lots to generate the report from\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnLotsByEntityTypeAndEntityId(String type, List<Integer> entityIds, int start, int numOfRows) throws MiddlewareQueryException;\n\n}", "void deleteRecipe(RecipeObject recipe);", "public interface IMatchmaking {\n \n /**\n *\n * Return collection of matchmaking managers\n *\n * @return Allocated matchmaking managers\n */\n Collection<MatchmakingManager> getManagers();\n \n /**\n *\n * Return specific matchmaking manager by matchmaking id\n *\n * @param matchmakingId String which can identify matchmaking manager\n * @return Matchmaking manager\n */\n MatchmakingManager getManager(String matchmakingId);\n \n}", "RecipeInformationObject getRecipeInformation(int recipeId) throws EntityException, EntityNotFoundException;", "public List<Recipe> findAllRecipe(){\n\t\treturn sessionFactory.openSession().createQuery(\"from Recipe\").list();\n\t\t\n\t}", "void createRecipe(Recipe recipe) throws ServiceFailureException;", "public interface ItemService {\n\n Item getItemById(Long itemId);\n\n EasyUIDataGridResult getItemList(int page, int row);\n\n E3Result addItem(Item item, String desc);\n}", "public interface RestaurantDao {\n\n /**\n * Get restaurant details for a restaurant\n * @param userName\n * @param password\n * @return\n */\n public RestaurantDetails getRestaurantDetails(String userName, String password);\n\n /**\n * Sign Up for a new restaurant\n * @param details\n * @return\n */\n public int signUp(RestaurantDetails details);\n\n /**\n * Update Restaurant Details\n * @param details\n * @return\n */\n public int updateDetails(RestaurantDetails details);\n}", "public interface RentalFactory {\n\n Rental createRental(String pickUpdate, String returnDate, List<PaymentMethod> paymentMethod);\n\n}", "public interface RoomManager {\n /**\n *\n * @param room\n */\n public void createRoom(Room room);\n\n /**\n *\n * @param room\n */\n public void updateRoom(Room room);\n\n /**\n *\n * @param room\n */\n public void deleteRoom(Room room);\n\n /**\n *\n * @return\n */\n public List<Room> findAllRooms();\n\n /**\n *\n * @param id\n * @return\n */\n public Room getRoomById(Long id);\n}", "public interface IShiftHandle\r\n{\r\n /**\r\n * Add a new shift to the model\r\n * @param shiftToAdd a shift to add\r\n */\r\n void addShift(Shift shiftToAdd);\r\n\r\n /**\r\n *\r\n * @param userName the represent the all shifts for the specific user\r\n * @return ResultSet that represent all the shifts for the specific user\r\n * @throws GetAllException\r\n */\r\n ResultSet getAllShift(String userName) throws GetAllException;\r\n}", "public interface RecipesForCakes {\n String bakeCake();\n}", "public interface RefuelingDAO extends DataAccessObject<Refueling> {\n \n /**\n * \n * @param ride the ride in which the car was refueled\n * @param price the cost of the new refueling\n * @return a Refueling object representing the refueling in the db\n * @throws DataAccessException \n */\n public Refueling createRefueling(Ride ride, Integer price) throws DataAccessException;\n \n public Refueling createRefueling(Ride ride, Integer price, Double litre, String type, Boolean approved, Double mileage, Integer proof) throws DataAccessException;\n \n /**\n *\n * @param rideId \n * @param price\n * @param litre\n * @param type\n * @return\n * @throws DataAccessException\n */\n public Refueling createRefueling(Integer rideId, Integer price, Double litre, String type) throws DataAccessException;\n /**\n * \n * @param id the id of the Refueling to find in the db\n * @return a Refueling object representing the Refueling in the db; null if not found\n * @throws DataAccessException \n */\n public Refueling getRefueling (Integer id) throws DataAccessException;\n \n /**\n * \n * @param ride the Ride for which Refuelings are sought\n * @return a list of all Refuelings done during the given Ride \n * @throws DataAccessException \n */\n public List<Refueling> getRefuelingsByRide(Ride ride) throws DataAccessException;\n \n /**\n * Returns all refuelings that are still pending, so approved = null\n * \n * @return a list of all Refuelings done during the given Ride \n * @throws DataAccessException \n */\n public List<Refueling> getPendingRefuelings() throws DataAccessException; \n /**\n * \n * @param refueling an adapted Refueling object to update in the db\n * @throws DataAccessException \n */\n public void updateRefueling (Refueling refueling) throws DataAccessException;\n \n /**\n * \n * @param type the new type for the refueling\n * @param id the db id of the refueling to change its type \n * @throws DataAccessException \n */\n public void updateRefuelingType (String type, Integer id) throws DataAccessException;\n \n /**\n * \n * @param price the new price for the refueling\n * @param id the db id of the refueling to change its price\n * @throws DataAccessException \n */\n public void updateRefuelingPrice (Integer price, Integer id) throws DataAccessException;\n \n /**\n * \n * @param litre the new number of litres for the refueling\n * @param id the db id of the refueling to update\n * @throws DataAccessException \n */\n public void updateRefuelingLitre (Double litre, Integer id) throws DataAccessException;\n \n /**\n * \n * @param id the id of the Refueling to delete from the db\n * @throws DataAccessException \n */\n public void deleteRefueling (Refueling refueling) throws DataAccessException;\n \n public Refueling createRefueling(Integer rideId, Integer price, Double litre, String type, Boolean approved, Double mileage, Integer proof) throws DataAccessException;\n\n public void deleteRefueling (Integer id) throws DataAccessException;\n \n public List<Refueling> getRefuelingsByUser(Integer user, Long from, Long to) throws DataAccessException;\n\n}", "public interface MaterialDao {\n\n boolean createMaterial(Material material);\n\n boolean materialExists(Material material);\n\n Material getMaterial(String value, Constants.QUERYID isId);\n\n Material getMaterial(Material material);\n}", "@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}", "public interface CRUDProduto {\r\n \r\n public boolean save(Produto produto);\r\n\r\n public boolean update(Produto produto);\r\n\r\n public boolean delete(Produto produto);\r\n\r\n public Produto get(long id);\r\n\r\n public List<Produto> getAll();\r\n}", "public List<Recipe> getRecipes()\n {\n return _recipes;\n }", "public void addRecipe(Recipe recipe)\n {\n recipe.setDataSource(this);\n _recipes.add(recipe);\n }", "List<RecipeObject> searchRecipes(String query, String number, String offset, String diet, String intolerances, String type, String cuisine, String ingredients) throws EntityException;", "public interface RoleService {\n\n /**\n * Return all available roles in the database.\n * @return\n */\n Collection<Role> getRoles();\n\n /**\n * Insert role into database.\n * @param role\n * @throws DataException\n */\n void insertRole(Role role) throws DataException;\n\n /**\n * Remove Role from database.\n * @param id\n * @throws DataException\n */\n void removeRole(String id) throws DataException;\n\n /**\n * Remove all roles from database.\n * @throws DataException\n */\n void removeAll() throws DataException;\n\n}", "public Recipe getRecipe(){\n\t\tRecipe recipe = new Recipe();\n\t\trecipe.setName(name);\n\t\trecipe.setNumPersons(numPersons);\n\t\trecipe.setPrepTime(prepTime);\n\t\trecipe.setRestTime(restTime);\n\t\trecipe.setCookingTime(cookingTime);\n\t\tHashMap<Ingredient, Quantity> ingredients = new HashMap<Ingredient,Quantity>();\n\t\tfor(int i = 0; i<ingredientsList.size(); i++){\n\t\t\tingredients.put(ingredientsList.get(i), quantities.get(i));\n\t\t}\n\t\trecipe.setIngredients(ingredients);\n\t\trecipe.setSteps(steps);\n\t\treturn recipe;\n\t}", "public interface CategoryDAO extends DAO<AbsractCategory> {\n\n /**\n * getting exactly one category specified by the given id\n *\n * @param identificaitonNumber of the category to search for\n * @return exactely one category\n * @throws PersistenceException\n */\n AbsractCategory searchByID(int identificaitonNumber) throws PersistenceException;\n\n /**\n * getting a list of all equipment categorys\n *\n * @return a list of all equipment categorys like, kurzhantel, langhantel, springschnur ...\n * @throws PersistenceException\n */\n List<EquipmentCategory> getAllEquipment() throws PersistenceException;\n\n /**\n * getting a list of all muscle groups\n *\n * @return a list of all muslce groups like, bauchmuskeln, oberschenkel, unterschenkel ...\n * @throws PersistenceException\n */\n List<MusclegroupCategory> getAllMusclegroup() throws PersistenceException;\n\n /**\n * getting a list of all trainingstypes\n *\n * @return a list of all trainingstypes: ausdauer, kraft, balance, flexibilitaet\n * @throws PersistenceException\n */\n List<TrainingsCategory> getAllTrainingstype() throws PersistenceException;\n\n}", "public interface ICommandeDao {\n public List<Commande> findAllCommandes();\n\n public Commande findCommandeById(int idCommande);\n\n public List<Commande> findCommandeByIdProduit(Integer idProduit);\n \n public List<Commande> findCommandeByIdUtilisateur(Integer idUtilisateur);\n\n public Commande createCommande(Commande commande);\n\n public Commande updateCommande(Commande commande);\n\n public boolean deleteCommande(Commande commande);\n}", "Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);", "public interface RelationshipService {\n int add(Relationship relationship);\n}", "public interface IGenreDAO {\n List<Genre> listAll() throws MovieException;\n Genre get(Genre genre) throws MovieException;\n void add(Genre genre) throws MovieException;\n void remove(Genre genre) throws MovieException;\n void change(Genre genre) throws MovieException;\n void close() throws MovieException;\n\n}", "public interface WarehouseService {\n\n /**\n * This method returns all warehouses data from database by calling respective repository methods.\n *\n * @return set of {@link Warehouse}s\n */\n Set<Warehouse> getAllWarehouses();\n\n}", "@Override\n public void apply(ResourceManager manager) {\n ExtendedFoodRegistry.clearExtendedFood();\n\n for (Identifier identifier : manager.findResources(\"rot\", path -> path.endsWith(\".json\"))) {\n HardcoreMod.LOGGER.debug(\"Processing resource: {}\", identifier.toString());\n\n try (InputStream stream = manager.getResource(identifier).getInputStream()) {\n JsonParser parser = new JsonParser();\n JsonObject root = parser.parse(new JsonReader(new InputStreamReader(stream))).getAsJsonObject();\n\n Set<Map.Entry<String, JsonElement>> entries = root.entrySet();\n for (Map.Entry<String, JsonElement> entry : entries) {\n String key = entry.getKey();\n Item item = Registry.ITEM.get(new Identifier(key));\n if (!Registry.ITEM.getId(item).toString().equals(key)) {\n throw new Exception(\"You fucked up putting this in: \" + key);\n }\n\n Gson gson = new Gson();\n JsonObject object = entry.getValue().getAsJsonObject();\n ExtendedFoodComponent component = gson.fromJson(object, ExtendedFoodComponent.class);\n // TODO: Requires input validation\n if (component != null) {\n ExtendedFoodRegistry.registerExtendedFood(item, component);\n } else {\n throw new Exception(\"Bad data in: \" + key);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public interface RoleService {\n\n /**\n * Returns a persistent Role object identified by the specified id.\n * If no Role with that id exists, null is returned.\n *\n * @param id the Id of the Role to retrieve.\n *\n * @return a persistent Role object identified by the specified id.\n * If no Role with that id exists, null is returned.\n */\n Role findById(int id);\n\n /**\n * Returns a persistent Role object identified by the specified type.\n * If no Role of that type exists, null is returned.\n *\n * @param type The type of the Role to retrieve.\n *\n * @return a persistent Role object identified by the specified type.\n * If no Role of that type exists, null is returned.\n */\n Role findByType(RoleType type);\n\n /**\n * Returns all of the Roles found in the backing store as a List.\n *\n * @return all of the Roles found in the backing store as a List.\n */\n List<Role> findAll();\n\n /**\n * Returns a Set containing the requested Role if it was found. Otherwise\n * and empty set is returned.\n *\n * @param type the Role to get\n *\n * @return a Set containing the requested Role or an empty set if the\n * requested Role doesn't exist.\n */\n Set<Role> getRoleSet(RoleType type);\n}", "public interface IMenuService {\n int deleteByPrimaryKey(Long id);\n\n int insert(Menu record);\n\n Menu selectByPrimaryKey(Long id);\n\n List<Menu> selectAll();\n\n int updateByPrimaryKey(Menu record);\n\n List<Menu> getRootMenu();\n\n List<Menu> selectByPrentIdKey(Long prentid);\n}", "public interface OnRecipeClickListener {\n void onRecipeSelected(Recipe recipe);\n }", "@FXML\n public void saveMeal(){\n String mealName = mealNameField.getText().trim();\n String method = methodField.getText();\n\n //if any of the information is not available then throw an error\n if (mealName.trim().equals(\"\") || method.trim().equals(\"\") || (newIngredients.size() == 0)){\n //no ingredients, or methods or meal name then display error box\n mealBox.errorDiaglogBox(\"Incomplete meal\", \"Please ensure that there is a meal name, \" +\n \" meal ingredients and meal method entered\");\n } else {\n //create a recipe instance\n Recipe newRecipe = new Recipe(1, mealName, method, newIngredients);\n\n //create a new servcie to save the new meal to the database in a background thread\n CreateMealService service = new CreateMealService(newRecipe);\n if (service.getState() == Service.State.SUCCEEDED){\n service.reset();\n service.start();\n } else if (service.getState() == Service.State.READY){\n service.start();\n }\n\n //get the ID of the newly saved meal in the database and set it to the new Recipe\n service.setOnSucceeded(new EventHandler<WorkerStateEvent>() {\n @Override\n public void handle(WorkerStateEvent workerStateEvent) {\n int recipeId = service.getValue();\n //if the ID is -1 then there has been an issue saving the meal\n if (recipeId < 0) {\n System.out.println(\"Problem saving meal to database\");\n mealBox.errorDiaglogBox(\"Saving Meal\", \"Problem saving meal to database,\" +\n \"please contact program administrator\");\n }\n newRecipe.setId(recipeId);\n }\n });\n\n //clear the text areas\n mealNameField.clear();\n methodField.clear();\n newIngredients.clear();\n searchIngredient.clear();\n ingredientQuantityInput.clear();\n //this will unfilter the ingredients to add list\n ingredientsList.setItems(ingredientsFromDatabase);\n\n //Add the new meal / Recipe to the recipes List (no need to reloaded from database)\n recipesFromDatabase.add(newRecipe);\n }\n }", "public interface ITaskService {\n\n List<Task> selectAll();\n\n Task selectByPrimaryKey(Integer id);\n\n int runTest(String host, String data, String comment);\n\n List<ResultWithBLOBs> selectResult(Integer id, String caseIds);\n\n int deleteTask(Integer ruleId);\n\n}", "interface StuffDao {\n List<Stuff> loadAllStuff();\n}", "public interface DatabaseManager {\r\n\r\n // NOTE: this is a draft of the interface. More methods will likely be\r\n // added.\r\n\r\n /**\r\n * Uploads the specified feature to the database.\r\n * \r\n * @param file the shapefile (*.shp) to upload\r\n * @param project the project to associate the shapefile with\r\n * @return the id of the feature in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadFeature(File file, String project) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified modis tile to the database.\r\n * \r\n * @param file the .hdf to upload\r\n * @param product the modis product\r\n * @param date the date the data was captured\r\n * @param downloaded the date the data was downloaded from the host\r\n * @param horz the horizontal tile number\r\n * @param vert the vertical tile number\r\n * @return the id of the Modis raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadModis(File file, ModisProduct product, DataDate date, DataDate updated, int horz, int vert) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified ETo file to the database.\r\n * \r\n * @param file the\r\n * @param date\r\n * @param updated\r\n * @return the id of the ETo raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEto(File file, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified TRMM file to the database.\r\n * \r\n * @param file\r\n * @param date\r\n * @param updated\r\n * @return the id of the TRMM raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadTrmm(File file, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified projected Modis product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param product\r\n * @param date\r\n * @param updated\r\n * @return the id of the projected Modis raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedModis(File file, String project, ModisProduct product, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified projected ETo product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the projected ETo raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedEto(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the projected TRMM product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the TRMM raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedTrmm(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified ETa product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the ETa raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEta(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified EVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the EVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDWI5 product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDWI5 raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdwi5(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDWI6 product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDWI6 raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdwi6(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified SAVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the SAVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadSavi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified feature and places it in the specified file in\r\n * the shapefile.\r\n * \r\n * @param file the location to save the feature\r\n * @param id the id of the feature\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadFeature(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified Modis tile from the database.\r\n * \r\n * @param file\r\n * @param product\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadModis(File file, ModisProduct product, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified ETo raster from the database and saves it to the\r\n * specified file.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEto(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified TRMM raster from the database and saves it to the\r\n * specified file.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadTrmm(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected Modis product from the database.\r\n * \r\n * @param file\r\n * @param product\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedModis(File file, ModisProduct product, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected ETo product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedEto(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected TRMM product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedTrmm(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified ETa product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEta(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified EVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEvi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdvi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDWI5 product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdwi5(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDWI6 product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdwi6(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified SAVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadSavi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Returns the id of the MODIS raster for the specified product and date.\r\n * \r\n * @param product\r\n * @param date\r\n * @param horz\r\n * @param vert\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the ETo for the specified date.\r\n * \r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEtoId(DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the TRMM for the specified date.\r\n * \r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getTrmmId(DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected Modis raster for the specified\r\n * project, product, and date.\r\n * \r\n * @param project\r\n * @param product\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedModisId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected ETo raster for the specified project\r\n * and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedEtoId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected TRMM raster for the specified project\r\n * and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedTrmmId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the ETa raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEtaId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the EVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEviId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdviId(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDWI5 raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdwi5Id(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDWI6 raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdwi6Id(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the SAVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getSaviId(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Uploads the specified zonal statistics.\r\n * \r\n * @param project\r\n * @param feature\r\n * @param zoneField\r\n * @param zone\r\n * @param date\r\n * @param index\r\n * @param zonalStatistics\r\n */\r\n void uploadZonalStatistic(String project, String feature, String zoneField,\r\n String zone, DataDate date, EnvironmentalIndex index,\r\n ZonalStatistic zonalStatistics) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the zonal statistics for the specified parameters.\r\n * \r\n * @param project\r\n * @param feature\r\n * @param zoneField\r\n * @param zone\r\n * @param date\r\n * @param index\r\n * @return the id or -1 if it is not found\r\n */\r\n int getZonalStatisticId(String project, String feature, String zoneField,\r\n String zone, DataDate date, EnvironmentalIndex index)\r\n throws SQLException;\r\n\r\n /**\r\n * Returns zonal statistics for the specified zonal statistic id.\r\n * \r\n * @param id\r\n * @return zonal statistics\r\n * @throws SQLException\r\n */\r\n ZonalStatistic getZonalStatistic(int id) throws SQLException;\r\n}", "void updateRecipe(Recipe recipe) throws ServiceFailureException;", "public interface OnRecipeSelectionListener {\n // TODO: Update argument type and name\n public void OnRecipeSelected();\n }", "public ArrayList<IngredientRecipePOJO> getAllIngredientRecipeByIdRecipe(String idRecipe);" ]
[ "0.74440974", "0.7121265", "0.6482664", "0.626101", "0.6087059", "0.60679877", "0.6022531", "0.601023", "0.58926314", "0.5867275", "0.5746113", "0.573583", "0.5726893", "0.5710004", "0.5696014", "0.5691852", "0.5681866", "0.5675599", "0.5672858", "0.5670749", "0.56651056", "0.5655749", "0.5642492", "0.563845", "0.5635389", "0.5614283", "0.560992", "0.5607735", "0.56067485", "0.56030357", "0.5598061", "0.5591772", "0.55896646", "0.55798995", "0.55762154", "0.55534226", "0.55348516", "0.5527777", "0.5524909", "0.55227566", "0.5509371", "0.55081594", "0.54855376", "0.548477", "0.54830277", "0.5480995", "0.548055", "0.5464539", "0.5461299", "0.545389", "0.5450821", "0.5448317", "0.5444268", "0.54351425", "0.542938", "0.54293466", "0.541755", "0.541723", "0.54166025", "0.5412253", "0.54106426", "0.5408573", "0.54081154", "0.53980917", "0.5393098", "0.5387544", "0.53867006", "0.5383994", "0.53704596", "0.5369976", "0.5365611", "0.53655094", "0.53560203", "0.535109", "0.5350057", "0.53430736", "0.53363365", "0.5335382", "0.53333706", "0.53329337", "0.53165084", "0.5310575", "0.5308906", "0.5308892", "0.53075194", "0.53063315", "0.5305201", "0.5301015", "0.5300629", "0.52992743", "0.5293527", "0.52926534", "0.5284255", "0.5282928", "0.52746683", "0.5270057", "0.52629495", "0.52617896", "0.5260004", "0.5254899" ]
0.7922865
0
creates a recipe in DB
void createRecipe(Recipe recipe) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void createRecipe(RecipeEntity recipeEntity)\n {\n this.save(recipeEntity);\n }", "public void insert(Recipe recipe ) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tsession.save(recipe);\n\t\ttx.commit();\n\t\tsession.close();\n\t}", "Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);", "public long insertRecipe(Recipe recipe)\n {\n ContentValues cv = new ContentValues();\n cv.put(RECIPE_NAME, recipe.getRecipeName());\n cv.put(RECIPE, recipe.getRecipe());\n cv.put(PROCESS, recipe.getProcess());\n cv.put(NOTES, recipe.getNotes());\n this.openWriteableDB();\n long rowID = db.insert(TABLE_RECIPES, null, cv);\n this.closeDB();\n\n return rowID;\n }", "RecipeObject addRecipe(RecipeObject recipe);", "@Test\n\tpublic void testAddRecipe(){\n\t\t\n\t\ttestingredient1.setName(\"Peanut Butter\");\n\t\ttestingredient2.setName(\"Jelly\");\n\t\ttestingredient3.setName(\"Bread\");\n\t\t\n\t\t\n\t\tingredients.add(testingredient1);\n\t\tingredients.add(testingredient2);\n\t\tingredients.add(testingredient3);\n\t\t\n\t\ttestRecipe.setName(\"PB and J\");\n\t\ttestRecipe.setDescription(\"A nice, tasty sandwich\");\n\t\ttestRecipe.setIngredients(ingredients);\n\t\t\n\t\ttest2.saveRecipe(testRecipe);\n\t\t//test2.deleteRecipe(testRecipe);\n\t}", "@Test\n public void createAndRetrieveRecipe() {\n User trex = new User(\"[email protected]\", \"password\", \"T. Rex\").save();\n\n //Create ingredients and steps\n List<String> ingredients = new ArrayList<String>();\n ingredients.add(\"1 piece Bread\");\n ingredients.add(\"20g Marmite\");\n String steps = (\"Toast Bread. Spread Marmite on toasted bread\");\n\n //Create and save the new recipe\n new Recipe(trex, \"Marmite on Toast\", ingredients, steps).save();\n\n //Retrieve the recipe by title\n Recipe marmiteOnToast = Recipe.find(\"byTitle\", \"Marmite on Toast\").first();\n\n //Assert the recipe has been retrieved and that the author is the same as the one we saved\n assertNotNull(marmiteOnToast);\n assertEquals(trex, marmiteOnToast.author);\n }", "@PostMapping(\"/recipes\")\n\tpublic String postRecipe(@RequestBody Recipe recipe) {\n\t\tSystem.out.println(\"hit recipes post\");\n\t\tSystem.out.println(recipe.getName());\n\t\tSystem.out.println(recipe.getSpoonacularId());\n\t\tSystem.out.println(recipe.getImage());\n\t\t\n\t\tList<Food> newFoods = recipe.getFoods();\n\t\tList<Step> newSteps = recipe.getSteps();\n\t\trecipe.setFoods(null);\n\t\trecipe.setSteps(null);\n\t\tRecipe newRecipe = rRepo.save(recipe);\n\t\t\n\t\tfor (Food food: newFoods) {\n\t\t\tFood newFood = new Food(food.getName(), food.getAmount());\n\t\t\tnewFood.setRecipe(newRecipe);\n\t\t\tfRepo.save(newFood);\n\t\t}\n\t\tfor (Step step: newSteps) {\n\t\t\tStep newStep = new Step(step.getName());\n\t\t\tnewStep.setRecipe(newRecipe);\n\t\t\tsRepo.save(newStep);\n\t\t}\n\n\t\treturn \"success\";\n\t}", "@Override\n\tpublic void save(RecipeTable recipe) {\n\t\t\n\t}", "@Test\n public void createRecipeTest() throws BusinessLogicException {\n RecipeEntity newEntity = factory.manufacturePojo(RecipeEntity.class);\n newEntity.getIngredientes().add(new IngredientEntity());\n RecipeEntity persistence=recipeLogic.createRecipe(newEntity);\n Assert.assertEquals(persistence.getId(), newEntity.getId());\n Assert.assertEquals(persistence.getDescription(), newEntity.getDescription());\n Assert.assertEquals(persistence.getName(), newEntity.getName());\n }", "@Test\n public void ShouldAddRecipeToRepository() {\n Recipe receipt = new Recipe();\n receipt.setTitle(\"Salmon\");\n\n // When recipe is saved\n Recipe saveRecipe = recipesRepository.save(receipt);\n\n // Then the receipt is stored in repository\n long count = template.count(\n Query.query(Criteria.where(\"id\").is(saveRecipe.getId())),\n Recipe.class);\n assertThat(count).isEqualTo(1L);\n }", "public void addNewRecipe() {\r\n listOfRecipes.add(new Recipe().createNewRecipe());\r\n }", "public Recipe createRecipe(String name) {\r\n\t\tRecipe recipe=new Recipe(name,this);\r\n\t\trecipes.add(recipe);\r\n\t\treturn recipe;\r\n\t}", "public void addIngredientRecipe(IngredientRecipePOJO ingr);", "public RecipeDatabase() {\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference AllRecipeRef = database.getReference(\"allRecipes\");\n DatabaseReference newRecipeRef = AllRecipeRef.push();\n newRecipeRef.setValue(new Recipe(\"Pizza\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Sushi Rolls\", 2.0, \"mkp_logo\", \"Japanese\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Crepe\", 3.5, \"mt_logo\", \"French\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Baked Salmon\", 0, \"pb_logo\", \"American\", \"5\", \"1. prep ingredients\\n2.cook food\\n3.eat your food\", \"ingredients1 ingredient 2 ingredient3\"));\n }", "public static void RecipeTipsFirebaseCreate(\n Context context,\n String recipe_tips_recipe,\n String recipe_tips_number,\n String recipe_tips_text) {\n\n try {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n String firebaseKey = databaseReference.push().getKey();\n\n assert firebaseKey != null;\n\n databaseReference.child(firebaseKey).child(FIELD_RECIPE_TIPS_RECIPE).setValue(recipe_tips_recipe);\n databaseReference.child(firebaseKey).child(FIELD_RECIPE_TIPS_NUMBER).setValue(recipe_tips_number);\n databaseReference.child(firebaseKey).child(FIELD_RECIPE_TIPS_TEXT).setValue(recipe_tips_text);\n\n } catch (Exception error) {\n\n String ClassName = String.class.getName();\n new SupportHandlingExceptionError(ClassName, error, context);\n\n }\n }", "public void addRecipe(Recipe recipe)\n {\n recipe.setDataSource(this);\n _recipes.add(recipe);\n }", "private static void createRecipe(int code, String name, int quantity ) {\n\t\tString sqlTotalkcal=\"select sum(kcal) from ingredient where code in (select code_ingredient from ingredientxrecipe where code_recipe=\"+code+\")\";\r\n\t\tString sqlTotalcarb=\"select sum(carbohidrates) from ingredient where code in (select code_ingredient from ingredientxrecipe where code_recipe=\"+code+\")\";\r\n\t\tString sqlTotalProt=\"select sum(Proteines) from ingredient where code in (select code_ingredient from ingredientxrecipe where code_recipe=\"+code+\")\";\r\n\t\tString sqlTotalFat=\"select sum(Fat) from ingredient where code in (select code_ingredient from ingredientxrecipe where code_recipe=\"+code+\")\";\r\n\t\tString sqlTotalSalt=\"select sum(Salt) from ingredient where code in (select code_ingredient from ingredientxrecipe where code_recipe=\"+code+\")\";\r\n\t\tString sqltotalAllergen=\"select codeAllergen from allergenxingredients where codeIngredient in (select code_ingredient from ingredientxrecipe where code_recipe=\"+code+\")\";\r\n\t\t\r\n\t\t//recuperar datos\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdouble kcal = dataRecovery(sqlTotalkcal);\r\n\t\t\tdouble carb = dataRecovery(sqlTotalcarb);\r\n\t\t\tdouble prot = dataRecovery(sqlTotalProt);\r\n\t\t\tdouble fat = dataRecovery(sqlTotalFat);\r\n\t\t\tdouble salt = dataRecovery(sqlTotalSalt);\r\n\t\t\tString aler = dataRecoveryAllergenList(sqltotalAllergen);\r\n\t\t\tcreateRecipeData(code, name, quantity, kcal, carb, prot, fat, salt, aler);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Hubo un error al crear la receta\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void saveToDatabase(View view) {\n // new implementation\n EditText recipeName = findViewById(R.id.input_Name);\n EditText recipeDirections = findViewById(R.id.input_Directions);\n EditText recipeNotes = findViewById(R.id.input_Notes);\n\n\n if (!(recipeName.getText().toString().equals(\"\"))) {\n newRecipe.setName(recipeName.getText().toString());\n newRecipe.setDirections(recipeDirections.getText().toString());\n newRecipe.setNotes(recipeNotes.getText().toString());\n\n dbHandler.addRecipe(newRecipe);\n\n finish();\n }\n else {\n Toast.makeText(this, \"You must enter a name for your recipe!\", Toast.LENGTH_SHORT).show();\n }\n }", "@Test\n\tpublic void testInsertRecipeFailure() {\n\t\tint recipeId = recipeDao.insertRecipe(recipe);\n\n\t\tassertEquals(0, recipeId);\n\n\t}", "private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"Mozzarella\", 10,30);\n ingdao.insert(ing);\n\n // Salads, Desserts, Main course, Drinks\n pos = new Position(\"Pizza\");\n posdao.insert(pos);\n\n course = new Course(\"Salads\", \"Greek\", \"Cucumber\", \"Tomato\", \"Feta\");\n coursedao.insert(course);\n\n ing = new Ingredient(\"-\", 0,0);\n ingdao.insert(ing);\n */\n }", "public RecipeDataBase(){\n //recipes = new ArrayList<>();\n loadDatabase();\n \n }", "public void saveRecipe(Recipe recipe) {\r\n \t\tif (!recipeList.contains(recipe)) {\r\n \t\t\trecipeList.add(recipe);\r\n \t\t}\r\n \t\tpersistenceManager.save(recipe);\r\n \t}", "@Test\n public void getRecipeByID_ReturnsRecipe(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertNotEquals(\"getRecipeByName - Returns a Recipe\", null, testDatabase.getRecipe(returned));\n }", "@RequestMapping(method = RequestMethod.POST, value = \"/recipes\", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<Recipe> saveOrUpdateRecipe(@RequestBody final Recipe recipe) {\n final Recipe savedRecipe = this.recipeRepository.save(recipe);\n return new ResponseEntity<>(savedRecipe, HttpStatus.OK);\n }", "public NewRecipeAction(IWorkbenchWindow window) {\n\t\tthis.window = window;\n\t\tsetId(ID);\n\t\tsetText(\"&New\");\n\t\tsetToolTipText(\"Creates a new recipe.\");\n\t\tsetActionDefinitionId(\"com.niceprograms.recipe.commands.newrecipe\");\n\t\tsetImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(\n\t\t\t\tApplication.PLUGIN_ID, IImageKeys.NEW));\n\t}", "Recipe findRecipeById(Long id) throws ServiceFailureException;", "@Test\n public void addRecipe_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertNotEquals(\"addRecipe - Returns True\", -1, returned);\n }", "public Recipe createRecipe(String name, String chocolate, String coffee, String milk, String sugar, String price) throws RecipeException {\r\n Recipe recipe = new Recipe();\r\n recipe.setName(name);\r\n recipe.setAmtChocolate(chocolate);\r\n recipe.setAmtCoffee(coffee);\r\n recipe.setAmtMilk(milk);\r\n recipe.setAmtSugar(sugar);\r\n recipe.setPrice(price);\r\n return recipe;\r\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n RecipeEntity books = factory.manufacturePojo(RecipeEntity.class);\n em.persist(books);\n data.add(books);\n }\n }", "public static void addRecipeToMealPlan(Recipe recipe, MealPlan mealPlan) {\n Connection conn = new ConnectDb().setupConnection();\n OraclePreparedStatement pst = null;\n OracleResultSet rs = null;\n \n try {\n String sqlStatement = \"insert into mealplanrecipe values (?, ?)\";\n \n pst = (OraclePreparedStatement) conn.prepareStatement(sqlStatement);\n pst.setInt(1, mealPlan.getId());\n pst.setInt(2, recipe.getId());\n \n pst.executeUpdate();\n \n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, e);\n } finally {\n ConnectDb.close(conn);\n ConnectDb.close(rs);\n ConnectDb.close(pst);\n }\n }", "Relationship createRelationship();", "public void insertFood(String rest_id,String restName, String FoodName, String category, String ratting, String price) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"rest_id\",rest_id);\n contentValues.put(\"restName\", restName);\n contentValues.put(\"name\", FoodName);\n contentValues.put(\"category\", category);\n contentValues.put(\"price\", price);\n contentValues.put(\"ratting\", ratting);\n\n long isInsert = database.insert(AppConstant.FOOD_TABLE_NAME, null, contentValues);\n if (isInsert == -1) {\n Toast.makeText(context, \"Food item failed to register.\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(context, \"Food item registered successfully.\", Toast.LENGTH_SHORT).show();\n }\n }", "public void addRecipe(Recipe recipe){\n //recipes.add(recipe);\n if(recipe != null){\n recipes.add(recipe);\n }\n }", "@Test\n public void addRecipeIngredient_ReturnsID(){\n int returned = testDatabase.addRecipeIngredient(recipeIngredient);\n assertNotEquals(\"addRecipeIngredient - Returns True\", -1, returned);\n }", "@Test\r\n public void createFoodCategory() {\r\n repo = ctx.getBean(FoodCategoryRepository.class);\r\n// MainMeal meal= new MainMeal.Builder(\"Pap and Vors\")\r\n// .Amountprice(79000)\r\n// .build();\r\n FoodCategory cat= new FoodCategory.Builder(\"Gatsby\")\r\n .build();\r\n repo.save(cat);\r\n id = cat.getId(); \r\n Assert.assertNotNull(cat);\r\n \r\n \r\n }", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void addFavourite(RecipeDbItem1 recipeDbItem1)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID,recipeDbItem1.getID());\n values.put(KEY_TITLE,recipeDbItem1.getTitle());\n //insert a row\n db.insert(TABLE_FAVOURITES,null,values);\n db.close();\n //System.out.println(\"\\n Inserted into Favourites Table: \"+recipeDbItem1.getID()+\" \"+recipeDbItem1.getTitle());\n }", "public interface RecipeStore {\n //Returns a recipe list of all recipes\n List<Recipe> getAllRecipes();\n //Returns a string list of recipe titles found from ingredients query\n List<String> getRecipeByIngredients(CharSequence query);\n //Returns a single recipe found from query\n Recipe getRecipe(CharSequence query);\n //Returns a single recipe image from query\n byte[] getRecipeImage(CharSequence query);\n //Returns a bitmap list of all small images for all recipes\n List<Bitmap> getRecipeImgSmall();\n //Returns a string list of all recipe titles\n List<String> getRecipeTitles();\n //Takes a recipe id and adds it to the favorites table\n void addToFavorites(int recipeId);\n //Returns a bitmap list of all images for recipes in the favorites table\n List<Bitmap> getFavoriteRecipeImgs();\n //Returns a string list of all titles for recipes in the favorites table\n List<String> getFavoriteRecipeTitle();\n //Takes a recipe id and deletes it from the favorites table\n void deleteFavorite(int id);\n //Takes a recipe id and checks if it exists in the favorites table\n boolean isFavorite(int id);\n //Takes recipe parameters and inserts a new row in recipes table\n Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);\n //Returns number of rows in recipes\n long getRecipesCount();\n //Opens the database\n SQLiteDatabase open() throws SQLException;\n //Closes the database\n void close();\n}", "public void addToDatabaseProduct() {\n // Database credentials\n String pass = \"\";\n\n InputStream passPath = Controller.class.getResourceAsStream(\"/password.txt\");\n if (passPath == null) {\n System.out.println(\"Could not find password in resources folder\");\n }\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(passPath));\n String line = null;\n while (true) {\n try {\n if (!((line = reader.readLine()) != null)) {\n break;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(line);\n if (line != null) {\n pass = line;\n System.out.println(\"Password login: \" + line);\n break;\n }\n }\n Connection conn = null; //Temporary\n PreparedStatement stmt = null; //Temporary\n\n try {\n // STEP 1: Register JDBC driver\n Class.forName(\"org.h2.Driver\");\n\n //STEP 2: Open a connection\n conn = DriverManager.getConnection(\"jdbc:h2:./res/HR\", \"\",\n pass);\n\n final String sqlProductName = txtProductName.getText();\n String sqlManufName = txtManufacturer.getText();\n ItemType sqlItemType = choiceType.getValue();\n\n stmt = conn.prepareStatement(\"INSERT INTO Product(type, manufacturer, name) VALUES (?, ?, ?)\",\n Statement.RETURN_GENERATED_KEYS);\n stmt.setString(1, sqlItemType.toString());\n stmt.setString(2, sqlManufName);\n stmt.setString(3, sqlProductName);\n\n stmt.executeUpdate();\n\n stmt.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "Rental createRental();", "public com.Hotel.model.Hotel create(long hotelId);", "@Test\n public void getRecipeByName_ReturnsRecipe(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertNotEquals(\"getRecipeByName - Returns a Recipe\", null, testDatabase.getRecipe(recipeTitle));\n }", "public Recipe() { }", "@Override\n\tpublic void persist(Recipe entity) {\n\t\t\n\t}", "void create(int id, int authorId, String title);", "public static void createRecipe(Recipe r, final Shell shell)\r\n {\n final Shell newShell = new Shell(shell.getDisplay());\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.numColumns = 1;\r\n newShell.setLayout(gridLayout);\r\n newShell.setSize(800, 600);\r\n newShell.addShellListener(new ShellListener()\r\n {\r\n\r\n public void shellActivated(ShellEvent shellevent)\r\n {\r\n }\r\n\r\n public void shellClosed(ShellEvent shellevent)\r\n {\r\n shell.setEnabled(true);\r\n }\r\n\r\n public void shellDeactivated(ShellEvent shellevent)\r\n {\r\n }\r\n\r\n public void shellDeiconified(ShellEvent shellevent)\r\n {\r\n }\r\n\r\n public void shellIconified(ShellEvent shellevent)\r\n {\r\n }\r\n });\r\n shell.setEnabled(false);\r\n\r\n // Construct edit window\r\n createEditWin(r, newShell);\r\n newShell.open();\r\n }", "private void createMeal(final String meal_id, final String recipe_id, final int count) {\n String url = \"http://proj-309-yt-8.cs.iastate.edu/create_meal.php\";\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"AddCalendarMealActivity/createMeal\", response);\n if(!response.contains(\"success\")) {\n Toast.makeText(getApplicationContext(),\"Error adding meal component to database.\", Toast.LENGTH_SHORT).show();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"AddCalendarMealActivity/createMeal\", error.toString());\n Toast.makeText(getApplicationContext(),\"Error connecting to database.\",Toast.LENGTH_SHORT).show();\n }\n }) {\n /*This is string data POSTed to server file with key-string format*/\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n @SuppressWarnings(\"Convert2Diamond\") Map<String,String> params = new HashMap<String, String>();\n params.put(\"meal_id\",meal_id);\n params.put(\"recipe_id\",recipe_id);\n return params;\n }\n };\n AppController.getInstance().addToRequestQueue(stringRequest, \"string_req_create_meal\" + count);\n }", "void addToFavorites(int recipeId);", "@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.addrecipe);\n\t\tdb = new ReciPalDB(getApplicationContext());\n\n\t\tthis.layoutInflator = LayoutInflater.from(this);\n\n\t\tthis.saveBtn = (Button)this.findViewById(R.id.dialogSave); \n\t\tthis.recipeImage = (ImageView)this.findViewById(R.id.dialogImage);\n\t\tthis.recipeName = (EditText)this.findViewById(R.id.dialogName);\n\t\tthis.recipeRating = (RatingBar)this.findViewById(R.id.dialogRating);\n\t\tthis.recipePrep = (EditText)this.findViewById(R.id.dialogPrep);\n\t\tthis.lvIngredients = (LinearLayout)this.findViewById(R.id.ingredientList);\n\t\tthis.addIngredient = (ImageView)this.findViewById(R.id.ibAddIngred);\n\t\trecipe = new Recipe(\"\", \"\", \"\", 3);\n\n\t\tBundle extras = this.getIntent().getExtras();\n\t\tif(extras != null)\n\t\t{\n\t\t\trecipe = (Recipe) extras.getSerializable(\"edu.gvsu.cis680.recipal.recipe\"); \t\t\t \t\t\t\n\t\t\tRefresh();\n\t\t}\t\t\n\n\t\tthis.addIngredient.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAddRecipe.this.recipe.setName(recipeName.getText().toString());\n\t\t\t\tAddRecipe.this.recipe.setImage((String)recipeImage.getTag());\n\t\t\t\tAddRecipe.this.recipe.setRating(recipeRating.getRating());\n\t\t\t\tAddRecipe.this.recipe.setPreperation(recipePrep.getText().toString());\t\t\t\t\n\t\t\t\tshowDialog(ADD_INGREDIENT_DIALOG);\n\t\t\t}\n\t\t});\n\n\t\t//Set the on Save click listener. \n\t\t//On save pass back the set parameters to the calling activity\n\t\tthis.saveBtn.setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override public void onClick(View v) {\n\t\t\t\t//if(recipe.getId() == -1) {\n\t\t\t\t//\trecipe = new Recipe(recipeName.getText().toString(), recipePrep.getText().toString(), (String)recipeImage.getTag(), recipeRating.getRating());\n\t\t\t\t//}\n\t\t\t\t//else //this means it was passed in...must be editing...this keeps the id...\n\t\t\t\t//{\n\t\t\t\trecipe.setName(recipeName.getText().toString());\n\t\t\t\trecipe.setImage((String)recipeImage.getTag());\n\t\t\t\trecipe.setRating(recipeRating.getRating());\n\t\t\t\trecipe.setPreperation(recipePrep.getText().toString());\n\t\t\t\t//}\n\n\t\t\t\tIntent data = new Intent();\n\t\t\t\tdata.putExtra(\"edu.gvsu.cis680.recipal.recipe\", recipe);\n\n\t\t\t\t//set the result to OK and finish / close the activity\n\t\t\t\tsetResult(Activity.RESULT_OK, data);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}); \n\n\t\tthis.recipeImage.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setType(\"image/*\");\n\t\t\t\tintent.setAction(Intent.ACTION_GET_CONTENT);\n\t\t\t\tstartActivityForResult(Intent.createChooser(intent, \"Select Picture\"), SELECT_IMAGE);\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t}", "@Test\r\n\tpublic void addToDb() {\r\n\t\tservice.save(opinion);\r\n\t\tassertNotEquals(opinion.getId(), 0);\r\n\t\tassertTrue(service.exists(opinion.getId()));\r\n\t}", "@Test\n public void addRecipe_CorrectInformation(){\n int returned = testDatabase.addRecipe(testRecipe);\n Recipe retrieved = testDatabase.getRecipe(returned);\n\n // Check all recipe fields are accurate\n assertEquals(\"addRecipe - Correct Title\", recipeTitle, retrieved.getTitle());\n assertEquals(\"addRecipe - Correct Servings\", 1, retrieved.getServings(), 0);\n assertEquals(\"addRecipe - Correct prep_time\", 30, retrieved.getPrep_time(), 0);\n assertEquals(\"addRecipe - Correct total_time\", 60, retrieved.getTotal_time(), 0);\n assertEquals(\"addRecipe - Correct Favorited\", false, retrieved.getFavorited());\n assertEquals(\"addRecipe - Correct Ingredient Unit\", \"cups\", retrieved.getIngredientList().get(0).getUnit());\n assertEquals(\"addRecipe - Correct Ingredient Quantity\", 2.0, retrieved.getIngredientList().get(0).getQuantity(), 0);\n assertEquals(\"addRecipe - Correct Ingredient Details\", \"White Flour\", retrieved.getIngredientList().get(0).getDetails());\n assertEquals(\"addRecipe - Correct First Direction Number\", 1, retrieved.getDirectionsList().get(0).getDirectionNumber());\n assertEquals(\"addRecipe - Correct First Direction Text\", \"TestDirection1\", retrieved.getDirectionsList().get(0).getDirectionText());\n assertEquals(\"addRecipe - Correct Second Direction Number\", 2, retrieved.getDirectionsList().get(1).getDirectionNumber());\n assertEquals(\"addRecipe - Correct Second Direction Text\", \"TestDirection2\", retrieved.getDirectionsList().get(1).getDirectionText());\n }", "public Recipe getRecipe(){\n\t\tRecipe recipe = new Recipe();\n\t\trecipe.setName(name);\n\t\trecipe.setNumPersons(numPersons);\n\t\trecipe.setPrepTime(prepTime);\n\t\trecipe.setRestTime(restTime);\n\t\trecipe.setCookingTime(cookingTime);\n\t\tHashMap<Ingredient, Quantity> ingredients = new HashMap<Ingredient,Quantity>();\n\t\tfor(int i = 0; i<ingredientsList.size(); i++){\n\t\t\tingredients.put(ingredientsList.get(i), quantities.get(i));\n\t\t}\n\t\trecipe.setIngredients(ingredients);\n\t\trecipe.setSteps(steps);\n\t\treturn recipe;\n\t}", "public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}", "private void insertPet() {\n\n ContentValues values = new ContentValues();\n values.put(PetContract.PetEntry.COLUMN_PET_NAME, \"Toto\");\n values.put(PetContract.PetEntry.COLUMN_PET_BREED, \"Terrier\");\n values.put(PetContract.PetEntry.COLUMN_PET_GENDER, PetContract.PetEntry.GENDER_MALE);\n values.put(PetContract.PetEntry.COLUMN_PET_WEIGHT, 7);\n Uri uri = getContentResolver().insert(PetContract.PetEntry.CONTENT_URI,values);\n Toast.makeText(this, uri.toString()+\" added\", Toast.LENGTH_SHORT).show();\n }", "@Test\n public void addRecipeIngredient_DatabaseUpdates(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeIngredient> allRecipeIngredients = testDatabase.getAllRecipeIngredients(returnedRecipe);\n RecipeIngredient retrieved = new RecipeIngredient();\n if(allRecipeIngredients != null){\n for(int i = 0; i < allRecipeIngredients.size(); i++){\n if(allRecipeIngredients.get(i).getIngredientID() == ingredientID){\n retrieved = allRecipeIngredients.get(i);\n }\n }\n }\n assertEquals(\"addRecipeIngredient - Correct Quantity\", 2.0, retrieved.getQuantity(), 0);\n assertEquals(\"addRecipeIngredient - Correct Unit\", \"cups\", retrieved.getUnit());\n assertEquals(\"addRecipeIngredient - Correct Details\", \"White Flour\", retrieved.getDetails());\n }", "public com.huqiwen.demo.book.model.Books create(long bookId);", "public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.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} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@PostMapping\n public ResponseEntity<IngredientDTO> createIngredient(@RequestBody IngredientDTO ingredientDTO) throws URISyntaxException{\n if (ingredientDTO.getId() != null){\n return ResponseEntity.badRequest().headers(HttpHeadersUtil.createEntityFailureAlert(ENTITY_NAME,\n \"A new ingredient can not be created. Ingredient ID is present.\")).body(null);\n }\n IngredientDTO savedIngredient = ingredientService.saveOrUpdateIngredient(ingredientDTO);\n return ResponseEntity.created(new URI(\"/api/ingredient/\" + savedIngredient.getId()))\n .headers(HttpHeadersUtil.createdEntityAlert(ENTITY_NAME, savedIngredient.getId().toString()))\n .body(savedIngredient);\n }", "public List<Recipe> getRecipe()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "public long createEntry(String name, String hotness) throws SQLException {\n\t\tContentValues cv = new ContentValues();\n\t\tcv.put(KEY_NAME, name);\n\t\tcv.put(KEY_HOTNESS, hotness);\n\n\t\t// return the ROW_ID of new inserted row or -1 if error occurred\n\t\treturn ourDatabase.insert(DATABASE_TABLE, null, cv);\n\n\t}", "E create(Resource data);", "private void insertPet() {\n\n // Create a ContentValues object where column names are the keys,\n // and Toto's pet attributes are the values.\n ContentValues values = new ContentValues();\n values.put(PetEntry.COLUMN_PET_NAME, \"Toto\");\n values.put(PetEntry.COLUMN_PET_BREED, \"Terrier\");\n values.put(PetEntry.COLUMN_PET_GENDER, PetEntry.GENDER_MALE);\n values.put(PetEntry.COLUMN_PET_WEIGHT, 7);\n\n // Insert a new row for Toto in the database, returning the ID of that new row.\n // The first argument for db.insert() is the pets table name.\n // The second argument provides the name of a column in which the framework\n // can insert NULL in the event that the ContentValues is empty (if\n // this is set to \"null\", then the framework will not insert a row when\n // there are no values).\n // The third argument is the ContentValues object containing the info for Toto.\n Uri newUri=getContentResolver().insert(PetEntry.CONTENT_URI,values);\n if (newUri == null) {\n // If the row ID is -1, then there was an error with insertion.\n Toast.makeText(this, \"Error with saving pet\", Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast with the row ID.\n Toast.makeText(this, \"Pet saved with row id: \" + newUri, Toast.LENGTH_SHORT).show();\n }\n }", "public Todo create(long todoId);", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "@Test\n public void addIngredient_DatabaseUpdates(){\n int returned = testDatabase.addIngredient(ingredient);\n Ingredient retrieved = testDatabase.getIngredient(returned);\n assertEquals(\"addIngredient - Correct Ingredient Name\", \"Flour\", retrieved.getName());\n assertEquals(\"addIngredient - Set Ingredients ID\", returned, retrieved.getKeyID());\n }", "public Recipe saveRecipeToRepository(Recipe newRecipe) {\n\t\t//Map recipe to Recipe Entity\n\t\tRecipeEntity recipeEntity = mapToRecipeEntity(newRecipe);\n\t\treturn mapToRecipeObject(recipesRepo.save(recipeEntity));\n\t}", "private void insertDummyBook() {\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_NAME, getString(R.string.dummy_book_name));\n values.put(BookEntry.COLUMN_GENRE, BookEntry.GENRE_SELF_HELP);\n values.put(BookEntry.COLUMN_PRICE, getResources().getInteger(R.integer.dummy_book_price));\n values.put(BookEntry.COLUMN_QUANTITY, getResources().getInteger(R.integer.dummy_book_quantity));\n values.put(BookEntry.COLUMN_SUPPLIER, getString(R.string.dummy_book_supplier));\n values.put(DatabaseContract.BookEntry.COLUMN_SUPPLIER_PHONE, getString(R.string.dummy_supplier_phone_number));\n values.put(DatabaseContract.BookEntry.COLUMN_SUPPLIER_EMAIL, getString(R.string.dummy_book_supplier_email));\n getContentResolver().insert(BookEntry.CONTENT_URI, values);\n }", "@Test\n public void addRecipeCategory_ReturnsID(){\n int returned = testDatabase.addRecipeCategory(recipeCategory);\n assertNotEquals(\"addRecipeCategory - Returns True\", -1, returned);\n }", "private void insertBook() {\n /// Create a ContentValues object with the dummy data\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_NAME, \"Harry Potter and the goblet of fire\");\n values.put(BookEntry.COLUMN_BOOK_PRICE, 100);\n values.put(BookEntry.COLUMN_BOOK_QUANTITY, 2);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_NAME, \"Supplier 1\");\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE, \"972-3-1234567\");\n\n // Insert the dummy data to the database\n Uri uri = getContentResolver().insert(BookEntry.CONTENT_URI, values);\n // Show a toast message\n String message;\n if (uri == null) {\n message = getResources().getString(R.string.error_adding_book_toast).toString();\n } else {\n message = getResources().getString(R.string.book_added_toast).toString();\n }\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }", "@Test\n public void addRecipeCategory_DatabaseUpdates(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n int returnedCategory = testDatabase.addRecipeCategory(recipeCategory);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returnedRecipe);\n RecipeCategory retrieved = new RecipeCategory();\n if(allCategories != null){\n for(int i = 0; i < allCategories.size(); i++){\n if(allCategories.get(i).getKeyID() == returnedCategory){\n retrieved = allCategories.get(i);\n }\n }\n }\n assertEquals(\"addRecipeDirection - Correct RecipeID\", returnedRecipe, retrieved.getRecipeID());\n assertEquals(\"addRecipeDirection - Correct CategoryID\", categoryID, retrieved.getCategoryID());\n }", "public Recipe(String id, String title, String url, ArrayList<String> ingredients,ArrayList<String> category, String image) {\n this.id = id;\n this.title = title;\n this.url = url;\n this.tag = tag;\n this.ingredients = ingredients;\n this.category = category;\n this.image = image;\n }", "@Test\n\tpublic void testAddTheUniqueNameOfRecipe() {\n\t\tcoffeeMaker.addRecipe(recipe1);\n\t\tassertTrue(coffeeMaker.addRecipe(recipe2));\n\t}", "public static void insertNabranoRecord(String girlName, Vegetable vegetable, int quantity){\n try{\n dbDAO.getInstance().createNabranoRecord(girlName, vegetable, quantity);\n System.out.println(\"Nabrano record was added to db\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public long createToDo(String title, String name, String surname, String borndate, String city, String street, String number, String email, String phone, String gender, String attribute, int clientId, int status) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(FeedEntry.COLUMN_TITLE, title);\r\n values.put(FeedEntry.COLUMN_NAME,name);\r\n values.put(FeedEntry.COLUMN_SURNAME,surname);\r\n values.put(FeedEntry.COLUMN_BORNDATE,borndate);\r\n values.put(FeedEntry.COLUMN_CITY,city);\r\n values.put(FeedEntry.COLUMN_STREET,street);\r\n values.put(FeedEntry.COLUMN_NUMBER,number);\r\n values.put(FeedEntry.COLUMN_EMAIL,email);\r\n values.put(FeedEntry.COLUMN_PHONE,phone);\r\n values.put(FeedEntry.COLUMN_GENDER,gender);\r\n values.put(FeedEntry.COLUMN_ATTRIBUTE, attribute);\r\n values.put(FeedEntry.COLUMN_CLIENT_ID, clientId);\r\n values.put(FeedEntry.COLUMN_CLIENT_STATUS, status);\r\n // insert row\r\n\r\n long todo_id = db.insert(FeedEntry.TABLE_NAME, null, values);\r\n\r\n return todo_id;\r\n }", "@Before\n public void createDatabase() {\n dbService.getDdlInitializer()\n .initDB();\n kicCrud = new KicCrud();\n }", "Purchase create(Purchase purchase) throws SQLException, DAOException;", "@Test\n public void addIngredient_ReturnsID(){\n int returned = testDatabase.addIngredient(ingredient);\n assertNotEquals(\"addIngredients - Returns True\",-1, returned);\n }", "public abstract boolean create(T entity) throws SQLException;", "public void create(Pizza pizza){\n pizza.setID(counter++);\n pizzas.add(pizza);\n }", "Database createDatabase();", "@Test\n\t@DatabaseSetup(value = \"classpath:databaseEntries.xml\", type = DatabaseOperation.CLEAN_INSERT)\n\tpublic void testCreateLecturer() {\n\t\t\n\t\t//Confirm table row count\n\t\tlecturerJdbcDaoSupport = (LecturerJdbcDaoSupport) autoWireContext.getBean(\"lecturerJdbcDaoSupport\");\n\t\tlecturerJdbcDaoSupport.createLecturer(\"L004\", \"Jim\", \"Murphy\", \"[email protected]\");\n\t\tint rowCount = lecturerJdbcDaoSupport.countRows();\n\t\tassertEquals(4, rowCount);\n\t}", "private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }", "Article createArticle();", "@Test\n\tpublic void testEditExistedRecipe() {\n\t\tcoffeeMaker.addRecipe(recipe2);\n\t\tassertEquals(\"Mocha\", coffeeMaker.editRecipe(0, recipe3));\n\t\tassertEquals(\"Latte\", coffeeMaker.getRecipes()[0].getName());\n\t}", "void updateRecipe(Recipe recipe) throws ServiceFailureException;", "void deleteRecipe(RecipeObject recipe);", "Relation createRelation();", "public void CreateProgram(int id, String name, String title, String description) throws SQLException {\n\t\ttry {\n\t\t\tString query = \"INSERT INTO program VALUES ('\" + id + \"', '\" + description + \"', '\" + name + \"', '\" + title + \"')\";\n\t\t\tstatement.execute(query); \n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (conex != null) {\n\t\t\t\tconex.close();\n\t\t\t}\n\t\t}\n\t}", "public void onSaveButtonClicked(View view){\n recipe.setTitle(mTitle.getText().toString());\n recipe.setDescription(mDescription.getText().toString());\n recipe.setLastEaten(dateLastEaten);\n recipe.setRemarks(mRemarks.getText().toString());\n recipe.setPoints(mRating.getRating());\n\n recipe.calculateSuggestionValue();\n\n if (isNew)\n {\n FirebaseUser user = mAuth.getCurrentUser();\n recipe.setUid(user.getUid());\n\n db.collection(\"recipes\")\n .add(recipe)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n //startActivity(new Intent(RecipeDetailScreenActivity.this,RecipeMainScreenActivity.class));\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //Log.w(TAG, \"Error adding document\", e);\n showSnackbar(R.string.ErrorSave);\n }\n });\n }\n else {\n db.collection(\"recipes\").document(recipe.getId())\n .set(recipe)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n //Log.d(TAG, \"DocumentSnapshot successfully written!\");\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //Log.w(TAG, \"Error writing document\", e);\n showSnackbar(R.string.ErrorSave);\n }\n });\n\n }\n }", "public void crearCategoria(Categoria categoria){\n categoriaRepo.save(categoria); \n }", "public void createBox(Context context){\n\t\t\n\t\tLog.d(TAG, \"Begin creating recipe box\");\n\t\t\n\t\t//Open the file containing the recipes\n final Resources resources = context.getResources();\n InputStream inputStream = resources.openRawResource(R.raw.recipes);\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n\t\t\n Log.v(TAG, \"Buffered Reader Ready\");\n \n // VAriable to hold the lines as they are read\n\t\tString line;\n try {\n \t//Read in one line from the recipe file \n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tLog.v(TAG, \"Read line from buffer: \" + line);\n\t\t\t\t\n\t\t\t\t//Split the based on the pipe delimiter \"|\"\n\t\t\t\tString[] strings = TextUtils.split(line, \"\\\\|\\\\|\");\n\t\t\t\t\n\t\t\t\t//Position zero will always be the Recipe Name\n\t\t\t\tLog.v(TAG, \"Set recipe name: \" + strings[0]);\n\t\t\t\tString recipeName = strings[0];\n\t\t\t\t\n\t\t\t\t//Position zero will always be the Recipe Name\n\t\t\t\tLog.v(TAG, \"Set recipe description: \" + strings[1]);\n\t\t\t String recipeDescription = strings[1];\n\t\t\t\t\n\t\t\t String splitter = \"\\\\|\";\n\t\t\t \n\t\t\t // The array lists for the recipe\n\t\t\t ArrayList<String> recipeCategories = stringToArrayList(strings[2], splitter);\n\t\t\t\tArrayList<String> recipeIngredients = stringToArrayList(strings[3], splitter);\n\t\t\t ArrayList<String> recipeInstructions = stringToArrayList(strings[4], splitter);\n\t\t\t\t\n\t\t\t\tRECIPES.add(new Recipe(recipeName, recipeDescription, recipeCategories, recipeIngredients, recipeInstructions));\n\t\t\t\t\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n Log.d(TAG, \"Recipe box complete\");\n\t}", "void createItem (String name, String description, double price);", "Execution submitRecipe(TestRecipe recipe);", "private boolean loadDatabase(){\n Input input = new Input();\n recipes = input.getDatabase();\n if(recipes == null){\n recipes = new ArrayList<>();\n return false;\n }\n return true;\n }", "public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}", "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}", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\" Creating Dish\");\r\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\r\n\t\tsession.beginTransaction();\r\n\t\tsession.save(dish);\r\n\t\tsession.getTransaction().commit();\r\n\t\tsession.close();\r\n//\t\tSystem.out.println(\"Dish create successfully\" +dish.toString());\r\n\t\treturn dish.getId();\r\n\t\t\r\n\t}", "@Test\n public void shouldCreateCase() {\n assertThat(DatabaseHelper.getCaseDao().queryForAll().size(), is(0));\n\n TestEntityCreator.createCase();\n\n // Assure that the case has been successfully created\n assertThat(DatabaseHelper.getCaseDao().queryForAll().size(), is(1));\n }" ]
[ "0.7540805", "0.681008", "0.6617018", "0.6612065", "0.6525889", "0.646477", "0.63269484", "0.6315098", "0.6211512", "0.6191954", "0.6182038", "0.6158904", "0.6144092", "0.6000659", "0.59998965", "0.5965449", "0.5927482", "0.59218293", "0.58855057", "0.5827905", "0.57994395", "0.5749354", "0.57330793", "0.56891966", "0.565066", "0.5645093", "0.56394327", "0.5634235", "0.5632806", "0.56120664", "0.55882835", "0.5547572", "0.55383664", "0.5512634", "0.55104876", "0.55064976", "0.5499425", "0.5482323", "0.5476843", "0.54764295", "0.54744", "0.54653555", "0.5461041", "0.5402157", "0.5394956", "0.53916776", "0.53850883", "0.5381803", "0.53767926", "0.5373102", "0.5346298", "0.5335197", "0.5334883", "0.53143865", "0.5307242", "0.5302621", "0.5289846", "0.52888113", "0.5287564", "0.52820486", "0.5275304", "0.52721274", "0.5269197", "0.5262756", "0.52452743", "0.52451265", "0.52431095", "0.5242998", "0.523641", "0.5232458", "0.5222588", "0.5194186", "0.51857764", "0.51804125", "0.51741946", "0.5169278", "0.5165661", "0.5165597", "0.51549083", "0.51504153", "0.5146569", "0.51375407", "0.5136777", "0.5131138", "0.51272154", "0.5119853", "0.5119348", "0.51191616", "0.51079607", "0.5104449", "0.51025724", "0.5094581", "0.50860256", "0.50747097", "0.5064636", "0.506283", "0.50585496", "0.505387", "0.50534666", "0.5050808" ]
0.7140714
1
deletes a recipe from DB
void deleteRecipe(Recipe recipe) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteRecipe(RecipeObject recipe);", "private final void deleteRecipe() {\n \tnew DeleteRecipeTask().execute();\n }", "@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}", "public void deleteRecipe(int recipeId) {\n try {\n \t/*\n \t * recipeid\n \t * zamiast\n \t * userid\n \t */\n PreparedStatement preparedStatement = connection\n .prepareStatement(\"delete from recipe where recipeid=?\");\n // Parameters start with 1\n preparedStatement.setInt(1, recipeId);\n preparedStatement.executeUpdate();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void deleteRecipe_Deletes(){\n int returned = testDatabase.addRecipe(testRecipe);\n testDatabase.deleteRecipe(returned);\n assertEquals(\"deleteRecipe - Deletes From Database\", null, testDatabase.getRecipe(returned));\n }", "public long deleteRecipe(long id)\n {\n String where = RECIPE_ID + \"= ?\";\n String[] whereArgs = { String.valueOf(id) };\n this.openWriteableDB();\n int rowCount = db.delete(TABLE_RECIPES, where, whereArgs);\n this.closeDB();\n\n return rowCount;\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Recipe : {}\", id);\n recipeRepository.deleteById(id);\n }", "@RequestMapping(\"/recipe/delete/{id}\")\n public String deleteRecipe(@PathVariable String id){\n recipeService.deleteById(new Long(id));\n \n return \"redirect:/\";\n }", "public void deleteRecipeFromRepository(Integer id) {\n\t\tlog.debug(\"Deleting recipe with id: \"+id+\" from repository, if it is present\");\n\t\trecipesRepo.deleteById(id);\n\t\tlog.debug(\"Requested recipe should be deleted\");\n\t}", "@Test\r\n public void testDeleteRecipe() {\r\n coffeeMaker.addRecipe(recipe1);\r\n assertEquals(recipe1.getName(), coffeeMaker.deleteRecipe(0));\r\n assertNull(coffeeMaker.deleteRecipe(0)); // Test already delete recipe\r\n }", "@RequestMapping(\"/deleteRecipe\")\r\n\tpublic String deleteRecipe(@RequestParam Integer idrKey) {\r\n\t\tRecipe recipe = recipeDAO.findRecipeByPrimaryKey(idrKey);\r\n\t\trecipeService.deleteRecipe(recipe);\r\n\t\treturn \"forward:/indexRecipe\";\r\n\t}", "@Test\n public void deleteRecipeIngredient_Deletes(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n int returnedIngredient = testDatabase.addRecipeIngredient(recipeIngredient);\n testDatabase.deleteRecipeIngredients(returnedIngredient);\n ArrayList<RecipeIngredient> allIngredients = testDatabase.getAllRecipeIngredients(returnedRecipe);\n boolean deleted = true;\n if(allIngredients != null){\n for(int i = 0; i < allIngredients.size(); i++){\n if(allIngredients.get(i).getIngredientID() == returnedIngredient){\n deleted = false;\n }\n }\n }\n assertEquals(\"deleteRecipeIngredient - Deletes From Database\", true, deleted);\n }", "@Override\n public void deleteRecipe(long id)\n {\n RecipeEntity recipeEntity = this.load(RecipeEntity.class, id);\n if (recipeEntity != null)\n this.delete(recipeEntity);\n }", "public void onDelete(View v){\r\n // Calls delete ingredients and deletes the recipe\r\n int runId = getIntent().getExtras().getInt(\"run id\");\r\n deleteRunCoordinates(runId);\r\n getContentResolver().delete(ContentContract.RUNS_URI, ContentContract._ID + \"=\"+runId, null);\r\n setResult(Activity.RESULT_OK, new Intent());\r\n finish();\r\n }", "@RequestMapping(method = RequestMethod.DELETE, value = \"/recipes/{recipeId}\")\n public void deleteRecipe(@PathVariable final Long recipeId) {\n this.recipeRepository.delete(recipeId);\n }", "public void delete(Long id) {\n log.debug(\"Request to delete Recipe : {}\", id);\n recipeRepository.deleteById(id);\n }", "@Test\r\n public void testDeleteNonExistRecipe() {\r\n assertNull(coffeeMaker.deleteRecipe(1)); // Test do not exist recipe\r\n }", "private void deleteItem()\n {\n Category categoryToDelete = dataCategories.get(dataCategories.size()-1);\n AppDatabase db = Room.databaseBuilder(getApplicationContext(),\n AppDatabase.class, \"database-name\").allowMainThreadQueries().build();\n db.categoryDao().delete(categoryToDelete);\n testDatabase();\n }", "public void delete(int recipeId) {\n\t\tIngredientDataMapper idm = new IngredientDataMapper();\n\t\ttry {\n\t\t\tidm.delete(recipeId);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n\tpublic void testDeleteExistedRecipe() {\n\t\twhen(mockCoffeeMaker.getRecipes()).thenReturn(recipeList);\n\t\tassertEquals(\"Coffee\", mockCoffeeMaker.deleteRecipe(0));\n\t}", "@Test\n public void deleteIngredient_Deletes(){\n int returned = testDatabase.addIngredient(ingredient);\n testDatabase.deleteIngredient(returned);\n assertEquals(\"deleteIngredient - Deletes From Database\",null, testDatabase.getIngredient(returned));\n }", "@DeleteMapping(\"/{id}/recipe/{recipeId}\")\n public ResponseEntity<Void> deleteIngredient(@PathVariable Long id, @PathVariable Long recipeId){\n ingredientService.deleteIngredient(recipeId, id);\n return ResponseEntity.ok().headers(HttpHeadersUtil.deleteEntityAlert(ENTITY_NAME, id.toString())).build();\n }", "void deleteCatFood(Long catId, Long foodId);", "int deleteByPrimaryKey(Long researchid);", "int deleteByPrimaryKey(String questionId);", "public void onClick(DialogInterface dialogInterface, int which) {\n db.deleteAll();\n recipes.clear();\n adapter.notifyDataSetChanged();\n }", "int deleteByPrimaryKey(Integer nutritionid);", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tdeleteRecipe(recipeString);\n\t\t\t\t\tfinish();\n\t\t\t\t}", "public void deleteRecord() {\n// foods.clear();\n// try {\n// FoodRecordDao dao = new FoodRecordDao();\n// dao.saveFoodRecords(foods);\n// } catch (DaoException ex) {\n// Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n// }\n }", "private void deleteRecipe(String recipeString) {\n\t\tUUID recipeID = UUID.fromString(recipeString);\n\t\tRecipeController.deleteLocalRecipe(recipeID, getApplicationContext());\n\t}", "int deleteByPrimaryKey(String thingid);", "public void delete(Book book){\n try{\n String query = \"DELETE FROM testdb.book WHERE id=\" + book.getId();\n DbConnection.update(query);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "int deleteByPrimaryKey(String taxregcode);", "@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }", "public void eliminar(){\n SQLiteDatabase db = conn.getWritableDatabase();\n String[] parametros = {cajaId.getText().toString()};\n db.delete(\"personal\", \"id = ?\", parametros);\n Toast.makeText(getApplicationContext(), \"Se eliminó el personal\", Toast.LENGTH_SHORT).show();\n db.close();\n }", "int deleteByExample(ReEducationExample example);", "public void removeRecipe(Recipe recipe) {\r\n \t\trecipeList.remove(recipe);\r\n \t\tpersistenceManager.remove(recipe);\r\n \t}", "int deleteByPrimaryKey(Integer petid);", "public void onDeleteButton(View view){\n if (db.getAllRecipes().size() <= 0) {\n Toast.makeText(this, \"There are no recipes in database!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n // We have to add a confirmation here before delete all recipes.\n AlertDialog.Builder dialog = new AlertDialog.Builder(RecipesActivity.this);\n dialog.setTitle(\"Delete?\")\n .setMessage(\"Are you sure you want to delete ALL recipes?\")\n .setNegativeButton(\"Cancel\", null)\n .setPositiveButton(\"Delete\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialogInterface, int which) {\n /// Remove all recipes from database\n db.deleteAll();\n recipes.clear();\n adapter.notifyDataSetChanged();\n }\n })\n .setIcon(R.drawable.ic_dialog_alert)\n .show();\n }", "public void delete(RutaPk pk) throws RutaDaoException;", "@DeleteMapping(\"/{id}\")\n @PreAuthorize(\"hasRole('ADMIN') or hasRole('USER')\")\n public ResponseEntity<String> deleteRecipeById(@PathVariable(\"id\") int id) {\n recipeService.deleteRecipe(id);\n return ResponseEntity.status(HttpStatus.OK).body(\"Recipe deleted successfully..\");\n }", "@Test\n public void deleteRecipe_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipe - Returns True\",true, testDatabase.deleteRecipe(returned));\n\n }", "@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }", "int deleteByPrimaryKey(Integer rebateId);", "int deleteByPrimaryKey(String goodsId);", "private void deleteBook() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Delete the book only if mBookId matches DEFAULT_BOOK_ID\n if (mBookId != DEFAULT_BOOK_ID) {\n bookEntry.setId(mBookId);\n mDb.bookDao().deleteBook(bookEntry);\n }\n finish();\n }\n });\n\n }", "int deleteByPrimaryKey(Integer educationid);", "@Test\n public void deleteRecipeCategory_Deletes(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n int returnedCategory = testDatabase.addRecipeCategory(recipeCategory);\n testDatabase.deleteRecipeCategory(returnedCategory);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returnedRecipe);\n boolean deleted = true;\n if(allCategories != null){\n for(int i = 0; i < allCategories.size(); i++){\n if(allCategories.get(i).getCategoryID() == returnedCategory){\n deleted = false;\n }\n }\n }\n assertEquals(\"deleteRecipeCategory - Deletes From Database\", true, deleted);\n }", "int deleteByPrimaryKey(Long idreg);", "@Test\n public void deleteRecipeIngredient_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipeIngredient - Returns True\",true, testDatabase.deleteRecipeIngredients(returned));\n }", "int deleteByPrimaryKey(String bid);", "public void delete() throws SQLException {\r\n\t\t//SQL Statement\r\n\r\n\t\tString sql = \"DELETE FROM \" + table+ \" WHERE \" + col_genreID + \" = ?\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setInt(1, this.getGenreID());\r\n\r\n\t\tint rowsDeleted = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \"+rowsDeleted+ \"Zeilen gelöscht\");\r\n\t\tstmt.close();\r\n\t}", "int deleteByPrimaryKey(String terminalId);", "int deleteByPrimaryKey(String bookIsbn);", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "int deleteByPrimaryKey(Integer tfId);", "@RequestMapping(value = \"/recipe/remove.do\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic DeleteRecipeResponse deleteRecipe(@RequestParam(\"recipeId\") String recipeId) {\n\t\tDeleteRecipeRequest request = new DeleteRecipeRequest();\n\t\tDeleteRecipeResponse response = null;\n\n\t\trequest.setRecipeId(Integer.parseInt(recipeId));\n\t\ttry {\n\t\t\tresponse = recipeJaxProxyService.deleteRecipe(request);\n\t\t\tlogger.debug(response.getCode());\n\t\t} catch (SoapFaultClientException sfce) {\n\t\t\tlogger.error(\"We sent an invalid message\", sfce);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Unexpected exception\", e);\n\t\t}\n\n\t\treturn response;\n\t\t\n\t}", "int deleteByPrimaryKey(String idTipoComprobante) throws SQLException;", "int deleteByExample(NjProductTaticsRelationExample example);", "int deleteByPrimaryKey(String bookId);", "boolean deleteEntry(String id) throws SQLException;", "@Query(\"DELETE FROM lyrics WHERE id = :lyricId\")\n void deleteLyricById(int lyricId);", "int deleteByPrimaryKey(String licFlow);", "int deleteByPrimaryKey(Integer prefecturesId);", "int deleteByExample(Assist_tableExample example);", "int deleteByPrimaryKey(Long articleTagId);", "int deleteByExample(CTipoComprobanteExample example) throws SQLException;", "public String deleteResearcher(int id);", "@Test\n\t@DatabaseSetup(value = \"classpath:databaseEntries.xml\", type = DatabaseOperation.CLEAN_INSERT)\n\tpublic void testDeleteLecturer() {\n\t\t\n\t\t//Confirm table row count\n\t\tlecturerJdbcDaoSupport = (LecturerJdbcDaoSupport) autoWireContext.getBean(\"lecturerJdbcDaoSupport\");\n\t\tlecturerJdbcDaoSupport.deleteLecturer(\"L001\");\n\t\tint rowCount = lecturerJdbcDaoSupport.countRows();\n\t\tassertEquals(2, rowCount);\n\t}", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "int deleteByPrimaryKey(Long tagid);", "public void vaciarCarrito() {\r\n String sentSQL = \"DELETE from carrito\";\r\n try {\r\n Statement st = conexion.createStatement();\r\n st.executeUpdate(sentSQL);\r\n st.close();\r\n LOG.log(Level.INFO,\"Carrito vaciado\");\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n \tLOG.log(Level.WARNING,e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "int deleteByExample(BnesBrowsingHisExample example) throws SQLException;", "private void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query = \"select * from items where IT_ID=?\";\n\t\t\t\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\tpst.setString(1, txticode.getText());\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 1)\n\t\t\t{\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(null, \"Are you sure you want to delete selected item data?\", \"ALERT\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(choice==JOptionPane.YES_OPTION)\n\t\t\t\t{\n\t\t\t\t\tquery=\"delete from items where IT_ID=?\";\n\t\t\t\t\tpst = con.prepareStatement(query);\n\t\t\t\t\t\n\t\t\t\t\tpst.setString(1, txticode.getText());\n\t\t\t\t\t\n\t\t\t\t\tpst.execute();\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Deleted Successfully\", \"RESULT\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tloadData();\n\t\t\t\t\n\t\t\t\trs.close();\n\t\t\t\tpst.close();\n\t\t\t\tcon.close();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Record Not Found!\", \"Alert\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t\tcon.close();\n\t\t\t\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t}", "int deleteByPrimaryKey(String courseId);", "int deleteByExample(ResourceExample example);", "private void deleteBook() {\n if (currentBookUri != null) {\n int rowsDeleted = getContentResolver().delete(currentBookUri, null, null);\n\n // Confirmation or failure message on whether row was deleted from database\n if (rowsDeleted == 0)\n Toast.makeText(this, R.string.editor_activity_book_deleted_error, Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, R.string.editor_activity_book_deleted, Toast.LENGTH_SHORT).show();\n }\n finish();\n }", "void deleteQuestion(String questionId);", "@Test\n\t@WithMockCustomUser(username = \"admin\")\n\tpublic void deleteRecipeAsAdmin() throws Exception {\n\t\tRecipe recipe = recipeBuilder(1L);\n\n\t\twhen(recipeService.findById(1L)).thenReturn(recipe);\n\t\twhen(userService.findAll()).thenReturn(new ArrayList<>());\n\t\tdoAnswer(invocation -> null).when(recipeService).deleteById(1L);\n\n\t\tmockMvc.perform(post(\"/recipes/1/delete\"))\n\t\t\t\t.andExpect(authenticated())\n\t\t\t\t.andExpect(flash().attributeExists(\"flash\"))\n\t\t\t\t.andExpect(status().is3xxRedirection())\n\t\t\t\t.andExpect(redirectedUrl(\"/recipes\"));\n\n\t\tverify(recipeService).findById(any(Long.class));\n\t\tverify(userService).findAll();\n\t\tverify(recipeService).deleteById(any(Long.class));\n\t}", "private void deletePet() {\n if (mCurrentPetUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentPetUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "@Override\n public void removeFromDb() {\n }", "public int delete(int rb_seq) {\n\t\t\n\t\tint ret = readBookDao.delete(rb_seq);\n\t\treturn ret;\n\t}", "@Override\n\tpublic boolean delete() {\n\t\tString sql=\"DELETE FROM tc_student where id=\"+id;\n\t\t//`\n\t\t\n\t\tSystem.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t}", "public void eliminar(Long id) throws AppException;", "int deleteByPrimaryKey(String guid);", "int deleteByPrimaryKey(String guid);", "int deleteByPrimaryKey(Short act_id);", "protected void deleteRecord() throws DAOException {\r\n\t\t// Elimina relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.delete(relco);\r\n\t\t}\r\n\t\t// Elimina objeto\r\n\t\tobjectDao.delete(object);\r\n\t}", "@Test\n\t@WithMockCustomUser(username = \"daniel\")\n\tpublic void deleteRecipeAsRecipeOwner() throws Exception {\n\t\tRecipe recipe = recipeBuilder(1L);\n\n\t\twhen(recipeService.findById(1L)).thenReturn(recipe);\n\t\twhen(userService.findAll()).thenReturn(new ArrayList<>());\n\t\tdoAnswer(invocation -> null).when(recipeService).deleteById(1L);\n\n\t\tmockMvc.perform(post(\"/recipes/1/delete\"))\n\t\t\t\t.andExpect(authenticated())\n\t\t\t\t.andExpect(flash().attributeExists(\"flash\"))\n\t\t\t\t.andExpect(status().is3xxRedirection())\n\t\t\t\t.andExpect(redirectedUrl(\"/recipes\"));\n\n\t\tverify(recipeService, times(2)).findById(any(Long.class));\n\t\tverify(userService).findAll();\n\t\tverify(recipeService).deleteById(any(Long.class));\n\t}", "int deleteByPrimaryKey(RepStuLearningKey key);", "int deleteByPrimaryKey(String id);", "int deleteByPrimaryKey(String id);", "int deleteByPrimaryKey(String id);", "int deleteByPrimaryKey(String id);", "int deleteByPrimaryKey(String id);", "int deleteByPrimaryKey(String id);", "int deleteByPrimaryKey(String id);", "int deleteByPrimaryKey(String id);", "int deleteByPrimaryKey(String id);" ]
[ "0.7631664", "0.7340721", "0.7277232", "0.71459794", "0.7118762", "0.6874839", "0.67877775", "0.6764123", "0.67451334", "0.67415917", "0.6696412", "0.66903865", "0.66834974", "0.6663428", "0.6655505", "0.6551513", "0.6509547", "0.64895004", "0.6458502", "0.64295393", "0.642028", "0.6415468", "0.6387095", "0.6380995", "0.63718563", "0.63625294", "0.63486224", "0.6341623", "0.63383305", "0.633801", "0.6330365", "0.6326243", "0.631607", "0.62998134", "0.62744784", "0.6274098", "0.6267574", "0.6259492", "0.62490696", "0.6241811", "0.624177", "0.6230352", "0.6226416", "0.62174726", "0.6207657", "0.61859316", "0.61771303", "0.6171688", "0.6171643", "0.61536163", "0.6151437", "0.614392", "0.61363226", "0.61303854", "0.61282355", "0.61265177", "0.6120205", "0.61133385", "0.6112861", "0.6112015", "0.6110403", "0.6107475", "0.6102205", "0.6099916", "0.6094988", "0.6093515", "0.60840887", "0.60829973", "0.6080046", "0.60787547", "0.6078474", "0.6072038", "0.6069363", "0.60637635", "0.60616255", "0.6057209", "0.6053988", "0.6051614", "0.60490626", "0.60408443", "0.6039382", "0.6038125", "0.6032699", "0.6026606", "0.6022962", "0.601465", "0.601465", "0.60096055", "0.60059905", "0.6004705", "0.60025656", "0.5992926", "0.5992926", "0.5992926", "0.5992926", "0.5992926", "0.5992926", "0.5992926", "0.5992926", "0.5992926" ]
0.7532781
1
edit a recipe in DB
void updateRecipe(Recipe recipe) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateRecipe(Recipe recipe) {\n try {\n PreparedStatement preparedStatement = connection\n .prepareStatement(\"update recipe set recipename=?, dishtype=?, dishflavour=?, difficultylevel=?\" +\n \" where recipeid=?\");\n // Parameters start with 1\n preparedStatement.setString(1, recipe.getName());\n preparedStatement.setString(2, recipe.getType());\n preparedStatement.setString(3, recipe.getFlavour());\n preparedStatement.setString(4, recipe.getDifficulty());\n preparedStatement.setInt(5, recipe.getRecipeId());\n preparedStatement.executeUpdate();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@RequestMapping(\"/recipe/update/{id}\")\n public String updateRecipe(@PathVariable String id, Model model){\n model.addAttribute(\"recipe\", recipeService.findCommandById(new Long(id)));\n \n return \"recipe/recipeForm\";\n }", "@Test\n\tpublic void testEditExistedRecipe() {\n\t\tcoffeeMaker.addRecipe(recipe2);\n\t\tassertEquals(\"Mocha\", coffeeMaker.editRecipe(0, recipe3));\n\t\tassertEquals(\"Latte\", coffeeMaker.getRecipes()[0].getName());\n\t}", "@PostMapping(\"/editrecipe\")\n\tpublic ModelAndView editRecipe(Recipe recipe) {\n\t\t\n\t\tRecipe oldRecipe = getRecipeFromList(recipe.getId());\t\t\t\n\t\t\n\t\toldRecipe.setCreatedBy(recipe.getCreatedBy());\n\t\toldRecipe.setName(recipe.getName());\n\t\toldRecipe.setTimeRecipe(recipe.getTimeRecipe());\n\t\t\n\t\treturn getMV();\n\t}", "public boolean updateRecipe(long id, String recipeName, String recipe,String process, String notes)\n {\n ContentValues cv = new ContentValues();\n cv.put(RECIPE_NAME, recipeName);\n cv.put(RECIPE, recipe);\n cv.put(PROCESS, process);\n cv.put(NOTES, notes);\n this.openWriteableDB();\n db.update(TABLE_RECIPES, cv, \"_id = ?\", new String[]{String.valueOf(id)});\n db.close();\n return true;\n }", "private void editRecipe(String recipeString) {\n\t\tUUID recipeID = UUID.fromString(recipeString);\n\t\tRecipe newRecipe = grabRecipeInfo();\n\t\tRecipeController.updateRecipe(recipeID, newRecipe,\n\t\t\t\tgetApplicationContext());\n\t}", "@Test\r\n public void testEditRecipe() {\r\n coffeeMaker.addRecipe(recipe1);\r\n assertEquals(recipe1.getName(), coffeeMaker.editRecipe(0, recipe2));\r\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\teditRecipe(recipeString);\n\t\t\t\t\t\t\t\t\t\tsavedDialog();\n\t\t\t\t\t\t\t\t\t}", "@Override\n \tpublic void update(DbManager db)\n \t{\n \t\tDbController DbC = DbController.getInstance(this, this);\n \t\tviewedRecipe = DbC.getUserRecipe(uri);\n \t\trecipeName.setText(viewedRecipe.getTitle());\n \t\tinstructions.setText(viewedRecipe.getInstructions());\n \t\t\n \t}", "@Test\r\n public void testEditNonExistRecipe() {\r\n coffeeMaker.addRecipe(recipe1);\r\n assertNull(coffeeMaker.editRecipe(1, recipe2));\r\n }", "@Test\n public void editRecipe_ReturnsTrue(){\n testDatabase.addRecipe(testRecipe);\n testRecipe.setTitle(\"TestRecipe Updated\");\n testRecipe.setServings(1.5);\n testRecipe.setPrep_time(15);\n testRecipe.setTotal_time(45);\n testRecipe.setFavorited(true);\n listOfCategories.clear();\n listOfCategories.add(recipeCategory);\n testRecipe.setCategoryList(listOfCategories);\n listOfIngredients.clear();\n recipeIngredient.setUnit(\"tbsp\");\n recipeIngredient.setQuantity(1.5);\n recipeIngredient.setDetails(\"Brown Sugar\");\n listOfIngredients.add(recipeIngredient);\n testRecipe.setIngredientList(listOfIngredients);\n listOfDirections.clear();\n listOfDirections.add(recipeDirection1);\n testRecipe.setDirectionsList(listOfDirections);\n\n assertEquals(\"editRecipe - Returns True\", true, testDatabase.editRecipe(testRecipe));\n }", "@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}", "@Test\n public void editIngredient_CorrectInformation(){\n int returned = testDatabase.getIngredient(\"salt\");\n testDatabase.deleteIngredient(returned);\n Ingredient newIngredient = new Ingredient(ingredientID, \"salt\");\n testDatabase.editIngredient(newIngredient);\n Ingredient retrieved = testDatabase.getIngredient(ingredientID);\n assertEquals(\"editIngredient - Correct Name\", \"salt\", retrieved.getName());\n assertEquals(\"editIngredient - Correct ID\", ingredientID, retrieved.getKeyID());\n }", "Product editProduct(Product product);", "@Override\n\tpublic void save(RecipeTable recipe) {\n\t\t\n\t}", "@RequestMapping(\"/editRecipe\")\r\n\tpublic ModelAndView editRecipe(@RequestParam Integer idrKey) {\r\n\t\tModelAndView mav = new ModelAndView();\r\n\r\n\t\tmav.addObject(\"recipe\", recipeDAO.findRecipeByPrimaryKey(idrKey));\r\n\t\tmav.setViewName(\"recipe/editRecipe.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}", "private final void updateRecipe(String text, String title) {\n \trecipe.setTitle(title);\n \trecipe.setDescription(text);\n \trecipe.setType(typeSpinner.getSelectedItem().toString());\n \tif(recipe.getId()==null) {\n \t\tnew CreateRecipeTask().execute();\n \t} else {\n \t\tnew UpdateRecipeTask().execute();\n \t}\n }", "public EditRecipeAction(IWorkbenchWindow window) {\n\t\tthis.window = window;\n\t\tsetId(ID);\n\t\tsetText(\"&Edit\");\n\t\tsetToolTipText(\"Edits the currently selected recipe.\");\n\t\tsetImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(\n\t\t\t\tApplication.PLUGIN_ID, IImageKeys.EDIT));\n\t\twindow.getSelectionService().addSelectionListener(this);\n\t}", "private void edit() {\n\n\t}", "@RequestMapping(\"/editRecipe\")\n\tpublic ModelAndView editMV(Recipe recipe) {\n\t\tRecipe editRecipe = getRecipeFromList(recipe.getId());\n\t\tModelAndView mv = new ModelAndView(\"edit\");\n\t\t\n\t\tmv.addObject(\"recipe\", editRecipe);\t\t\n\t\treturn mv;\n\t}", "@Test\n public void editRecipe_CorrectInformation(){\n int returned = testDatabase.addRecipe(testRecipe);\n listOfCategories.clear();\n listOfCategories.add(recipeCategory);\n listOfIngredients.clear();\n Ingredient ingredient = new Ingredient(-1, \"Sugar\");\n testDatabase.addIngredient(ingredient);\n int ingredientID = testDatabase.addIngredient(ingredient);\n RecipeIngredient recipeIngredient = new RecipeIngredient(-1, -1, ingredientID, 1.5, \"tbsp\", \"Brown Sugar\");\n listOfIngredients.add(recipeIngredient);\n listOfDirections.clear();\n RecipeDirection recipeDirection1 = new RecipeDirection(-1, -1, \"TestDirection1\", 1);\n listOfDirections.add(recipeDirection1);\n\n Recipe edited = new Recipe(testRecipe.getKeyID(), \"TestRecipe Updated\", 1.5, 15, 45, true, listOfIngredients, listOfDirections, listOfCategories);\n\n testDatabase.editRecipe(edited);\n Recipe test = testDatabase.getRecipe(returned);\n\n // Check all recipe fields are accurate\n assertEquals(\"editRecipe - Correct Title\", \"TestRecipe Updated\", test.getTitle());\n assertEquals(\"editRecipe - Correct Servings\", 1.5, test.getServings(), 0);\n assertEquals(\"editRecipe - Correct prep_time\", 15, test.getPrep_time(), 0);\n assertEquals(\"editRecipe - Correct total_time\", 45, test.getTotal_time(), 0);\n assertEquals(\"editRecipe - Correct Favorited\", true, test.getFavorited());\n assertEquals(\"editRecipe - Correct Ingredient Unit\", \"tbsp\", test.getIngredientList().get(0).getUnit());\n assertEquals(\"editRecipe - Correct Ingredient Quantity\", 1.5, test.getIngredientList().get(0).getQuantity(), 0);\n assertEquals(\"editRecipe - Correct Ingredient Details\", \"Brown Sugar\", test.getIngredientList().get(0).getDetails());\n assertEquals(\"editRecipe - Correct Direction Text\", \"TestDirection1\", test.getDirectionsList().get(0).getDirectionText());\n assertEquals(\"editRecipe - Correct Direction Number\", 1, test.getDirectionsList().get(0).getDirectionNumber());\n }", "void editTariff(int idTariff, String title, String description, String price) throws ServiceException;", "public void editFood(Food editedFood) {\n\t\t\n\t\tfoodDao.editFood(editedFood);\n\t\t\n\t}", "void edit(Price Price);", "@Override\n public void updateRecipe(RecipeEntity recipeEntity)\n {\n if (this.load(RecipeEntity.class, recipeEntity.getId()) != null)\n this.update(recipeEntity);\n }", "Meal editMeal(MealEditDTO mealEditDTO);", "@Test\n public void editIngredient_ReturnsTrue(){\n int returned = testDatabase.getIngredient(\"egg\");\n testDatabase.deleteIngredient(returned);\n Ingredient newIngredient = new Ingredient(ingredientID, \"egg\");\n assertEquals(\"editIngredient - Returns True\", true, testDatabase.editIngredient(newIngredient));\n }", "public void EditIngredient(int code, String name, String description, int price, String presentation, String image, String categorie) {\n Categories tempC = searchCategorie(categorie);\n Ingredients tempE = tempC.searchIngredient(code);\n tempE.setDescription(description);\n tempE.setImage(image);\n tempE.setPresentation(presentation);\n tempE.setPrice(price);\n tempE.setName(name);\n }", "public void editOperation() {\n\t\t\r\n\t}", "public Recipe modifyExistingRecipeInRepository(Recipe recipe) {\n\t\treturn saveRecipeToRepository(recipe);\n\t}", "Recipe findRecipeById(Long id) throws ServiceFailureException;", "@Test\n\tpublic void testEditNotExistedRecipe() {\n\t\tcoffeeMaker.addRecipe(recipe2);\n\t\tassertEquals(null, coffeeMaker.editRecipe(1, recipe3));\n\t\tassertEquals(\"Mocha\", coffeeMaker.getRecipes()[0].getName());\n\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif (isEditableRecipe()) {\n\t\t\t\t\t\teditMode();\n\t\t\t\t\t\tButton saveButton = (Button) findViewById(R.id.b_recipeSave);\n\t\t\t\t\t\tsaveButton\n\t\t\t\t\t\t\t\t.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t// AS: The save button calls editRecipe\n\t\t\t\t\t\t\t\t\t\t// then finishes\n\t\t\t\t\t\t\t\t\t\teditRecipe(recipeString);\n\t\t\t\t\t\t\t\t\t\tsavedDialog();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\tButton newIngredientButton = (Button) findViewById(R.id.bNewIngredient);\n\n\t\t\t\t\t\tnewIngredientButton\n\t\t\t\t\t\t\t\t.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\tingredientDialog();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowThatNotEditable();\n\t\t\t\t\t}\n\t\t\t\t}", "boolean editEntry(String id, String val, String colName) throws Exception;", "private void saveIngreInRecipe(Recipe recipe) {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.get() == ButtonType.OK) {\r\n try {\r\n if (saveRecipe(recipe)) {\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"Message\");\r\n alert2.setContentText(\"Saved..\");\r\n alert2.show();\r\n\r\n tblRecipe.getItems().clear();\r\n\r\n try {\r\n loadRecipe(getRecipe(cmbCakeID.getSelectionModel().getSelectedItem()));\r\n } catch (SQLException | ClassNotFoundException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n\r\n } else {\r\n new Alert(Alert.AlertType.WARNING, \"Try Again..\").show();\r\n }\r\n } catch (Exception e) {\r\n new Alert(Alert.AlertType.WARNING, \"Duplicate Entry..\").show();\r\n }\r\n }\r\n }", "public void EditDish(int code, String name, String description, int price, String presentation, String image, String ingredients, String categorie) {\n Categories tempC = searchCategorie(categorie);\n Dish tempD = tempC.searchDish(code);\n tempD.setDescription(description);\n tempD.setIngredients(ingredients);\n tempD.setImage(image);\n tempD.setPresentation(presentation);\n tempD.setPrice(price);\n tempD.setName(name);\n }", "@RequestMapping(value = \"/recipe/editRecipe.do\", method = {RequestMethod.POST, RequestMethod.GET})\n\t@ResponseBody\n\tpublic EditRecipeResponse editRecipe(@RequestBody Recipe recipe, @RequestParam String reqType) {\n\t\tEditRecipeRequest request = new EditRecipeRequest();\n\t\tEditRecipeResponse response = null;\n\n\t\tif (reqType.equals(\"ADD\")){\n\t\t\trequest.setEditType(\"ADD\");\n\t\t}else if (reqType.equals(\"UPDATE\")){\n\t\t\trequest.setEditType(\"UPDATE\");\n\t\t}\n\t\trequest.setRecipe(recipe);\n\n\t\ttry {\n\t\t\tresponse = recipeJaxProxyService.editRecipe(request);\n\t\t\tlogger.debug(response.getCode());\n\t\t} catch (SoapFaultClientException sfce) {\n\t\t\tlogger.error(\"We sent an invalid message\", sfce);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Unexpected exception\", e);\n\t\t}\n\n\t\treturn response;\n\t}", "public abstract void edit();", "@RequestMapping(value = \"/editFact/{factId}\", method = { RequestMethod.GET, RequestMethod.POST })\n\tpublic void editFact(HttpServletRequest req, HttpServletResponse resp, @PathVariable Integer factId, Model model) throws IOException, ServletException {\n\t\tFact fact = factDao.findFactById(factId);\n\t\tfactDao.editFact(fact);\n\t}", "protected abstract void editItem();", "public void saveRecipe(Recipe recipe) {\r\n \t\tif (!recipeList.contains(recipe)) {\r\n \t\t\trecipeList.add(recipe);\r\n \t\t}\r\n \t\tpersistenceManager.save(recipe);\r\n \t}", "@Test\n public void editRecipe_ReturnsFalse(){\n Recipe invalidRecipe = new Recipe();\n assertEquals(\"editRecipe - Returns False\", false, testDatabase.editRecipe(invalidRecipe));\n }", "public void editar(String update){\n try {\n Statement stm = Conexion.getInstancia().createStatement();\n stm.executeUpdate(update);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "public void addIngredientRecipe(IngredientRecipePOJO ingr);", "@Transactional\r\n\t@RequestMapping(value = \"updateIngredient\", method = RequestMethod.POST)\r\n\t@Override\r\n\tpublic String update(Ingredient ingredient) {\n\t\treturn null;\r\n\t}", "DenialReasonDto edit(int id, DenialReasonDto denialReason);", "@Override\n\tpublic Rol edit(Rol p) {\n\t\treturn dao.save(p);\n\t}", "public static void editReminder()\n {\n System.out.print(\"Select event number to edit: \");\n String editEvNum = CheckInput.getString();\n System.out.print(\"New reminder date: \");\n String newDate = CheckInput.getString();\n System.out.print(\"New reminder time: \");\n String newTime = CheckInput.getString();\n System.out.print(\"New frequency: \");\n String newFreq = CheckInput.getString();\n try\n {\n PreparedStatement ps = null;\n String editRem = \"update reminder set reminderdate = ?, remindertime = ?, frequency = ? where eventnumber = ?\";\n ps = conn.prepareStatement(editRem);\n ps.setString(1,newDate);\n ps.setString(2,newTime);\n ps.setString(3,newFreq);\n ps.setString(4,editEvNum);\n ps.executeUpdate();\n }\n catch(Exception ex)\n {\n ex.printStackTrace();\n }\n }", "@Override\n\tpublic void editar(Contato contato) {\n\t\tthis.dao.editar(contato);\n\t\t\n\t}", "@RequestMapping(method = RequestMethod.POST, value = \"/recipes\", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<Recipe> saveOrUpdateRecipe(@RequestBody final Recipe recipe) {\n final Recipe savedRecipe = this.recipeRepository.save(recipe);\n return new ResponseEntity<>(savedRecipe, HttpStatus.OK);\n }", "public void saveToDatabase(View view) {\n // new implementation\n EditText recipeName = findViewById(R.id.input_Name);\n EditText recipeDirections = findViewById(R.id.input_Directions);\n EditText recipeNotes = findViewById(R.id.input_Notes);\n\n\n if (!(recipeName.getText().toString().equals(\"\"))) {\n newRecipe.setName(recipeName.getText().toString());\n newRecipe.setDirections(recipeDirections.getText().toString());\n newRecipe.setNotes(recipeNotes.getText().toString());\n\n dbHandler.addRecipe(newRecipe);\n\n finish();\n }\n else {\n Toast.makeText(this, \"You must enter a name for your recipe!\", Toast.LENGTH_SHORT).show();\n }\n }", "@RequestMapping(\"/editRecipePatient\")\r\n\tpublic ModelAndView editRecipePatient(@RequestParam Integer recipe_idr, @RequestParam Integer patient_id) {\r\n\t\tPatient patient = patientDAO.findPatientByPrimaryKey(patient_id, -1, -1);\r\n\r\n\t\tModelAndView mav = new ModelAndView();\r\n\t\tmav.addObject(\"recipe_idr\", recipe_idr);\r\n\t\tmav.addObject(\"patient\", patient);\r\n\t\tmav.setViewName(\"recipe/patient/editPatient.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}", "public boolean editBike(Bike bike){//Edits the desired bike with matching bikeId\n if(!findBike(bike.getBikeId())){\n return false;\n //Bike_ID not registered in database, can't edit what's not there\n }else{\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(EDIT)){\n \n ps.setDate(1, bike.getSqlDate());\n ps.setDouble(2, bike.getPrice());\n ps.setString(3, bike.getMake());\n ps.setInt(4,bike.getTypeId());\n if(bike.getStationId() == 0){\n ps.setNull(5, INTEGER);\n }else{\n ps.setInt(5, bike.getStationId());\n }\n ps.setInt(6, bike.getBikeId());\n ps.executeUpdate();\n return true;\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n return false;\n }", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "Category editCategory(Category category);", "public void editProduct(int index, String description, String category, int quantity, int weight, int price, int stocknumber) {\t\t\n\t}", "public Equipamento editar(Equipamento eq) {\r\n\t\t\tthis.conexao.abrirConexao();\r\n\t\t\tString sqlUpdate = \"UPDATE equipamentos SET nome=?,descricao=?, id_usuario=? WHERE id_equipamentos=?\";\r\n\t\t\ttry {\r\n\t\t\t\tPreparedStatement statement = (PreparedStatement) this.conexao.getConexao().prepareStatement(sqlUpdate);\r\n\t\t\t\tstatement.setString(1, eq.getNome());\r\n\t\t\t\tstatement.setString(2, eq.getDescricao());\r\n\t\t\t\tstatement.setLong(3, eq.getUsuario().getId());\r\n\t\t\t\tstatement.setLong(4, eq.getId());\r\n\t\t\t\t/*int linhasAfetadas = */statement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tthis.conexao.fecharConexao();\r\n\t\t\t}\r\n\t\t\treturn eq;\r\n\t\t}", "@PutMapping(\"/{id}\")\n @PreAuthorize(\"hasRole('ADMIN') or hasRole('USER')\")\n public ResponseEntity<RecipeDto> update(@Valid @RequestBody RecipeDto recipeDto, @PathVariable(\"id\") int id) {\n return new ResponseEntity<>(RecipeDto.from(recipeService.updateRecipe(id, Recipe.from(recipeDto))), HttpStatus.OK);\n }", "@Test\n public void\n updatingRecipeSetsRecipeItems()\n throws Exception {\n Recipe testRecipe =\n new Recipe();\n testRecipe.setId(1L);\n\n Item itemWithOnlyId = new Item();\n itemWithOnlyId.setId(1L);\n Ingredient ingredient = new Ingredient(\n itemWithOnlyId, \"\", \"\"\n );\n testRecipe.addIngredient(ingredient);\n\n // Arrange item to be returned\n // from database\n Item itemFromDatabase = new Item();\n itemFromDatabase.setId(1L);\n itemFromDatabase.setName(\"name\");\n\n // Arrange:\n // make itemService return item when called\n when(itemService.findOne(1L)).thenReturn(\n itemFromDatabase\n );\n when(recipeDao.findOne(any())).thenReturn(\n testRecipe\n );\n when(recipeDao.findOne(any())).thenReturn(\n testRecipe\n );\n // Arrange:\n // when recipeDao.save will be called\n // we save recipe that was passed\n doAnswer(\n invocation -> {\n Recipe r = invocation.getArgumentAt(0, Recipe.class);\n return r;\n }\n ).when(recipeDao).save(any(Recipe.class));\n\n\n // Act: update recipe\n Recipe savedRecipe =\n recipeService.save(testRecipe, new User());\n\n assertThat(\n \"item returned will item from database\",\n savedRecipe.getIngredients().get(0).getItem(),\n is(itemFromDatabase)\n );\n\n // verify mock interactions\n verify(itemService).findOne(any());\n verify(recipeDao, times(2)).findOne(1L);\n verify(recipeDao).save(any(Recipe.class));\n }", "@Override\n\tpublic int edit(FoodCategory foodCategory) {\n\t\treturn foodCategoryDao.edit(foodCategory);\n\t}", "public void insert(Recipe recipe ) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tsession.save(recipe);\n\t\ttx.commit();\n\t\tsession.close();\n\t}", "void editMyPost(Post post);", "@PostMapping(\"/recipes\")\n\tpublic String postRecipe(@RequestBody Recipe recipe) {\n\t\tSystem.out.println(\"hit recipes post\");\n\t\tSystem.out.println(recipe.getName());\n\t\tSystem.out.println(recipe.getSpoonacularId());\n\t\tSystem.out.println(recipe.getImage());\n\t\t\n\t\tList<Food> newFoods = recipe.getFoods();\n\t\tList<Step> newSteps = recipe.getSteps();\n\t\trecipe.setFoods(null);\n\t\trecipe.setSteps(null);\n\t\tRecipe newRecipe = rRepo.save(recipe);\n\t\t\n\t\tfor (Food food: newFoods) {\n\t\t\tFood newFood = new Food(food.getName(), food.getAmount());\n\t\t\tnewFood.setRecipe(newRecipe);\n\t\t\tfRepo.save(newFood);\n\t\t}\n\t\tfor (Step step: newSteps) {\n\t\t\tStep newStep = new Step(step.getName());\n\t\t\tnewStep.setRecipe(newRecipe);\n\t\t\tsRepo.save(newStep);\n\t\t}\n\n\t\treturn \"success\";\n\t}", "RecipeObject addRecipe(RecipeObject recipe);", "public void editEntry(int id) {\n ListView entryList = (ListView) getView().findViewById(R.id.breakfastFoods);\n ListAdapter arrayAdapter = entryList.getAdapter();\n String entry = (String) arrayAdapter.getItem(id);\n Intent i = new Intent(getActivity(), EditEntry.class);\n i.putExtra(\"pos\", \"\" + id);\n startActivity(i);\n }", "public void updateRecipe(Recipe recipe) {\n repository.insertOrUpdateRecipe(recipe);\n\n // update app widget\n Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_UPDATE);\n intent.setComponent(new ComponentName(app.getApplicationContext(), BakingTimeWidgetProvider.class));\n app.getApplicationContext().sendBroadcast(intent);\n }", "@Test\n\tpublic void testAddRecipe(){\n\t\t\n\t\ttestingredient1.setName(\"Peanut Butter\");\n\t\ttestingredient2.setName(\"Jelly\");\n\t\ttestingredient3.setName(\"Bread\");\n\t\t\n\t\t\n\t\tingredients.add(testingredient1);\n\t\tingredients.add(testingredient2);\n\t\tingredients.add(testingredient3);\n\t\t\n\t\ttestRecipe.setName(\"PB and J\");\n\t\ttestRecipe.setDescription(\"A nice, tasty sandwich\");\n\t\ttestRecipe.setIngredients(ingredients);\n\t\t\n\t\ttest2.saveRecipe(testRecipe);\n\t\t//test2.deleteRecipe(testRecipe);\n\t}", "void deleteRecipe(RecipeObject recipe);", "public void edit(Person person) {\n\t\tpersonRepository.edit(person);\n\t}", "@Override\n\tpublic Integer edit(SocialInsuranceRecord insuranceRecord, Integer id) {\n\t\treturn dao.updateByPrimaryKey(insuranceRecord, id);\n\t}", "@Override\n\tpublic void edit(HttpServletRequest request,HttpServletResponse response) {\n\t\tint id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tQuestionVo qv=new QuestionVo().getInstance(id);\n\t\tcd.edit(qv);\n\t\ttry{\n\t\t\tresponse.sendRedirect(\"Admin/question.jsp\");\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t}", "public void editar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.edit(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "private void editEntry(int index) {\n Intent ChangePotintent = AddPot.makeIntent(MainActivity.this);\n ChangePotintent.putExtra(\"Index\", index);\n startActivityForResult(ChangePotintent, REQUEST_CODE_CHANGEPOT);\n }", "@Override\n public void onClickRecipe(Recipe recipe) {\n String recipeJson = ObjectConverter.getStringFromRecipe(recipe);\n SharedPreferences.Editor editor = mRecipeSharedPref.edit();\n editor.putString(getString(R.string.recipe_key), recipeJson);\n editor.apply();\n\n //detail intent\n Intent intentToStartDetailActivity = new Intent(this, RecipeDetailActivity.class);\n intentToStartDetailActivity.putExtra(getString(R.string.recipe_key), recipe);\n startActivity(intentToStartDetailActivity);\n\n\n }", "@RequestMapping(\"/saveRecipe\")\r\n\tpublic String saveRecipe(@ModelAttribute Recipe recipe) {\r\n\t\trecipeService.saveRecipe(recipe);\r\n\t\treturn \"forward:/indexRecipe\";\r\n\t}", "public boolean ModificarProducto(int id,String nom,String fab,int cant,int precio,String desc,int sucursal) {\n boolean status=false;\n int res =0;\n try {\n conectar(); \n res=state.executeUpdate(\"update producto set nombreproducto='\"+nom+\"', fabricante='\"+fab+\"',cantidad=\"+cant+\",precio=\"+precio+\",descripcion='\"+desc+\"',idsucursal=\"+sucursal+\" where idproducto=\"+id+\";\");\n if(res>=1)\n {\n status=true;\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return status;\n }", "void addToFavorites(int recipeId);", "CounselorBiographyTemp update(CounselorBiographyTemp entity);", "protected void displayRecipe(){\n Log.d(\"recipeBook\", \"Retrieving recipe contents\");\n\n MyDBHandler dbHandler = new MyDBHandler(this, null, null, 1);\n\n //retrieve latest recipe name and instructions based on id selected\n Recipe r = dbHandler.findRecipe(id);\n String name = r.getRecipeName();\n String text = r.getRecipeText();\n\n recipeName.setText(name);\n recipeText.setText(text);\n\n //buttons onClick listeners\n editFAB.setOnClickListener(view -> {\n //launch EditActivity so user can edit recipe\n Intent i = new Intent(getApplicationContext(), EditActivity.class);\n i.putExtra(\"id\", id);\n startActivity(i);\n });\n\n deleteFAB.setOnClickListener(view -> {\n //display alert dialog to confirm delete action\n AlertDialog.Builder alert = new AlertDialog.Builder(ViewActivity.this);\n\n alert\n .setTitle(\"Are you sure?\")\n .setMessage(\"This will delete this recipe forever\")\n .setCancelable(false)\n .setPositiveButton(\"Yes\", (dialogInterface, i) -> {\n dbHandler.deleteRecipe(id);\n Log.d(\"recipeBook\", \"Recipe deleted\");\n Toast.makeText(getApplicationContext(),\"Recipe deleted\", Toast.LENGTH_SHORT).show();\n finish();\n })\n .setNegativeButton(\"No\", (dialogInterface, i) -> {\n });\n AlertDialog alertDialog = alert.create();\n alertDialog.show();\n });\n }", "@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}", "public void editar(ParadaUtil paradaUtil) {\n\t\tiniciarTransacao();\r\n\t\ttry {\r\n\t\t\ts.update(paradaUtil);\r\n\t\t\ttx.commit();\r\n\t\t} catch (Exception e) {\r\n\t\t} finally {\r\n\t\t\ts.close();\r\n\t\t}\r\n\t}", "ProductView updateProduct(int productId, EditProductBinding productToEdit) throws ProductException;", "int updateByPrimaryKey(Dish record);", "public void editarData(){\n\t\talunoTurmaService.inserirAlterar(alunoTurmaAltera);\n\t\t\n\t\t\n\t\tmovimentacao.setDataMovimentacao(alunoTurmaAltera.getDataMudanca());\n\t\tmovimentacaoService.inserirAlterar(movimentacao);\n\t\t\n\t\tFecharDialog.fecharDialogDATAAluno();\n\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\talunoTurmaAltera = new AlunoTurma();\n\t\tmovimentacao = new Movimentacao();\n\t\t\n\t\tatualizarListas();\n\t}", "@Test\n public void testEdit() {\n lib.addDVD(dvd1);\n lib.addDVD(dvd2);\n \n dvd1.setTitle(\"Ghostbusters II\");\n lib.edit(dvd1);\n \n Assert.assertEquals(\"Ghostbusters II\", lib.getById(0).getTitle());\n }", "public void editItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tString queryString = \"Update team1.GABES_ITEM Set ITEM_CATEGORY=?, DESCRIPTION=?, ITEM_NAME=?\";\n\t\tqueryString += \"Where ITEM_ID='\" + this.item_id + \"'\";\n\t\t/** Clears parameters and then sets new values */\n\t\tPreparedStatement p_stmt = con.prepareCall(queryString);\n\t\t/** Set new attribute values */\n\t\tp_stmt.clearParameters();\n\t\tp_stmt.setString(1, this.item_category);\n\t\tp_stmt.setString(2, this.description);\n\t\tp_stmt.setString(3, this.item_name);\n\t\t/* Executes the Prepared Statement query */\n\t\tp_stmt.executeQuery();\n\t\tp_stmt.close();\n\t}", "@RequestMapping(\"/editRecipeDoctor\")\r\n\tpublic ModelAndView editRecipeDoctor(@RequestParam Integer recipe_idr, @RequestParam Integer doctor_id) {\r\n\t\tDoctor doctor = doctorDAO.findDoctorByPrimaryKey(doctor_id, -1, -1);\r\n\r\n\t\tModelAndView mav = new ModelAndView();\r\n\t\tmav.addObject(\"recipe_idr\", recipe_idr);\r\n\t\tmav.addObject(\"doctor\", doctor);\r\n\t\tmav.setViewName(\"recipe/doctor/editDoctor.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}", "T edit(long id, T obj);", "void updateCatFood(Long catId, Long foodId, Long newFoodId);", "public void editHouse() {\n System.out.println(\"-----Update House-----\");\n System.out.println(\"enter id(-1 cancel): \");\n int updateId = Utility.readInt();\n if (updateId == -1) {\n System.out.println(\"cancel update program\");\n return;\n }\n House h = houseService.searchHouse(updateId);\n if(h == null) {\n System.out.println(\"no house you needed found\");\n return;\n }\n //update owner name\n System.out.print(\"owner = \" + h.getOwner() + \": \");\n String owner = Utility.readString(10, \"\");\n if(!\"\".equals(owner)) {\n h.setOwner(owner);\n }\n\n //update phone\n System.out.print(\"phone = \" + h.getPhone() + \": \");\n String phone = Utility.readString(10, \"\");\n if(!\"\".equals(phone)) {\n h.setPhone(phone);\n }\n\n //update address\n System.out.print(\"address = \" + h.getAddress() + \": \");\n String address = Utility.readString(20, \"\");\n if(!\"\".equals(address)) {\n h.setAddress(address);\n }\n\n //update rent\n System.out.print(\"rent = \" + h.getRent() + \": \");\n int rent = Utility.readInt(-1);\n if(! (-1 == rent)) {\n h.setRent(rent);\n }\n\n //update state\n System.out.print(\"state = \" + h.getState() + \": \");\n String state = Utility.readString(10, \"\");\n if(!\"\".equals(state)) {\n h.setState(state);\n }\n\n System.out.println(\"update successful\");\n }", "@FXML\n private void selectedBtnEdit(ActionEvent event){\n try {\n query=\"SELECT * FROM category WHERE category_id = '\"+ txtCategoryNo.getText() +\"'\";\n rset = connection.prepareStatement(query).executeQuery();\n isNewRecord = !rset.next(); //set a flag to the record retrieved as existing record and used to determine if an SQL for insert or update should be done\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n TextFieldEditableProperty(true,1.00);\n }", "@Test\n public void addIngredient_DatabaseUpdates(){\n int returned = testDatabase.addIngredient(ingredient);\n Ingredient retrieved = testDatabase.getIngredient(returned);\n assertEquals(\"addIngredient - Correct Ingredient Name\", \"Flour\", retrieved.getName());\n assertEquals(\"addIngredient - Set Ingredients ID\", returned, retrieved.getKeyID());\n }", "void updateEntry(BlogEntry entry) throws DAOException;", "ApiResponse editState(ID id, Kiruvchi kiruvchi);", "public void edit(RequestBean request) {\n\t\t\r\n\t}", "int updateByPrimaryKey(GirlInfo record);", "public void updateItem(){\n\n System.out.println(\"Update item with ID: \");\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n System.out.println(\"Enter new characteristics: \");\n System.out.println(\"Name: \");\n String newName = bufferRead.readLine();\n System.out.println(\"Designer: \");\n String newDesigner = bufferRead.readLine();\n System.out.println(\"Price: \");\n int newPrice = Integer.parseInt(bufferRead.readLine());\n ClothingItem newCI = new ClothingItem(newName, newDesigner, newPrice);\n newCI.setId(id);\n this.ctrl.updateItem(newCI);\n\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "@RequestMapping(value = \"/addRecipe\", method = RequestMethod.GET, consumes={\"text/html\"}, produces={\"text/xml\"})\n\t@ResponseBody\n\tpublic EditRecipeResponse addRecipe(@RequestBody Recipe recipe) {\n\t\tEditRecipeRequest request = new EditRecipeRequest();\n\t\tEditRecipeResponse response = null;\n\n\t\trequest.setEditType(\"ADD\");\n\t\trequest.setRecipe(recipe);\n\t\ttry {\n\t\t\tresponse = recipeJaxProxyService.editRecipe(request);\n\n\t\t\tlogger.debug(response.getCode());\n\t\t} catch (SoapFaultClientException sfce) {\n\t\t\tlogger.error(\"We sent an invalid message\", sfce);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Unexpected exception\", e);\n\t\t}\n\n\t\treturn response;\n\t}", "@Override\n public void onEditStep(String step, int step_id) {\n\n Intent updateDB = new Intent(this, UpdateStepsService.class);\n updateDB.putExtra(UpdateStepsService.INSTR_KEY, step);\n updateDB.putExtra(UpdateStepsService.STEP_ID_KEY, step_id);\n updateDB.putExtra(UpdateStepsService.ACTION_KEY, UpdateStepsService.Action.UPDATE);\n startService(updateDB);\n\n }", "@Override\n\tpublic int edit(Zongjie zongjie) {\n\t\treturn zongjieDao.edit(zongjie);\n\t}" ]
[ "0.7165532", "0.6918695", "0.6872976", "0.6840426", "0.6817319", "0.6810172", "0.67497444", "0.6675033", "0.65013593", "0.6469471", "0.6467541", "0.6385741", "0.6349867", "0.631424", "0.62730753", "0.6268979", "0.6240629", "0.6227909", "0.6209641", "0.61745816", "0.6146623", "0.6141382", "0.60882014", "0.6070715", "0.60563076", "0.60395086", "0.60353166", "0.6025189", "0.59931034", "0.59776527", "0.59771734", "0.5960454", "0.59535015", "0.5950842", "0.5931795", "0.59288573", "0.58934456", "0.58589536", "0.5858105", "0.5855742", "0.583707", "0.5831461", "0.5831356", "0.5826565", "0.5800511", "0.57985646", "0.5785419", "0.5777112", "0.5771614", "0.576567", "0.5713081", "0.570007", "0.56996083", "0.56915045", "0.56846607", "0.5663433", "0.56622267", "0.56610143", "0.5655438", "0.56508946", "0.56289214", "0.5628195", "0.5620231", "0.5615994", "0.5613741", "0.55915374", "0.55853987", "0.5576947", "0.5576022", "0.5571814", "0.55608237", "0.55562854", "0.55559576", "0.55517423", "0.554494", "0.5537558", "0.5533809", "0.5532251", "0.5531587", "0.5528225", "0.55275416", "0.55274916", "0.55264956", "0.5526462", "0.5514859", "0.5507227", "0.549954", "0.5499206", "0.5493603", "0.54930335", "0.5489315", "0.54780495", "0.5476248", "0.5465849", "0.54632765", "0.5457321", "0.54504025", "0.5434285", "0.5432715", "0.5429325" ]
0.7073891
1
find recipe by ID
Recipe findRecipeById(Long id) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Recipe findByIdRecipe(int id) {\n\t\tSession session = sessionFactory.openSession();\n\t\treturn (Recipe) session.get(Recipe.class, id);\n\t}", "public Recipe getRecipeAt(Long id) {\r\n \t\tfor (Recipe recipe : recipeList)\r\n \t\t\tif (recipe.getId() == id)\r\n \t\t\t\treturn recipe;\r\n \t\treturn null;\r\n \t}", "public Recipe findById(Long id) {\n\t\tOptional<Recipe> findRecipe = recipeRepository.findById(id);\n\t\tif(findRecipe.isPresent()) {\n\t\t\treturn findRecipe.get();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic Recipe findById(Integer id) {\n\t\treturn null;\n\t}", "public Recipe getRecipe(int id) {\n int i = id - 1000;\n if(i < 0 || i > recipes.get(recipes.size() - 1).getID()-1000){\n //throw new IndexOutOfBoundsException();\n Recipe r = null;\n return r;\n }\n return recipes.get(i);\n }", "public Cursor loadRecipe(int id){\r\n Cursor c = db.query(recipes.TABLENAME, new String[]{recipes.TITLE, recipes.IMAGE, recipes.INGREDIENTS, recipes.STEPS, recipes.TYPE, recipes.TIME, recipes.PEOPLE, recipes.IDRECIPE}, recipes.IDRECIPE + \"=\" + id, null, null, null, null);\r\n if (c != null) c.moveToFirst();\r\n return c;\r\n }", "RecipeObject getRecipe(int recipeID);", "@Override\n @Transactional(readOnly = true)\n public Optional<Recipe> findOne(Long id) {\n log.debug(\"Request to get Recipe : {}\", id);\n return recipeRepository.findById(id);\n }", "public Recipe getRecipeFromRepository(Integer id) {\n\t\tOptional<RecipeEntity> optRecipe = recipesRepo.findById(id);\n\t\tif(optRecipe.isPresent())\n\t\t\treturn mapToRecipeObject(optRecipe.get());\n\t\telse\n\t\t\treturn null;\n\t}", "public Recipe findRecipeFromID(int id, ComboBox<Recipe> combo){\n //loop through all the Recipes in the ComboBox\n for (Recipe r: combo.getItems()){\n if (r.getId() == id){\n return r;\n }\n }\n return null;\n }", "@Override\n\tpublic Recipe getRecipe(int id) {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\tResponseEntity<Recipe> rateResponse =\n\t\t restTemplate.exchange(BASE_URL + RECIPE_URL + id, HttpMethod.GET, \n\t\t \t\tnull, new ParameterizedTypeReference<Recipe>() {\n\t\t });\n\t\tRecipe recipe = rateResponse.getBody();\n\t\tlogger.debug(\"RECIPE Info :\" + recipe);\n\t\treturn recipe;\n\t}", "@Transactional(readOnly = true)\n public Optional<RecipeDTO> findOne(Long id) {\n log.debug(\"Request to get Recipe : {}\", id);\n return recipeRepository.findById(id)\n .map(recipeMapper::toDto);\n }", "@Test\n public void getRecipeByID_ReturnsRecipe(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertNotEquals(\"getRecipeByName - Returns a Recipe\", null, testDatabase.getRecipe(returned));\n }", "RiceCooker getById(long id);", "@RequestMapping(method = RequestMethod.GET, value = \"/recipes/{recipeId}\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<Recipe> getRecipeById(@PathVariable final Long recipeId) {\n final Recipe recipe = this.recipeRepository.findOne(recipeId);\n if (recipe == null) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n } else {\n return new ResponseEntity<>(recipe, HttpStatus.OK);\n }\n }", "@GetMapping(\"/{id}/recipe/{recipeId}\")\n public ResponseEntity<IngredientDTO> getIngredient(@PathVariable Long recipeId, @PathVariable Long id){\n IngredientDTO ingredient = ingredientService.findByRecipeIdAndIngredientId(recipeId, id);\n return new ResponseEntity<>(ingredient, HttpStatus.OK);\n }", "public Ingredient getById(Long id) {\n return ingredientRepository.getOne(id);\n }", "@Override\n\tpublic Carpo findCar(String id) {\n\t\treturn inList.find(id);\n\t}", "public String getRecipeName(Integer id){\n SQLiteDatabase db = getWritableDatabase();\n Cursor c = db.rawQuery(\"SELECT recipe_name FROM \" + WFDColumns.RECIPES_TABLE + \" WHERE _ID = \" + id, null);\n c.moveToFirst();\n String temp = c.getString(0);\n c.close();\n db.close();\n return temp;\n }", "@Override\n\tpublic RecetteDTO findById(long idProduit, long idIngredient) {\n\t\treturn null;\n\t}", "public ArrayList<IngredientRecipePOJO> getAllIngredientRecipeByIdRecipe(String idRecipe);", "RecipeInformationObject getRecipeInformation(int recipeId) throws EntityException, EntityNotFoundException;", "RecipeCommand findCommandById(Long id);", "@Override\n public RiceptDto getRicept(int id) {\n Optional<Ricept> ricept = riceptRepository.findById(id);\n if (!ricept.isPresent()) {\n log.error(\"Ricept not found by id. Class RiceptServiceImpl, method getRicept\");\n throw new NotFoundException(\"Ricept not found by id\");\n }\n log.info(\"Get ingredient by id. Class RiceptServiceImpl, method getRicept\");\n return RiceptDto.of(ricept.get());\n }", "@Override\n\tpublic Food findFoodById(int id) {\n\t\treturn fb.findFoodById(id);\n\t}", "@GetMapping(value = \"/{id}\")\n @PreAuthorize(\"hasRole('ADMIN') or hasRole('USER')\")\n public ResponseEntity<RecipeDto> getRecipeById(@PathVariable(\"id\") @NotNull final int id) {\n return new ResponseEntity<>(RecipeDto.from(recipeService.getRecipeById(id)), HttpStatus.OK);\n }", "Dish selectByPrimaryKey(String id);", "public Recipe getRecipe(String id, Profile profile)\n {\n String recipeClass = profile.getRecipe(id);\n if (recipeClass != null)\n {\n try\n {\n return (Recipe) servletContext.getClassLoader().loadClass(recipeClass).newInstance();\n }\n catch (Throwable th)\n {\n logger.error(\"Failed to instantiate recipe with id [\" + id + \"] and class [\" + recipeClass + \"]\", th);\n return null;\n }\n }\n return null;\n }", "@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}", "@Override\n public RecipeEntity getRecipeDto(long id)\n {\n return this.load(RecipeEntity.class, id);\n }", "@Override\n\tpublic Item findItemById(Long id) {\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\n\t\t\n\t\tCriteriaQuery<Item> q = cb.createQuery(Item.class);\n\t\t Root<Item> c = q.from(Item.class);\n\t\t ParameterExpression<Long> p = cb.parameter(Long.class);\n\t\t q.select(c).where(cb.equal(c.get(\"id\"), p));\n\t\t TypedQuery<Item> query = entityManager.createQuery(q);\n\t\t query.setParameter(p, id);\n\t\t Item i = query.getSingleResult();\n\t\treturn i;\n\t}", "private static Person findPersonById(int id) {\n Person personReturn = null;\n\n for (Person person : persons) {\n if (id == person.getId()) {\n personReturn = person;\n }\n }\n\n return personReturn;\n }", "@RequestMapping(\"/recipe/show/{id}\")\n public String showById(@PathVariable String id, Model model){\n \n model.addAttribute(\"recipe\", recipeService.findById(new Long(id)));\n \n return \"recipe/show\";\n \n }", "@Override\n\tpublic Answer findById(String id) {\n\t\treturn answerRepository.findById(id).get();\n\t}", "Item findById(String id);", "public CyPoj findById(Integer id) {\n\t\treturn d.findById(id);\r\n\t}", "@Override\n\tpublic Material findById(Long id) {\n\t\treturn materialRepository.findById(id).get();\n\t}", "public Data findById(Object id);", "private SiteReservation findById(Integer id){\n SiteReservation reservation;\n try {\n reservation = repo.findById(id).get();\n } catch (NoSuchElementException e){\n throw new ReservationNotFoundException(id);\n }\n return reservation;\n }", "@Override\n public List<Doctor> searchById(int id) throws IOException, ClassNotFoundException {\n doctorList = FileSystem.readFile(file, Doctor.class);\n List<Doctor> searchList = search(doctorList, Doctor::getId, id);\n return searchList;\n }", "public Product findProduct(int id)\n {\n for(Product product : stock)\n {\n if(id == product.getID())\n {\n return product;\n }\n }\n System.out.println(\"Error: Could not find ID: \" + id);\n return null;\n }", "public ClassItem find(Long id) {\n return (ClassItem)find(ClassItem.class, id);\n }", "Recipe getRecipe(CharSequence query);", "@Override\n public Complex findById(final Integer id) throws PersistentException {\n ComplexDao complexDao = transaction.createDao(ComplexDao.class);\n Complex complex = complexDao.read(id);\n if (complex != null) {\n findExercises(complex);\n }\n return complex;\n }", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "public Warehouse find(Integer id) {\n\t\t return warehouseDAO.find(id);\r\n\t\t\r\n\t}", "public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }", "@Override\n public MyBook findById(final int id) {\n System.err.println(\"MyBookRepositoryImpl:159 - not implement\");\n System.exit(1);\n return null;\n }", "E find(Id id) throws RepositoryException;", "@Override\n\tpublic Factura findById(Integer id) {\n\t\treturn facturaRepository.findById(id).orElse(null);\n\t}", "@Override\n\tpublic Facture findById(int id) {\n\t\treturn null ;\n\t}", "public void deleteRecipeFromRepository(Integer id) {\n\t\tlog.debug(\"Deleting recipe with id: \"+id+\" from repository, if it is present\");\n\t\trecipesRepo.deleteById(id);\n\t\tlog.debug(\"Requested recipe should be deleted\");\n\t}", "E find(final ID identifier) throws ResourceNotFoundException;", "@Override\n\tpublic Stock Find(Integer id) {\n\t\tStock stock = _stockDao.selectByPrimaryKey(id);\n\t\tif (stock == null) {\n\t\t\treturn new Stock();\n\t\t}\n\t\treturn stock;\n\t}", "public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "@Override\n\tpublic Cat getById(Integer id) {\n\t\tOptional<Cat> cat = catRepository.findById(id);\n\t\tif(cat.isPresent()) {\n\t\t\treturn cat.get();\n\t\t} else {\n\t\t\tthrow new CatNotFoundException();\n\t\t}\n\t}", "@Override\r\n\tpublic Personne find(int id) {\n\t\treturn null;\r\n\t}", "public TodoItem getTodoItemById(Long id) throws RecordNotFoundException {\n Optional<TodoItem> todoItem = todoItemRepository.findById(id);\n\n if (todoItem.isPresent()) {\n return todoItem.get();\n } else {\n throw new RecordNotFoundException(\"No TodoItem record exist for given id\");\n }\n }", "@Override\r\n\tpublic Warehouse findById(int id) {\n\t\treturn warehouseDao.findById(id);\r\n\t}", "Research findOne(Long id);", "@Override\r\n\tpublic Factura findById(Long id) {\n\t\treturn facturaDao.findById(id);\r\n\t}", "@Transactional(readOnly = true)\n public Optional<ItemInstance> findOne(Long id) {\n log.debug(\"Request to get ItemInstance : {}\", id);\n return itemInstanceRepository.findById(id);\n }", "public static void startRecipeActivity(Context context, int id) {\n Log.i(\"RecipeActivity\", \"1...\");\n\n // save selected recipe id to SharedPrefs so that in the RemoteViewsFactory we\n // can retrieve it and then retrieve the corresponding ingredient list stored in Room\n SharedPreferences prefs = context.getSharedPreferences(\n \"com.example.app\", Context.MODE_PRIVATE);\n prefs.edit().putInt(\"selected_recipe\", id).apply();\n\n //Update widgets\n Intent widgetIntent = new Intent(context, BakingWidgetProvider.class);\n widgetIntent.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE);\n\n // https://stackoverflow.com/a/7738687/3500752\n int[] ids = AppWidgetManager.getInstance(context).getAppWidgetIds(\n new ComponentName(context, BakingWidgetProvider.class)\n );\n widgetIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, ids); // this will trigger onUpdate from AppWidgetProvider\n context.sendBroadcast(widgetIntent);\n\n Intent intent = new Intent(context, RecipeActivity.class);\n\n intent.putExtra(RECIPE_ID, id);\n context.startActivity(intent);\n }", "@Override\r\n\tpublic Food getFoodById(int id) {\n\t\tString sql=\"select * from food where id=?\";\r\n\t\tList<Food> list=(List<Food>) BaseDao.select(sql, Food.class,id);\r\n\t\tif(list.size()>0) {\r\n\t\t\treturn list.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Nullable\n protected RECIPE findFirstRecipe(@Nullable Collection<RECIPE> recipes, Predicate<RECIPE> matchCriteria) {\n return recipes == null ? null : recipes.stream().filter(matchCriteria).findFirst().orElse(null);\n }", "@Override\r\n\tpublic LookMast findOne(int id) {\n\t\treturn lookMastRepository.findOne(id);\r\n\t}", "T findById(ID id) ;", "public Pessoa find(Long id){\n\t\treturn db.findOne(id);\n\t}", "@Override\n\tpublic FoodItem getItem(Long id) {\n\t\treturn foodItemRepository.getOne(id);\n\t}", "TempletLink selectByPrimaryKey(String id);", "public abstract T findOne(int id);", "@Override\n public Shelf getShelfById(String id) {\n if(id == null)\n throw new NullPointerException();\n return shelves.stream().filter(x-> x.getId().equalsIgnoreCase(id)).findFirst().orElseThrow(()->\n new NoSuchElementException(\"There is no shelf with ID \" + id));\n }", "public Item searchID(String ID) {\n Item foundItem = null;\n for (Item item : this) {\n if (item.getItemId().equals(ID)) {\n foundItem = item;\n break;\n }\n }\n return foundItem;\n }", "@Override\n\tpublic Iscrizioni findById(Integer id)\n\t\t\tthrows ClassNotFoundException, SQLException, NotHandledTypeException, NamingException, ParseException {\n\t\treturn em.find(Iscrizioni.class, id);\n//\t\tIscrizioni corso = new Iscrizioni();\n//\n//\t\tObject[] campi = { id };\n//\n//\t\tString sql = \"SELECT * FROM `iscrizioni` WHERE `idIscrizione` = ? \";\n//\t\tDBHandler dbHandler = new DBHandler();\n//\t\tdbHandler.sql(sql, campi);\n//\t\tList<Object> objs = dbHandler.getResponse();\n//\t\tfor (Object obj : objs) {\n//\t\t\tObject[] tmp = (Object[]) obj;\n//\t\t\tcorso = new Iscrizioni((int) tmp[0],(int) tmp[1], (int) tmp[2], (int) tmp[3]);\n//\t\t}\n//\t\treturn corso;\n\t}", "Sequipment selectByPrimaryKey(Integer id);", "@Override\n public T findById(ID id) {\n return crudRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"Can not find an entity with id: \" + id));\n }", "public Node find(int id) {\n return tree.find(id);\n }", "@Override\n public void deleteRecipe(long id)\n {\n RecipeEntity recipeEntity = this.load(RecipeEntity.class, id);\n if (recipeEntity != null)\n this.delete(recipeEntity);\n }", "@Override\r\n\tpublic Plate findById(long id) {\n\t\treturn null;\r\n\t}", "public Doctor findById(int id);", "public Personne find(int id) {\n\t\tPersonne p= null;\n\t\ttry {\n\t\t\t\tString req = \"SELECT id,nom, prenom, evaluation FROM PERSONNE_1 WHERE ID=?\";\n\t\t\t\tPreparedStatement ps= connect.prepareStatement(req);\n\t\t\t\tps.setInt(1, id);\n\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\tp =new Personne (id, rs.getString(1),rs.getString(2));\n\t\t\t}catch (SQLException e) {e.printStackTrace();}\n\t\t\t\t\n\t\treturn p;\n\t\t\n\t}", "public IngredientDto fetchOne(Long id) {\n Ingredient ingredient = repository.findById(id)\n .orElseThrow(() -> new IngredientNotFoundException(id));\n\n return ingredientMapper.toDto(ingredient);\n }", "public Book getBookById(int id){\n Book book = null;\n //list.stream->to take the stream\n\n book = list.stream().filter(e->e.getId()==id).findFirst().get();\n return book;\n }", "public long deleteRecipe(long id)\n {\n String where = RECIPE_ID + \"= ?\";\n String[] whereArgs = { String.valueOf(id) };\n this.openWriteableDB();\n int rowCount = db.delete(TABLE_RECIPES, where, whereArgs);\n this.closeDB();\n\n return rowCount;\n }", "public Conge find( Integer idConge ) ;", "@Override\n\tpublic Resource findLinkById(Integer id) {\n\t\treturn em.find(Resource.class, id);\n\t}", "public OrderItem findOrderItemById(int id)\n\t{\n\t\tOrderItem orderIt=orderItemDAO.findById(id);\n\t\tif(orderIt==null)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t \"Id-ul nu exista!\",\n\t\t\t\t \"Update error\",\n\t\t\t\t JOptionPane.ERROR_MESSAGE);\n\t\t\tthrow new NoSuchElementException(\"OrderItem=ul cu id-ul:\"+id+\" nu a fost gasit\");\n\t\t}\n\t\treturn orderIt;\n\t}", "public TransactionItem find(Long id) {\n return (TransactionItem)find(TransactionItem.class, id);\n }", "public Recipe findRecipeDetails(String selectedRecipeName){\r\n for (int i = 0; i < listOfRecipes.size(); i++) {\r\n if (listOfRecipes.get(i).getRecipeName().equals(selectedRecipeName)) {\r\n Recipe recipeToAdjust = listOfRecipes.get(i);\r\n printAdjustedRecipeDetails(recipeToAdjust);\r\n }\r\n }\r\n return recipeToAdjust;\r\n }", "@Override\n\tpublic item findById(Long id, Integer cantidad) {\n\t\treturn new item(donkyClientFeign.detalles(id),cantidad);\n\t}", "public BlogEntry findBlogEntry(Long id);", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<Books> findOne(Long id) {\n log.debug(\"Request to get Books : {}\", id);\n return booksRepository.findById(id);\n }", "Price find(Object id);", "ReferenceData findById(ReferenceDataId id) throws DataException;", "@Override\n public Item find(Context context, UUID id) throws SQLException\n {\n Item item = itemDAO.findByID(context, Item.class, id);\n if (item == null)\n {\n if (log.isDebugEnabled())\n {\n log.debug(LogManager.getHeader(context, \"find_item\",\n \"not_found,item_id=\" + id));\n }\n return null;\n }\n\n // not null, return item\n if (log.isDebugEnabled())\n {\n log.debug(LogManager.getHeader(context, \"find_item\", \"item_id=\"\n + id));\n }\n\n return item;\n }", "@ApiModelProperty(value = \"unique identifier representing a specific recipe\")\n @JsonProperty(\"id\")\n public BigDecimal getId() {\n return id;\n }", "@Override\n\tpublic Gestbookentry findEntryById(int idEtries) {\n\t\treturn em.find(Gestbookentry.class, idEtries);\n\t}" ]
[ "0.8064785", "0.8036581", "0.7897833", "0.76870394", "0.7619418", "0.74917454", "0.745044", "0.74390495", "0.74260926", "0.7204332", "0.69107544", "0.675514", "0.67291856", "0.6727249", "0.6662964", "0.6638952", "0.6592842", "0.65730727", "0.6476489", "0.6468823", "0.6435887", "0.63938624", "0.6367527", "0.6363986", "0.6327815", "0.62692064", "0.62326926", "0.62290156", "0.622721", "0.6188913", "0.6094365", "0.60896224", "0.6083587", "0.6047936", "0.60454327", "0.60223264", "0.60152435", "0.600825", "0.60034126", "0.59920794", "0.5990686", "0.59852237", "0.5964051", "0.5955104", "0.5924616", "0.59194535", "0.5919453", "0.5905677", "0.59047806", "0.5894969", "0.58849996", "0.58732074", "0.587227", "0.5867628", "0.58643925", "0.58559465", "0.58515006", "0.5847275", "0.584157", "0.5833506", "0.5811439", "0.5810376", "0.58089614", "0.580756", "0.5806029", "0.5794771", "0.57945585", "0.57907695", "0.57871175", "0.57790494", "0.5777382", "0.5774086", "0.57652193", "0.57647926", "0.57638586", "0.57559323", "0.5754894", "0.5752046", "0.5751409", "0.57499105", "0.57376164", "0.57375807", "0.57338375", "0.5730321", "0.5724828", "0.57143414", "0.57110304", "0.5708984", "0.5697432", "0.5697179", "0.56893295", "0.56881297", "0.56866497", "0.56825536", "0.5679637", "0.5679128", "0.56759006", "0.56723595", "0.5669962", "0.5669946" ]
0.7976742
2
find recipes, that have this substring in their names
SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void findName(String searchedWord, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getName().contains(searchedWord)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "@Override\n public List<FoodItem> filterByName(String substring) {\n if (foodItemList == null || foodItemList.size() == 0)\n return foodItemList;\n List<FoodItem> foodCandidate = new ArrayList<>();\n \tfor (FoodItem food : foodItemList) {\n if (food.getName().equals(substring)) {\n foodCandidate.add(food);\n }\n \t}\n return foodCandidate;\n \n }", "@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }", "List<Dish> getDishesWhichContains(String subStr);", "public static void findIngredient(String ingredient, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getIngredients().contains(ingredient)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "public static ObservableList<Part> lookupPart(String partName) {\n ObservableList<Part> partsContainingSubstring = FXCollections.observableArrayList();\n\n // The for loop variable to the left of the colon is a temporary variable containing a single element from the collection on the right\n // With each iteration through the loop, Java pulls the next element from the collection and assigns it to the temp variable.\n for (Part currentPart : Inventory.getAllParts()) {\n if (currentPart.getName().toLowerCase().contains(partName.toLowerCase())) {\n partsContainingSubstring.add(currentPart);\n }\n }\n return partsContainingSubstring;\n }", "public ArrayList<NameRecord> getMatches(String partialName){\n\t\tpartialName=partialName.toLowerCase();\n\t\tArrayList<NameRecord> result = new ArrayList<NameRecord>();\n\t\tfor (int i = 0;i<names.size();i++){\n\t\t\tString s = names.get(i).toLowerCase();\n\t\t\tif (s.contains(partialName)){\n\t\t\t\tresult.add(list.get(i));\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}", "public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = new ArrayList<Recipe>();\n\t\t\t\t\n\t\t\t\t// Temporary containers to hold the search results until they can \n\t\t\t\t// be combined in mRecipes \n\t\t\t\tArrayList<Recipe> mRecipesNAME = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesCATEGORY = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINGREDIENT = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesDESCRIPTION = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINSTRUCTION = new ArrayList<Recipe>();\n\t\t\t\tIterator<Recipe> iterator = RECIPES.iterator(); \n\t\t\t\t\n\t\t\t\t// Search all recipes in Recipe Box for name matches\n\t\t\t\twhile (iterator.hasNext()){\n\n\t\t\t\t\t// Load the next recipe\n\t\t\t\t\tRecipe recipe = iterator.next();\n\t\t\t\t\t\n\t\t\t\t\t// Check for recipe NAME match\n\t\t\t\t\tif (recipe.nameContains(searchTerm)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesNAME.add(recipe);\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe CATEGORY match\n\t\t\t\t\telse if (recipe.categoriesContain(searchTerm)) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesCATEGORY.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INGREDIENT match\n\t\t\t\t\telse if (recipe.ingredientsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINGREDIENT.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe DESCRIPTION match\n\t\t\t\t\telse if (recipe.descriptionContains(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesDESCRIPTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INSTRUCTION match\n\t\t\t\t\telse if (recipe.instructionsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINSTRUCTION.add(recipe);\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\t\n\t\t\t\t// Create an ordered list of recipes from most important to least important\n\t\t\t\tmRecipes.addAll(mRecipesNAME);\n\t\t\t\tmRecipes.addAll(mRecipesCATEGORY);\n\t\t\t\tmRecipes.addAll(mRecipesINGREDIENT);\n\t\t\t\tmRecipes.addAll(mRecipesDESCRIPTION);\n\t\t\t\tmRecipes.addAll(mRecipesINSTRUCTION);\n\t\t\t\t\n\t\t\t\t// Return ordered list of recipes\n\t\t\t\tLog.d(TAG, \"Finish function searchNames\");\n\t\t\t\treturn mRecipes;\n\t\t\t\t\n\t\t\t}", "public boolean inBag(String searchString) {\r\n\t\tboolean found = false;\r\n\t\tfor(Iterator<Item> it = items.iterator(); it.hasNext() && !found; ) {\r\n\t\t\tif(it.next().getDescription().contains(searchString)) {\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn found;\r\n\t\t\r\n\t}", "@Test\n\tpublic void testIsContainedInSomeWord() {\n\n\t\tString[] words = {\"ne\", \"ned\", \"nes\", \"ning\", \"st\", \"sted\", \"sting\", \"sts\"};\n\t\tList<String> listWords = Arrays.asList(words);\n\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"sti\"), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"ne\"), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"ni\"), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"s\"), equalTo(true));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsPrefix(listWords, \"sta\"), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsPrefix(listWords, \"a\"), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsPrefix(listWords, \"no\"), equalTo(false));\n\t}", "List<Map<String, Object>> searchIngredient(String name);", "List<Product> getProductsContainingProductNameOrShortDescription(String productSearchString);", "public ArrayList<Task> find(String word) {\n ArrayList<Task> newlist = new ArrayList<Task>();\n for (Task t : list) {\n if (t.contain(word)) {\n newlist.add(t);\n }\n }\n return newlist;\n }", "public ObservableList<Part> lookupPart(String partName) {\n ObservableList<Part> namedParts = FXCollections.observableArrayList();\n for ( Part part : allParts ) {\n if(part.getName().toLowerCase().contains(partName.toLowerCase())) {\n namedParts.add(part);\n }\n }\n return namedParts;\n }", "boolean contains(String name);", "public boolean contains(String i){\r\n return stream().anyMatch(item -> (item.name.endsWith(i)));\r\n }", "public static void bookNameSearch(Set<Book> books) {\n Pattern pattern = Pattern.compile(SEARCH_PARAMETER);\n for (Book book : books) {\n Matcher matcher = pattern.matcher(book.getBookName());\n if (matcher.find()) {\n System.out.println(book);\n }\n }\n }", "public List search(String text){\r\n\t\tif(this.inverntory.empty())\r\n\t\t\tthrow new RuntimeException(\"Inventory is empty.\");\r\n\t\tList matchings = new List();\r\n\t\t// as long as inventory is not empty\r\n\t\t\r\n\t\twhile(!this.inverntory.empty()){\r\n\t\t /* Note:\r\n\t\t * public boolean contains(CharSequence s) Returns true if and only if\r\n\t\t * this string contains the specified sequence of char values. \r\n\t\t * contains(CharSequence s):boolean expects a CharSequence s as parameter.\r\n\t\t * CharSequence is an interface implemented by String\r\n\t\t */\r\n\t\t\t\r\n\t\t // check if entered string matches the description of the item\r\n\t\t if( ((LibraryItem) inverntory.elem()).getDescription().contains(text) ) {\r\n\t\t\t\t// add matchings to our list\r\n\t\t\t\tmatchings.add(this.inverntory.elem());\r\n\t\t\t}\r\n\t\t\t// if head of list is not target string, advance in list\r\n\t\t\telse {\r\n\t\t\t\tthis.inverntory.advance();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if you reach the end of the list, return the matchings\t\t\t\r\n\t\treturn matchings;\r\n\t}", "@In String search();", "List<Cloth> findByNameContaining(String name);", "PersonFinder whereNameStartsWith(String prefix);", "PersonFinder whereNameContains(String fragment);", "public String search_words(String word){\n\t\tString found_words = \"\";\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs)\n\t\t\tif(word.toLowerCase().charAt(0) == Character.toLowerCase(child.getRepresentative_letter()))\n\t\t\t\tfound_words += child.search_words(word, 0);\n\t\t\n\t\treturn found_words;\n\t}", "public void containsString() {\n\t\t\tString name = \"martin\";\n\t\t\tboolean contains = name.contains(\"rti\");\n\t\t\tif(contains) {\n\t\t\t\tSystem.out.println(\"it contains\");\n\t\t\t}\n\t\t}", "public List<Task> findWord(String word) throws DukeException {\n assert !word.isBlank();\n List<Task> findArray = new ArrayList<>();\n int count = 0;\n outer:\n for (Task x: tasks) {\n String[] nameArray = x.getName().split(\" \");\n inner:\n for (String y: nameArray) {\n if (word.equals(y)) {\n findArray.add(x);\n count += 1;\n continue outer;\n }\n }\n findArray.add(null);\n }\n if (count == 0) {\n throw new DukeException(\"Sorry I can't find any tasks containing that word!\");\n } else {\n return findArray;\n }\n }", "public static ObservableList<Product> lookupProduct(String productName) {\n ObservableList<Product> productsContainingSubstring = FXCollections.observableArrayList();\n\n // The for loop variable to the left of the colon is a temporary variable containing a single element from the collection on the right\n // With each iteration through the loop, Java pulls the next element from the collection and assigns it to the temp variable.\n for (Product currentProduct : Inventory.getAllProducts()) {\n if (currentProduct.getName().toLowerCase().contains(productName.toLowerCase())) {\n productsContainingSubstring.add(currentProduct);\n }\n }\n return productsContainingSubstring;\n }", "@Override\n public boolean test(Ingredient ingredient) {\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean test(Ingredient ingredient) {\n if (ingredient.getName().toUpperCase().contains(searchText.toUpperCase())){\n return true;\n } else {\n return false;\n }\n }", "boolean isPartOf(String genomeName);", "public boolean search(String word) {\n boolean allFlag = false;\n for (Entry<String, String> entry : dataStructure.entrySet()) {\n boolean flag = true;\n String key = entry.getKey();\n if (key.equals(word)) {\n return true;\n }\n if (key.length() != word.length()) {\n return false;\n }\n\n char[] aArr = word.toCharArray();\n char[] bArr = key.toCharArray();\n for (int i = 0; i < aArr.length; i++) {\n if (aArr[i] == '.') {\n continue;\n } else {\n if (aArr[i] != bArr[i]) {\n flag = false;\n break;\n }\n }\n\n }\n if (flag) {\n return true;\n }\n }\n return allFlag;\n }", "public abstract int search(String[] words, String wordToFind) throws ItemNotFoundException;", "public Set<Sportive> filterByFirstName(String st){\n Iterable<Sportive> materials = repo.findAll();\n return StreamSupport.stream(materials.spliterator(), false).filter(sportive -> sportive.getFirstName().contains(st)).collect(Collectors.toSet());\n }", "List<T> findTagsStartingWith(String prefix);", "public HashSet<T> searchObjectsContainingString(String inputString, boolean asPrefix, boolean asExactWord,\n\t\t\tfinal List<String> columns) {\n\t\tresult = new HashSet<T>();\n\t\tthis.columns = columns;\n\t\tif (asExactWord)\n\t\t\tasPrefix = true;\n\t\tif (inputString == null || inputString.isEmpty()) {\n\t\t\tif (asExactWord)\n\t\t\t\tshowDataWithFullWordsInCurrentNode(root.get(\"\"));\n\t\t\telse {\n\t\t\t\tfor (Node<T> node : root.values()) {\n\t\t\t\t\tshowAllSubsequestNodesData(node, asPrefix);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\tif (!isCaseSensitive)\n\t\t\tinputString = inputString.toLowerCase();\n\t\tchar[] charArray = inputString.toCharArray();\n\n\t\tNode<T> currentNode = root.get(charArray[0]);\n\n\t\tif (currentNode == null || !getSubsequentNodesForWordSearch(charArray, 1, currentNode, asPrefix, asExactWord)) {\n\t\t\t System.out.println(\"word not found\");\n\t\t}\n\t\treturn result;\n\t}", "public String searchByName(String name){\n for(Thing things: everything){\n if(things.getName().equalsIgnoreCase(name)){\n return things.toString();\n }\n }\n return \"Cannot Find given Name\";\n }", "private static List<String> getCandidates(String w, Set<String> words) {\n List<String> result = new LinkedList<>();\n for (int i = 0; i < w.length(); i++) {\n char[] chars = w.toCharArray();\n for (char ch = 'A'; ch <= 'Z'; ch++) {\n chars[i] = ch;\n String candidate = new String(chars);\n if (words.contains(candidate)) {\n result.add(candidate);\n }\n }\n }\n return result;\n }", "public static void main (String[] args)\n {\n String test = \"software\";\n \n CharSequence seq = \"soft\";\n boolean bool = test.contains(seq);\n System.out.println(\"Found soft?: \" + bool);\n \n // it returns true substring if found.\n boolean seqFound = test.contains(\"war\");\n System.out.println(\"Found war? \" + seqFound);\n \n // it returns true substring if found otherwise\n // return false.\n boolean sqFound = test.contains(\"wr\");\n System.out.println(\"Found wr?: \" + sqFound);\n }", "public boolean match(String name) {\n\t\tboolean result = false;\n\n\t\tif (this.entries != null) {\n\t\t\tname = name.replace('/', '.');\n\t\t\tname = name.replaceFirst(\"^[.]+\", \"\");\n\t\t\tname = name.replaceAll(\"\\\\$.*$\", \"\");\n\n\t\t\tfor (Entry entry : this.entries) {\n\t\t\t\tif (entry != null) {\n\t\t\t\t\tif (entry.partial) {\n\t\t\t\t\t\tif (name.startsWith(entry.classpath)) {\n\t\t\t\t\t\t\tresult = entry.result;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (name.equals(entry.classpath)) {\n\t\t\t\t\t\t\tresult = entry.result;\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}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public boolean search (String s)\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tTreeNode pos = Pos;\n\t\tboolean found = true;\n\t\touter: while (Pos.node().getaction(\"C\").indexOf(s) < 0 || Pos == pos)\n\t\t{\n\t\t\tif ( !Pos.haschildren())\n\t\t\t{\n\t\t\t\twhile ( !hasvariation())\n\t\t\t\t{\n\t\t\t\t\tif (Pos.parent() == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfound = false;\n\t\t\t\t\t\tbreak outer;\n\t\t\t\t\t}\n\t\t\t\t\telse goback();\n\t\t\t\t}\n\t\t\t\ttovarright();\n\t\t\t}\n\t\t\telse goforward();\n\t\t}\n\t\tshowinformation();\n\t\tcopy();\n\t\treturn found;\n\t}", "private ArrayList<String> matchingWords(String word){\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor(int i=0; i<words.size();i++){\n\t\t\tif(oneCharOff(word,words.get(i))){\n\t\t\t\tlist.add(words.get(i));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public List<Product> search(String searchString);", "List<Item> findByNameContainingIgnoreCase(String name);", "@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);", "protected boolean containsName(String full, String prefixes) {\n String[] prefixArray = StringUtils.split(prefixes, \",\");\n for (String prefix : prefixArray) {\n if (StringUtils.startsWith(full, StringUtils.trimToEmpty(prefix))) {\n return true;\n }\n }\n return false;\n }", "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public List<Resource> findByNameContaining(String nameFragment) {\n\t\tMap<String, Object> nameFilter = new HashMap<>();\n\t\tnameFilter.put(\"name\", new ValueParameter(\"%\" + nameFragment + \"%\"));\n\t\treturn this.filter(nameFilter);\n\t}", "Set<String> getKeysMatchingPattern(String pattern);", "public static boolean compareSubstring(List<String> pieces, String s)\n {\n\n boolean result = true;\n int len = pieces.size();\n\n int index = 0;\n\nloop: for (int i = 0; i < len; i++)\n {\n String piece = pieces.get(i);\n\n // If this is the first piece, then make sure the\n // string starts with it.\n if (i == 0)\n {\n if (!s.startsWith(piece))\n {\n result = false;\n break loop;\n }\n }\n\n // If this is the last piece, then make sure the\n // string ends with it.\n if (i == len - 1)\n {\n result = s.endsWith(piece);\n break loop;\n }\n\n // If this is neither the first or last piece, then\n // make sure the string contains it.\n if ((i > 0) && (i < (len - 1)))\n {\n index = s.indexOf(piece, index);\n if (index < 0)\n {\n result = false;\n break loop;\n }\n }\n\n // Move string index beyond the matching piece.\n index += piece.length();\n }\n\n return result;\n }", "public ArrayList<String> findSimilarStringsLiterals(String s, double score){\n\t\t\n\t\tsetForSuggestions.clear();\n\t\t\n\t\t// ArrayList for match scores\n\t\tArrayList<StringScore> matchesScores = new ArrayList<StringScore>(); \n\t\t\n\t\t// ArrayList for the matches\n\t\tArrayList<String> matches = new ArrayList<String>();\n\t\t\n\t\t// The trimmed string variable\n\t\tString trimmedString;\n\t\t\n\t\t// Check if it's not a literal\n\t\tif(!s.startsWith(\"\\\"\"))\n\t\t\treturn matches;\n\t\t\n\t\t// Extract what's between double quotes\n\t\ttrimmedString = s.substring(s.indexOf(\"\\\"\")+1,\n\t\t\t\ts.indexOf(\"\\\"\", s.indexOf(\"\\\"\")+1)).toLowerCase();\t// Just choose what is between brackets\n\t\t\n\t\t// Find similar literals withing 5 characters\n\t\tint minLength = trimmedString.length() - 2;\n\t\tint maxLength = trimmedString.length() + 3;\n\t\t\n\t\tint minIndex = Integer.MAX_VALUE;\n\t\tint maxIndex = -1;\n\t\t\n\t\t// Determine indices for search in bins\n\t\tfor(int i = 0; i < lengths.size(); ++i){\n\t\t\tif(lengths.get(i) > maxLength) {\n\t\t\t\tmaxIndex = indexes.get(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(minLength >= lengths.get(i)) {\n\t\t\t\tminIndex = indexes.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Assign threads to search tasks\n\t\tint indexesPerThread = (maxIndex - minIndex) / (numOfCores - 1);\n\t\t\n\t\t// Arraylist to keep track of threads\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\n\t\t\n\t\tfor(int i = minIndex; i < maxIndex; i += indexesPerThread) {\n\t\t\tthreads.add(new Thread(new SuggestionTask(i, i + indexesPerThread, s, trimmedString, score)));\n\t\t}\n\t\t\n\t\t// Start threads\n\t\tfor(int i = 0; i < threads.size(); ++i) {\n\t\t\tthreads.get(i).start();\n\t\t}\n\t\t\n\t\t// Join threads before continue\n\t\tfor(int i = 0; i < threads.size(); ++i) {\n\t\t\ttry {\n\t\t\t\tthreads.get(i).join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Copy contents of the synchronized list into the matchesScores list\n\t\tfor(StringScore stringScore : setForSuggestions) {\n\t\t\tmatchesScores.add(stringScore);\n\t\t}\n\t\t\n\t\t// Sort the candidate matches based on score and return top 5\n\t\tjava.util.Collections.sort(matchesScores, new StringScoreComparator());\n\t\tfor(int i = 0; i < 5 && i < matchesScores.size(); ++i){\n\t\t\tmatches.add(matchesScores.get(i).getS());\n\t\t}\n\t\treturn matches;\n\t}", "List<PilotContainer> Search(String cas, String word);", "private boolean containsName(String name, Human ... human) {\n boolean result = false;\n\n for(Human h : human) {\n if(h.getName().toLowerCase().contains(name.toLowerCase())) {\n result = true;\n break;\n }\n }\n\n return result;\n }", "private boolean isSubSequence(String s, String word){\n int startPointer = 0;\n for(int i=0; i<word.length(); i++){\n int location = s.indexOf(word.charAt(i), startPointer);\n if(location < 0)\n return false;\n startPointer = location+1;\n }\n return true;\n }", "public Iterable<String> matches(String prefix, int k) {\n\t\tmatchesList = new ArrayList<String>();\n\t\t\n\t\tif(prefix != null){\n\t\t\tfor(Term term : data.getRawList()){\n\t\t\t\tif((term.getWord().startsWith(prefix))&&(matchesList.size() < k)){\n\t\t\t\t\tmatchesList.add(term.getWord());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn matchesList;\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "public ArrayList<TakeStock> findMemberByName(String name) {\n\n matches.clear();\n\n for(TakeStock member : mTakeStockList) {\n\n if(member.getProducts_name().toLowerCase().contains(name)){\n matches.add(member);\n }\n\n }\n return matches; // return the matches, which is empty when no member with the given name was found\n }", "public HashSet<String> loadGrepResults(String word) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"grepTest.txt\"));\n\t\tString line;\n\t\tboolean foundSection = false;\n\t\tHashSet<String> found = new HashSet<String>();\n\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (foundSection & line.contains(\"Word: \"))\n\t\t\t\tbreak;\n\t\t\tif (line.contains(\"Word:\") && line.contains(word)) {\n\t\t\t\tfoundSection = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!foundSection)\n\t\t\t\tcontinue;\n\t\t\tfound.add(line.toLowerCase());\n\t\t}\n\t\t// fails if section wasn't found\n\t\tassertTrue(foundSection);\n\t\treturn found;\n\t}", "public ArrayList<SearchResult> partialSearch(String[] searchWords) {\n\t\tArrayList<SearchResult> words = new ArrayList<>();\n\t\tHashMap<String, SearchResult> resultMap = new HashMap<>();\n\t\tfor (String word : searchWords) {\n\t\t\tfor (String key : index.tailMap(word, true).navigableKeySet()) {\n\t\t\t\tif (key.startsWith(word)) {\n\t\t\t\t\twordSearch(key, resultMap, words);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tCollections.sort(words);\n\t\treturn words;\n\t}", "public ArrayList<AddressEntry> searchByName(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getName().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "public List<Word> search(final Section section) {\n return DICTIONARY.parallelStream()\n .filter(word -> BusinessLogic.IS_EQUAL_LENGTH.apply(word.getNumber(), section.getDigits()))\n .filter(word -> BusinessLogic.IS_EQUAL_HASH.apply(word.getNumber(), section.getDigits()))\n .filter(word -> BusinessLogic.IS_EQUAL_DIGITS.apply(word.getNumber(), section.getDigits()))\n .collect(Collectors.toList());\n }", "public String findAllSubstring(String s) {\n Set<String> set = new HashSet<>();\n String res = \"\";\n int max = -1;\n\n for (int i = 0; i < s.length(); i++) {\n String cur = \"\";\n for (int j = i; j < s.length(); j++) {\n cur += s.charAt(j);\n if (set.contains(cur) && cur.length() > max) {\n res = cur;\n max = cur.length();\n } else {\n set.add(cur);\n }\n }\n }\n return res;\n }", "public List search(String str) {\n List searchList = new ArrayList();\n try {\n //set the scanner to the entire bible file\n scan = new Scanner(new File(\"kjvdat.txt\"));\n //set the regex pattern with the search string\n Pattern p = Pattern.compile(\"(\" + str + \")\");\n //scan through the entire verses for the search parameter\n while (scan.hasNext()) {\n String txt = scan.nextLine();\n Matcher m = p.matcher(txt);\n if (m.find()) {\n //insert verses that are found into the searchlist\n searchList.add(txt.substring(0, txt.length() - 1));\n }\n }\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Finder.class.getName()).log(Level.SEVERE, null, ex);\n }\n //return list of all verses found containing the search parameter\n scan.close();\n return searchList;\n }", "protected boolean isSubstring(String substring, String word) {\r\n//\t\tboolean isSub = true;\r\n\t\treturn word.contains(substring);\r\n//\t\treturn isSub;\r\n\t}", "public ArrayList<AddressEntry> find(String startOf_lastName) {\n ArrayList<AddressEntry> filteredList = new ArrayList<>();\n\n for (int i = 0; i < addressEntryList.size(); i++) {\n if (addressEntryList.get(i).getLastName().toLowerCase().startsWith(startOf_lastName.toLowerCase())) {\n filteredList.add(addressEntryList.get(i));\n }\n }\n\n return filteredList;\n }", "List<String> getRecipeByIngredients(CharSequence query);", "public ArrayList<String> findSimilarStringsPredicates(String predicate){\n\t\t\n\t\tArrayList<StringScore> matchesScores = new ArrayList<StringScore>(); \n\t\tArrayList<String> matches = new ArrayList<String>();\n\t\tString trimmedString;\n\t\t\n\t\t\n\t\t// Whatever is after the last /\n\t\ttrimmedString = predicate.substring(predicate.lastIndexOf(\"/\")+1, predicate.length()-1).toLowerCase();\t\n\t\tString currentPredicate;\n\n\t\t// Semantic relations\n\t\tArrayList<String> list = semanticRelationsMap.get(trimmedString);\n\t\t\n\t\tif(list != null) {\n\t\t\tfor(int i = 0; i < predicatesList.size(); ++i){ \n\t\t\t\tcurrentPredicate = predicatesList.get(i);\n\t\t\t\t// Trim predicate\n\t\t\t\tcurrentPredicate = currentPredicate.substring(currentPredicate.lastIndexOf(\"/\")+1,\n\t\t\t\t\t\tcurrentPredicate.length()-1).toLowerCase();\n\t\t\t\t\n\t\t\t\tfor(String element : list) {\n\t\t\t\t\tif(currentPredicate.compareTo(element) == 0) {\n\t\t\t\t\t\tmatchesScores.add(new StringScore(predicatesList.get(i), 1));\n\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\tSystem.out.println(\"Searching in all predicates...\");\n\t\t// Search in predicates\n\t\tint minIndex = 0;\n\t\tint maxIndex = predicatesList.size() - 1;\n\t\t\n\t\t// Assign threads to search tasks\n\t\tint indexesPerThread = (maxIndex - minIndex) / (numOfCores - 1);\n\t\t\n\t\t// Arraylist to keep track of threads\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\n\t\t\n\t\tfor(int i = minIndex; i < maxIndex; i += indexesPerThread) {\n\t\t\tthreads.add(new Thread(new PredicateSearchTask(i,\n\t\t\t\t\tMath.min(i+indexesPerThread, predicatesList.size() - 1),\n\t\t\t\t\tpredicate)));\n\t\t}\n\t\t\n\t\t// Start threads\n\t\tfor(int i = 0; i < threads.size(); ++i) {\n\t\t\tthreads.get(i).start();\n\t\t}\n\t\t\n\t\t// Join threads before continue\n\t\tfor(int i = 0; i < threads.size(); ++i) {\n\t\t\ttry {\n\t\t\t\tthreads.get(i).join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Copy contents of the synchronized list into the matchesScores list\n\t\tArrayList<StringScore> newMatchesScores = new ArrayList<StringScore>();\n\t\tfor(StringScore stringScore : setForPredicates) {\n\t\t\tnewMatchesScores.add(stringScore);\n\t\t}\n\t\tjava.util.Collections.sort(newMatchesScores, new StringScoreLengthComparator());\n\t\tmatchesScores.addAll(newMatchesScores);\n\t\tfor(int i = 0; i < 5 && i < matchesScores.size(); ++i){\n\t\t\tmatches.add(matchesScores.get(i).getS());\n\t\t}\n\t\treturn matches;\n\t\t\n\t}", "private List<String> findSynonyms(String gene,String scope){\n\t\t\n\t\tList<String> li = new ArrayList<String> ();\n\t\t\n\t\tif (this.termSet.contains(gene)){\n\t\t\tfor (String str:this.synonymDictionary.get(gene).get(scope)){\n\t\t\t\tli.add(str);\n\t\t\t};\n\t\t}\n\t\treturn li;\n\t\n\t}", "public static LinkedList<String> findSubsequence(String givenWord, String words[]){\n LinkedList<String> subSeqList = new LinkedList<String>();\n for(String word : words){\n int givenIndex = 0;\n boolean isSubsequence= true;\n for(int i = 0;i < word.length(); i++){\n boolean foundLetter = false;\n while(!foundLetter && givenIndex < givenWord.length())\n if (word.charAt(i) == givenWord.charAt(givenIndex)){\n givenIndex++;\n foundLetter = true;\n }\n else {\n givenIndex++;\n }\n if(!foundLetter){\n isSubsequence = false;\n }\n }\n if(isSubsequence){\n subSeqList.add(word);\n }\n }\n return subSeqList;\n }", "public static Predicate<CharSequence> matchPrefixes(CharSequence... sequences) {\n return MatchWords.matchPrefixes(sequences);\n }", "public List<List<String>> suggestedProducts(String[] products, String searchWord) {\n Trie trie = new Trie();\n for(String product : products){\n trie.insert(product);\n }\n List<List<String>> res = new ArrayList<>();\n\n for(int i = 1; i <= searchWord.length(); i++){\n String str = searchWord.substring(0, i);\n List<String> inner = trie.suggest(str);\n res.add(inner);\n\n\n }\n return res;\n\n\n\n }", "private boolean isContain(String fullText, String searchString) {\n String pattern = \"\\\\b\" + searchString + \"\\\\b\";\n Pattern p = Pattern.compile(pattern, Pattern.CASE_INSENSITIVE); //make the keyword case insensitive\n Matcher m = p.matcher(fullText);\n return m.find();\n }", "public boolean startsWith(String word) {\n\t\tTrieNode temp = root;\n\t\tint c;\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tc = word.charAt(i) - 'a';\n\t\t\tif (temp.childrens[c] == null)\n\t\t\t\treturn false;\n\n\t\t\ttemp = temp.childrens[c];\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean search(String word) {\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n return false;\n }\n now = now.children.get(c);\n }\n return now.hasWord;\n}", "public IndexedList<Task> search(String partTitle) {\n\t\tpartTitle=partTitle.toLowerCase();\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getTitle().toLowerCase().contains(partTitle))\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t}", "public static ArrayList<Word> search(String inputString){\n Node current = root;\n \n // remove doubles and make aphameticals\n Word tempWord = new Word(inputString);\n \n String s = tempWord.getTrieWord();\n \n ArrayList<Word> results = new ArrayList<Word>();\n ArrayList<Word> fuzzyResults = new ArrayList<Word>();\n\n while(current != null){\n \n for(int i=0;i<s.length();i++){ \n if(current.subNode(s.charAt(i)) == null){\n System.out.println(\"WE Have an extra letter ------ !!!!\");\n Collections.sort(results, new CustomComparator()); \n return results;\n }\n else\n current = current.subNode(s.charAt(i));\n \n if(i==inputString.length()-2){\n fuzzyResults.addAll(current.possibleWords);\n }\n \n }\n \n if (current.marker == true)\n results.addAll(current.possibleWords);\n \n // return results; // place here for no problems\n \n }\n \n \n \n //remove fuzzyResults from normal results\n for(int r=0; r<results.size(); r++){\n \n if(results.get(r).isFuzzy){\n results.remove(r);\n r--;\n }\n }\n \n \n // Go through fuzzy results and only accept ones that are less than 1 char of search string\n for(int r=0; r<fuzzyResults.size(); r++){\n \n if(((fuzzyResults.get(r).getWord().length()-1)==inputString.length()) && fuzzyResults.get(r).isFuzzy ){\n results.add(fuzzyResults.get(r)); \n }\n }\n \n Collections.sort(results, new CustomComparator()); \n\n return results;\n \n }", "boolean containsStudentWith(String name);", "public boolean startsWith(String word) {\n TrieNode tn = root;\n int len = word.length();\n for(int i=0; i<len; i++){\n char c = word.charAt(i);\n TrieNode temp = tn.hm.get(c);\n if(temp == null) return false;\n tn = temp;\n }\n return true;\n }", "public List<String> findZipCodersWhoseNamesContainLetter(String letter, List<String> zipcoders) {\n\n List<String> zipcodersAnswer = new ArrayList<>();\n\n for(String s: zipcoders){\n for(int i = 0; i < s.length(); i++){\n if(s.substring(i, i + 1).equalsIgnoreCase(letter)){\n zipcodersAnswer.add(s);\n i = s.length();\n }\n }\n }\n return zipcodersAnswer;\n }", "public static void main(String[] args) {\n\n String str = \"abXYabc\"; //abXYabc //prefix means first couple of letters\n int n = 2; // 3\n // abX Yabc // rest of the string means word after the prefix\n\n String prefix = str.substring(0,n); // 0, 2 //here we need multiple characters\n String remaining = str.substring(n); //XYabc\n\n System.out.println(remaining.contains(prefix));\n\n\n }", "public boolean hasRecipeTitle(String title) {\n\t\tfor (int i=0; i<recipeList.size(); i++) {\n\t\t\tif (recipeList.get(i).getTitle().equals(title)) {\n\t\t\t\treturn true;\n\t\t\t} \n\t\t}\n\t\treturn false;\n\t}", "public boolean contains(Item i){\r\n return stream().anyMatch(item -> item.name.endsWith(i.name));\r\n }", "public boolean search(String word) {\n // Write your code here\n Queue<TrieNode> nexts=new LinkedList<>();\n nexts.add(root);\n int index=0;\n while(!nexts.isEmpty()){\n int size=nexts.size();\n char c=word.charAt(index);\n boolean flag=false;\n for(int i=0;i<size;++i){\n TrieNode cur=nexts.poll();\n if(c=='.'){\n for(TrieNode tempNode:cur.children.values()){\n nexts.add(tempNode);\n flag|=tempNode.hasWord;\n }\n } else if(cur.children.containsKey(c)){\n TrieNode nextNode=cur.children.get(c);\n flag|=nextNode.hasWord;\n nexts.add(nextNode);\n }\n }\n index++;\n if(index>=word.length()) return flag;\n }\n return false;\n }", "private String search_words(String word, int index){\n\t\tString found_words = \"\";\n\t\tint local_index = index +1;\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs){\n\t\t\tif(local_index > word.length()-1 || word.toLowerCase().charAt(local_index) == Character.toLowerCase(child.getRepresentative_letter()))\n\t\t\t\tfound_words += child.search_words(word, local_index);\n\t\t}\n\t\tif(current_word != null && word.length() > current_word.length())\n\t\t\treturn found_words;\n\t\tif(current_word != null && !found_words.equals(\"\"))\n\t\t\treturn current_word.toLowerCase().equals(word.toLowerCase()) ? current_word +\" & \" + definition + \"#\" + found_words +\"#\" : current_word + \"#\" + found_words;\n\t\telse if(current_word != null && found_words.equals(\"\"))\n\t\t\treturn current_word.toLowerCase().equals(word.toLowerCase()) ? current_word +\" & \" + definition + \"#\": current_word+ \"#\";\n\t\telse //current_word == null && found_words != null\n\t\t\treturn found_words;\n\t}", "void findInGoods(String str) {\n Iterator<Map.Entry<SportEquipment, Integer>> i = goods.entrySet().iterator();\n int count = 1;\n boolean flag = false; //indicates whether sequences were found or not\n\n while (i.hasNext()) {\n\n Map.Entry<SportEquipment, Integer> pair = i.next();\n SportEquipment seq = pair.getKey();\n String category = seq.getCategory().toString();\n String name = seq.getTitle();\n if (category.contains(str.toUpperCase()) || name.contains(str.toLowerCase())) {\n System.out.println(Integer.toString(count) + Strings.DROP + category + Strings.SEPARATOR2 +\n name + Strings.CURRENCY + seq.getPrice() + Strings.SEPARATOR + pair.getValue());\n flag = true;\n }\n count++;\n }\n if (!flag) System.out.println(Strings.ITEM_IS_NOT_FOUND);\n\n }", "PersonFinder whereFirstNameStartsWith(String prefix);", "public ArrayList<AddressEntry> searchByNote(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getNote().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }", "public boolean searchTag(String s){\n\t\tfor(String a : tags)\n\t\t\tif(a.equalsIgnoreCase(s))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "public List<Product> findByNameIs(String name);", "public List<Recipe> getRecipeByName(String name)\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n //For exact name query do: Cursor cursor = qb.query(db,sqlSelect, \"name = ?\",new String[]{name}, null, null, null);\n //LIKE implementation is done below\n Cursor cursor = qb.query(db,sqlSelect, \"name LIKE ?\",new String[]{\"%\"+name+\"%\"}, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "public boolean search(String s) {\n\t\tTreeNode node = root;\n\n\t\tboolean completed = false;\n\n\t\tfor (int i = 0; i<s.length(); i++){\n\n\t\t\tif (i == s.length()-1){\n\t\t\t\tcompleted = true;\n\t\t\t}\n\n\n\t\t\tnode = search(String.valueOf(s.charAt(i)), node, completed);\n\n\t\t\tif (foundFalse == true){\n\t\t\t\tfoundFalse = false;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\t\n\t \n\t}", "private Collection<String[]> findPrefixPairMatches(String unitNameWithPrefix, boolean constrainBasedOnValidUnitNames, boolean onlyFirstMatch) {\n Collection<String[]> prefixMatches = new ArrayList<>();\n\n String[] prefixMatchByValue = findPrefixMatchByValue(unitNameWithPrefix, constrainBasedOnValidUnitNames);\n if(prefixMatchByValue != NO_PREFIX_MATCH_ARRAY)\n prefixMatches.add(prefixMatchByValue);\n\n prefixMatches.addAll(findPrefixMatchesByName(unitNameWithPrefix, constrainBasedOnValidUnitNames, onlyFirstMatch));\n\n for(String[] prefixMatch:prefixMatches)\n setProperlyOrderedPrefixNamePairs(prefixMatch);\n\n return prefixMatches;\n }", "public String getGoodWordStartingWith(String s) {\n Random random = new Random();\n String x = s;\n TrieNode temp = searchNode(s);\n if (temp == null){\n return \"noWord\";\n }\n // get a random word\n ArrayList<String> charsNoWord = new ArrayList<>();\n ArrayList<String> charsWord = new ArrayList<>();\n String c;\n\n while (true){\n charsNoWord.clear();\n charsWord.clear();\n for (String ch: temp.children.keySet()){\n if (temp.children.get(ch).isWord){\n charsWord.add(ch);\n } else {\n charsNoWord.add(ch);\n }\n }\n System.out.println(\"------>\"+charsNoWord+\" \"+charsWord);\n if (charsNoWord.size() == 0){\n if(charsWord.size() == 0){\n return \"sameAsPrefix\";\n }\n s += charsWord.get( random.nextInt(charsWord.size()) );\n break;\n } else {\n c = charsNoWord.get( random.nextInt(charsNoWord.size()) );\n s += c;\n temp = temp.children.get(c);\n }\n }\n if(x.equals(s)){\n return \"sameAsPrefix\";\n }else{\n return s;\n }\n }", "public List<String> exhaustedSearchSynonyms(String gene){\n\t\tfor(String term:this.termSet){\n\t\t\tif (term.contains(gene)){\n\t\t\t\treturn findAllSynonyms(term);\n\t\t\t}\n\t\t}\n\t\treturn new ArrayList<String> ();\n\t}", "void howManyStartsWithPrefix(String str) {\n dictionary.add(str);\n int count = 0;\n for (String word : words) {\n if (word.length() >= str.length()) {\n boolean isPrefix = true;\n for (int i = 0; i < str.length(); i++) {\n if (word.charAt(i) != str.charAt(i)) {\n isPrefix = false;\n break;\n }\n }\n if (isPrefix) {\n count++;\n }\n\n }\n }\n assertEquals(count, trie.howManyStartsWithPrefix(str));\n }", "public Iterable<String> keysThatMatch(String pat) {\n LinkedList<String> q = new LinkedList<String>();\n collect(root, pat, \"\", q);\n return q;\n }", "public String searchByName(String searchString) {\n boolean foundBook = false;\n String searchResult = \"\";\n \n for(Literature literature:literatureRegister) {\n if(literature.getTitle().contains(searchString) || literature.getAuthor().contains(searchString)) {\n searchResult += \"The literature title is: \" + literature.getTitle() + \".\\n\"\n + \"The literature author is: \" + literature.getAuthor() + \".\\n\";\n if(literature instanceof Book) {\n searchResult += \"The book genre is: \" + ((Book) literature).getGenre() + \".\\n\";\n }\n if(literature instanceof Magazine) {\n searchResult += \"The magazine brand is: \" + ((Magazine) literature).getBrand() + \".\\n\";\n }\n if(literature instanceof NewsPaper) {\n searchResult += \"The new's paper brand is: \" + ((NewsPaper) literature).getBrand() + \".\\n\";\n }\n if(literature instanceof BookSeries) {\n searchResult += \"The literature brand is: \" + ((BookSeries) literature).getGenre() + \".\\n\" + \"The books in this series is: \" + \"\\n\" + (((BookSeries) literature).listAllBooks());\n }\n foundBook = true;\n }\n }\n \n if(!foundBook){\n searchResult = (\"No literature with the name: \" + searchString + \" found.\");\n }\n return searchResult;\n }", "abstract boolean matchesResourceName( String resourceName );", "@Override\n\tpublic List<Product> findByName(String term) {\n\t\treturn productDAO.findByNameLikeIgnoreCase(\"%\" + term + \"%\");\n\t}", "List<String> getRecipeTitles();", "private boolean myContains(String str2, String search2) {\n if (search2.length() == 0) {\n return true;\n }\n int k = 0;\n int f = 0;\n String str = str2.toLowerCase();\n String search = search2.toLowerCase();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == search.charAt(k)) {\n k += 1;\n f += 1;\n if (f == search.length()) {\n return true;\n }\n } else {\n k = 0;\n f = 0;\n }\n }\n return false;\n }", "public Set<String> Search(String search){\n\t\treturn Search(search, true);\n\t}" ]
[ "0.6799739", "0.65548974", "0.6533036", "0.6502633", "0.61474395", "0.59735984", "0.5771243", "0.5762086", "0.5652045", "0.5512498", "0.5498629", "0.54712486", "0.5446229", "0.5418264", "0.54004115", "0.539963", "0.53919864", "0.5391196", "0.5390866", "0.53855574", "0.5385539", "0.53668314", "0.53581035", "0.53567845", "0.53340554", "0.53121746", "0.5312077", "0.5312077", "0.52578175", "0.52517086", "0.5250078", "0.5242129", "0.52394974", "0.5229937", "0.52209145", "0.52163017", "0.5207313", "0.52059484", "0.5201335", "0.5183557", "0.51625806", "0.51512444", "0.5137109", "0.5125531", "0.5123914", "0.5106133", "0.5103045", "0.50942546", "0.5092984", "0.5092318", "0.5080731", "0.5074914", "0.50694644", "0.5067876", "0.50660294", "0.50526446", "0.5045321", "0.50388414", "0.5035812", "0.5007354", "0.5001604", "0.49900484", "0.49863374", "0.4982383", "0.49768698", "0.4971568", "0.49655947", "0.4963628", "0.49491245", "0.4949095", "0.49423346", "0.4938327", "0.4935649", "0.49328217", "0.49315232", "0.49289018", "0.49261934", "0.4923737", "0.49199453", "0.49192855", "0.49143305", "0.49133092", "0.4910661", "0.49089321", "0.49076927", "0.49066308", "0.4902762", "0.4902531", "0.48974702", "0.4895696", "0.48919395", "0.4884542", "0.48845297", "0.48844332", "0.48790672", "0.4877695", "0.4873257", "0.48710698", "0.48706394", "0.48687816" ]
0.5145561
42
find recipes by it's type
SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cursor loadRecipesByType(String typeR) {\r\n Cursor c = db.query(recipes.TABLENAME, new String[]{recipes.TITLE, recipes.IMAGE, recipes.INGREDIENTS, recipes.STEPS, recipes.TYPE, recipes.TIME, recipes.PEOPLE, recipes.IDRECIPE}, recipes.TYPE + \"=\" + \"'\" + typeR + \"'\", null, null, null, null);\r\n if (c != null) c.moveToFirst();\r\n return c;\r\n }", "Food getByType(String type);", "public void findByType(String type)\n {\n boolean found = false;\n for(KantoDex entry : entries)\n {\n if(entry.getTypes1().contains(type) && !type.equals(\"\"))\n {\n found = true;\n } \n }\n if(!found)\n {\n System.out.println(\"You have input a nonexistent type, or the type was not applicable to this entry.\"); \n }\n else\n {\n System.out.println(\"All Pokedex entries of type \" + type + \":\");\n for(KantoDex entry : entries)\n {\n if(entry.getType1().equals(type) || entry.getType2().equals(type))\n {\n entry.display();\n }\n }\n }\n }", "public List<Resource> findByType(ResourceType type) {\n\t\tMap<String, Object> typeFilter = new HashMap<>(1);\n\n\t\ttypeFilter.put(\"type\", new ValueParameter(type));\n\n\t\treturn this.filter(typeFilter);\n\t}", "@Override\n\tpublic List<Food> findFood(int typeid) {\n\t\treturn fb.findFood(typeid);\n\t}", "public static List<RecipeItemSelector> getRequireItemsFromRecipe(IRecipe recipe){\n\t\tif(recipe instanceof ShapelessRecipes){\n\t\t\tList<ItemStack> isList = ((ShapelessRecipes)recipe).recipeItems;\n\t\t\treturn isList.stream().map(input -> RecipeItemSelector.of(input, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapedRecipes){\n\t\t\tItemStack[] isarray = ((ShapedRecipes)recipe).recipeItems;\n\n\t\t\treturn Lists.<ItemStack>newArrayList(isarray).stream().map( is ->RecipeItemSelector.of(is, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapelessOreRecipe){\n\n\n\n\t\t\tList<RecipeItemSelector> list1 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof ItemStack)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of((ItemStack)obj, null)).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> list2 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof String)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of(null, new OreDict((String)obj))).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\trt.addAll(list1);\n\t\t\trt.addAll(list2);\n\t\t\treturn rt;\n\n\t\t}\n\t\tif(recipe instanceof ShapedOreRecipe){\n\t\t\tObject[] isarray = ((ShapedOreRecipe)recipe).getInput();\n\t\t\tList<Object> objList = Lists.newArrayList(isarray);\n\t\t\tobjList.stream().flatMap(obj ->{\n\t\t\t\t//\t\t\t\t\tUnsagaMod.logger.trace(\"recipe\", input.getClass());\n\t\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\t\tif(obj instanceof List){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"array\");\n\t\t\t\t\trt.addAll(convertListTypeObject(obj));\n\t\t\t\t}\n\t\t\t\tif(obj instanceof ItemStack){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"itemstack\");\n\t\t\t\t\tList<RecipeItemSelector> list = Lists.newArrayList(RecipeItemSelector.of((ItemStack)obj, null));\n\t\t\t\t\trt.addAll(list);\n\t\t\t\t}\n\n\t\t\t\t//\t\t\t\t\tif(objs!=null){\n\t\t\t\t//\t\t\t\t\t\tObject[] objarray = (Object[]) objs;\n\t\t\t\t//\t\t\t\t\t\treturn ListHelper.stream(objarray).map(new Function<Object,Tuple<ItemStack,OreDict>>(){\n\t\t\t\t//\n\t\t\t\t//\t\t\t\t\t\t\t@Override\n\t\t\t\t//\t\t\t\t\t\t\tpublic Tuple<ItemStack, OreDict> apply(Object input) {\n\t\t\t\t//\t\t\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", input);\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof ItemStack){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of((ItemStack)input,null);\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof String){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of(null, new OreDict((String) input));\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t//\t\t\t\t\t\t\t}}\n\t\t\t\t//\t\t\t\t\t\t).getList();\n\t\t\t\t//\t\t\t\t\t}\n\n\t\t\t\treturn rt.stream();\n\t\t\t});\n\t\t}\n\t\tHSLib.logger.trace(\"recipeutil\", \"どのレシピにも合致しない?\");\n\t\treturn Lists.newArrayList();\n\t}", "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = new ArrayList<Recipe>();\n\t\t\t\t\n\t\t\t\t// Temporary containers to hold the search results until they can \n\t\t\t\t// be combined in mRecipes \n\t\t\t\tArrayList<Recipe> mRecipesNAME = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesCATEGORY = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINGREDIENT = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesDESCRIPTION = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINSTRUCTION = new ArrayList<Recipe>();\n\t\t\t\tIterator<Recipe> iterator = RECIPES.iterator(); \n\t\t\t\t\n\t\t\t\t// Search all recipes in Recipe Box for name matches\n\t\t\t\twhile (iterator.hasNext()){\n\n\t\t\t\t\t// Load the next recipe\n\t\t\t\t\tRecipe recipe = iterator.next();\n\t\t\t\t\t\n\t\t\t\t\t// Check for recipe NAME match\n\t\t\t\t\tif (recipe.nameContains(searchTerm)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesNAME.add(recipe);\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe CATEGORY match\n\t\t\t\t\telse if (recipe.categoriesContain(searchTerm)) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesCATEGORY.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INGREDIENT match\n\t\t\t\t\telse if (recipe.ingredientsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINGREDIENT.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe DESCRIPTION match\n\t\t\t\t\telse if (recipe.descriptionContains(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesDESCRIPTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INSTRUCTION match\n\t\t\t\t\telse if (recipe.instructionsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINSTRUCTION.add(recipe);\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\t\n\t\t\t\t// Create an ordered list of recipes from most important to least important\n\t\t\t\tmRecipes.addAll(mRecipesNAME);\n\t\t\t\tmRecipes.addAll(mRecipesCATEGORY);\n\t\t\t\tmRecipes.addAll(mRecipesINGREDIENT);\n\t\t\t\tmRecipes.addAll(mRecipesDESCRIPTION);\n\t\t\t\tmRecipes.addAll(mRecipesINSTRUCTION);\n\t\t\t\t\n\t\t\t\t// Return ordered list of recipes\n\t\t\t\tLog.d(TAG, \"Finish function searchNames\");\n\t\t\t\treturn mRecipes;\n\t\t\t\t\n\t\t\t}", "List<RecipeObject> searchRecipes(String query, String number, String offset, String diet, String intolerances, String type, String cuisine, String ingredients) throws EntityException;", "SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;", "ResultSet searchType(String type) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * \"\n \t\t\t+ \"FROM Pokemon AS P, Types AS T \"\n \t\t\t+ \"WHERE (P.Type1=T.TypeID OR P.Type2 = T.TypeID) AND \"\n \t\t\t+ \"T.name = \" + \"'\" + type + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "ArrayList<Restaurant> getRestaurantListByType(String type);", "public Set<Node> getChildByType(String type) {\n HashSet<Node> result = new HashSet<Node>();\n Iterable<Relationship> relations = gisNode.getRelationships(Direction.OUTGOING);\n for (Relationship relationship : relations) {\n Node node = relationship.getEndNode();\n if (type.equals(node.getProperty(INeoConstants.PROPERTY_TYPE_NAME, \"\"))) {\n result.add(node);\n }\n }\n return result;\n }", "List<Recipe> getAllRecipes();", "public Items[] findWhereTypeEquals(String type) throws ItemsDaoException;", "Role findByType(RoleType type);", "ArrayList<RecipeObject> getRecipes(String recipeName);", "<T> Set<T> lookupAll(Class<T> type);", "@Override\n\tpublic List<FoodType> FindAllType() {\n\t\treturn ftb.FindAllType();\n\t}", "Recipe getRecipe(CharSequence query);", "@Override\n public void filter(String type) {\n\n List<Doctor> newDocs = new ArrayList<>();\n \n for (Doctor doctor : doctors) {\n //If doctor's specialization matches user searched specialization add to new doctor list\n if (doctor.getSpecialization()!=null && doctor.getSpecialization().equals(type)) {\n newDocs.add(doctor);\n }\n }\n \n //Set new doctor list as the doctor list\n doctors = newDocs;\n }", "private TreeObject find(String name, int type) {\n\t return widgetRoots[type - 1].find(name);\n\t}", "@Test\n public void ShouldFindbyCategory() {\n Recipe curry = new Recipe();\n curry.setCategory(\"curry\");\n Recipe curryOne = new Recipe();\n curryOne.setCategory(\"curry\");\n Recipe breakfast = new Recipe();\n breakfast.setCategory(\"breakfast\");\n recipesRepository.save(curry);\n recipesRepository.save(curryOne);\n recipesRepository.save(breakfast);\n\n // When I check for curries\n List<Recipe> curries = recipesRepository.findByCategory(\"curry\");\n\n // Then only curries are returned\n assertThat(curries).containsExactly(curry, curryOne);\n }", "public Kind findByType(String type) {\n\t\tString hql=\"from Kind k where k.type=:type\";\n\t\tKind kind = sessionFactory.getCurrentSession().createQuery(hql,Kind.class).setParameter(\"type\", type).uniqueResult();\t\t\n\t\treturn kind;\n\t}", "public interface Recipe {\n\n String getTitle();\n\n String getDescription();\n\n List<String> getMealType();\n\n List<String> getFoodType();\n\n List<String> getIngredients();\n}", "List<ReportType> findTypes();", "List<Type> getTypeList(String type);", "@Nullable\n protected RECIPE findFirstRecipe(@Nullable Collection<RECIPE> recipes, Predicate<RECIPE> matchCriteria) {\n return recipes == null ? null : recipes.stream().filter(matchCriteria).findFirst().orElse(null);\n }", "public Recipe getRecipeAt(Long id) {\r\n \t\tfor (Recipe recipe : recipeList)\r\n \t\t\tif (recipe.getId() == id)\r\n \t\t\t\treturn recipe;\r\n \t\treturn null;\r\n \t}", "private DFAgentDescription[] findService(String name, String type) {\n\t\ttry {\n\t\t\tServiceDescription filter = new ServiceDescription();\n\t\t\tfilter.setName(name);\n\t\t\tfilter.setType(type);\n\n\t\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\t\tdfd.addServices(filter);\n\n\t\t\tDFAgentDescription[] results = DFService.search(this, dfd);\n\t\t\treturn results;\n\n\t\t} catch (FIPAException e) {\n\t\t\tLOG.error(\"exception while searching service {}:{} : {}\", name, type, e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public interface RecipeManager {\n \n /** \n * creates a recipe in DB\n * @param recipe recipe to be created\n */\n void createRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * deletes a recipe from DB\n * @param recipe recipe to be deleted\n */\n void deleteRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * edit a recipe in DB\n * @param recipe recipe to be edited \n */\n void updateRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * find recipe by ID\n * @param id id of the searched recipe\n * @return recipe with entered ID\n */ \n Recipe findRecipeById(Long id) throws ServiceFailureException;\n \n /**\n * find recipes, that have this substring in their names\n * @param name name of the searched recipes\n * @return set of recipes with entered substring\n */\n SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;\n \n /**\n * find recipes by it's type\n * @param type type of the searched recipes\n * @return set of recipes with entered type\n */\n SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;\n \n /**\n * find recipes by it's category\n * @param category category of the searched recipes\n * @return set of recipes with entered category\n */\n SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;\n \n /**\n * find recipes by it's cooking time\n * @param fromTime lower border of the searched cooking time\n * @param toTime upper border of the searched cooking time\n * @return set of recipes with cooking time between lower and upper borders\n */\n SortedSet<Recipe> findRecipesByCookingTime(int fromTime, int toTime) throws ServiceFailureException;\n SortedSet<Recipe> findRecipesUptoCookingTime(int toTime) throws ServiceFailureException;\n SortedSet<Recipe> findRecipesFromCookingTime(int fromTime) throws ServiceFailureException;\n \n /**\n * find all recipes in the recipe book\n * @return all recipes in the system\n */\n SortedSet<Recipe> findAllRecipes() throws ServiceFailureException;\n}", "ResponseEntity<List<Type>> findTaskTypes();", "List<Map<String, Object>> searchIngredient(String name);", "SortedSet<Recipe> findAllRecipes() throws ServiceFailureException;", "ArrayList<RecipeObject> getRecipes();", "public List getResourceTypes(ResourceType resourceType);", "@Override\r\n\tpublic List<CabinCrew> findCabinCrewByTypeRating(String typeCode) {\r\n\t\tList<CabinCrew> cabinCrewByTypeRating = new ArrayList<>();\r\n\t\tfor (CabinCrew cc : cabinCrew) {\r\n\t\t\tfor (String s : cc.getTypeRatings()) {\r\n\t\t\t\tif (s.equals(typeCode)) {\r\n\t\t\t\t\tcabinCrewByTypeRating.add(cc);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cabinCrewByTypeRating;\r\n\t}", "@Override\r\n\tpublic List<AsxDataVO> findByType(int type) {\n\t\treturn mongoTemplate.find(new Query(Criteria.where(\"type\").is(type)), AsxDataVO.class);\r\n\t}", "Recipe findRecipeById(Long id) throws ServiceFailureException;", "public List<Recipe> findAllRecipe(){\n\t\treturn sessionFactory.openSession().createQuery(\"from Recipe\").list();\n\t\t\n\t}", "public List<Recipe> getRecipeByName(String name)\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n //For exact name query do: Cursor cursor = qb.query(db,sqlSelect, \"name = ?\",new String[]{name}, null, null, null);\n //LIKE implementation is done below\n Cursor cursor = qb.query(db,sqlSelect, \"name LIKE ?\",new String[]{\"%\"+name+\"%\"}, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "public Recipe findByIdRecipe(int id) {\n\t\tSession session = sessionFactory.openSession();\n\t\treturn (Recipe) session.get(Recipe.class, id);\n\t}", "SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;", "@java.lang.Override\n public io.grafeas.v1.RecipeOrBuilder getRecipeOrBuilder() {\n return recipe_ == null ? io.grafeas.v1.Recipe.getDefaultInstance() : recipe_;\n }", "public List<Product> findByVehicleType(String typeOfVehicle);", "private void removeEnchantRecipe() {\n Iterator<Recipe> it = Bukkit.recipeIterator();\n\n while (it.hasNext()) {\n Recipe res = it.next();\n\n if (res.getResult().getType() == ENCHANT_TABLE.getType()) {\n it.remove();\n }\n }\n }", "public static Resource[] getAllOfType( Resource[] library, String type){\r\n int count = 0;\r\n // update the count if the item in the library is checked out\r\n for(int i = 0; i < library.length; i++){\r\n if (library[i].getCheckedOut()) { \r\n count = count++; \r\n }\r\n }\r\n \r\n // create a Resource array whose length is equal to count \r\n // that contains the checked out items that are of specific type\r\n Resource[] typeCheckOut = new Resource[count];\r\n for(int i = 0; i < library.length; i++){\r\n if (library[i].getCheckedOut()) { \r\n if (library[i].getType() == type){\r\n for ( int c = 0; c < typeCheckOut.length; c++) {\r\n typeCheckOut[c] = library[i];\r\n }\r\n }\r\n }\r\n }\r\n\r\n return typeCheckOut; \r\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/recipes\", produces = MediaType.APPLICATION_JSON_VALUE)\n public RecipesDescriptor getRecipes() {\n final Stream<Recipe> stream = StreamSupport.stream(this.recipeRepository.findAll().spliterator(), false);\n\n final List<Recipe> recipes = stream.collect(Collectors.toList());\n return new RecipesDescriptor(recipes);\n }", "public static void findIngredient(String ingredient, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getIngredients().contains(ingredient)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "public List<Driver> findDriverByType(String driverType);", "public boolean findType(BikeType type){ //Checks if the same name and rental price is registered - true if it's found\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(FIND_TYPE)){\n \n ps.setString(1, type.getTypeName());\n ps.setDouble(2, type.getRentalPrice());\n ResultSet rs = ps.executeQuery();\n if(rs.isBeforeFirst()){\n return true;\n }\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return false;\n }", "@SuppressWarnings(\"unchecked\")\n public <T extends Resource> List<T> getChildren(Class<T> type)\n {\n Resource[] allChildren = getChildren();\n List<T> filteredChildren = new ArrayList<T>();\n for(Resource child : allChildren)\n {\n if(type.isAssignableFrom(child.getClass()))\n {\n filteredChildren.add((T)child);\n }\n }\n return filteredChildren;\n }", "List getCategoriesOfType(String typeConstant);", "@java.lang.Override\n public io.grafeas.v1.Recipe getRecipe() {\n return recipe_ == null ? io.grafeas.v1.Recipe.getDefaultInstance() : recipe_;\n }", "List<PSTemplateSummary> findBaseTemplates(String type);", "public List<Roi> getExamples(String classKey, String type);", "private TaskType getType(String type) {\r\n\t\tfor (TaskType tt : taskTypes) {\r\n\t\t\tif (tt.name.equals(type))\r\n\t\t\t\treturn tt;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<CatalogItem> getAllCatalogItemsByType(Long type_id);", "List<Building> findBuildingCoordinatesByType(String type);", "public Future<List<CtxModelObject>> lookup(CtxModelType modelType, String type);", "public List<E> findAll(Class<E> type){\n transaction.begin();\n List<E> types = entityManager.createQuery(\" from \" + type.getName()).getResultList();\n transaction.commit();\n return types;\n }", "@Override\n public List<Doctor> searchBySpecialization(String specialization) throws IOException, ClassNotFoundException {\n doctorList = FileSystem.readFile(file, Doctor.class);\n List<Doctor> searchList = search(doctorList, Doctor::getSpecialization, specialization);\n return searchList;\n }", "@Override\n\tpublic List queryfind(String type, String query)\n\t{\n\t\treturn teataskMapper.queryfind(type, query);\n\t}", "public Recipe getRecipe() {\r\n return recipe;\r\n }", "RecipeObject getRecipe(int recipeID);", "public abstract List<Technique> findTechniqueByName(String technique);", "public List<Recipe> getRecipe()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "public static void findName(String searchedWord, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getName().contains(searchedWord)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "public abstract List<CustomerType> findCustomerTypebyCustomerTypeNumber(String searchString);", "public List<Recipe> getRecipes() {\r\n \t\tCollections.sort(recipeList, Comparators.RECIPE_COMPARATOR);\r\n \t\treturn Collections.unmodifiableList(recipeList);\r\n \t}", "public Recipe getRecipe() {\n return recipe;\n }", "public Iterable<Relationship> getRelationships( RelationshipType... type );", "public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }", "public io.grafeas.v1.RecipeOrBuilder getRecipeOrBuilder() {\n if (recipeBuilder_ != null) {\n return recipeBuilder_.getMessageOrBuilder();\n } else {\n return recipe_ == null ? io.grafeas.v1.Recipe.getDefaultInstance() : recipe_;\n }\n }", "Set<DependencyItem> getIDependOn(Class<?> type);", "@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = \"type\")\n public List<MedicalService> getMedServicesByType(@RequestParam String type){\n return medicalServiceService.findMedServicesByType(type);\n }", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic static List<InteractionFragment> filterSpecifications(Lifeline lifeline, Class type) {\r\n\t\treturn filter(is(type), lifeline.getCoveredBys());\r\n\t}", "List<OrgRelationship> searchStores(String keyword,String path,String type) ;", "public ArrayList<IngredientRecipePOJO> getAllIngredientRecipeByIdRecipe(String idRecipe);", "T find(String collection, Class<T> tclass);", "public static ArrayList<Recipe> getAllRecipes() {\n allRecipes.add(new Recipe(\"Pizza\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients2\"));\n allRecipes.add(new Recipe(\"Pasta\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Sushi Rolls\", 2.0, \"mkp_logo\", \"Japanese\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Crepe\", 3.5, \"mt_logo\", \"French\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Baked Salmon\", 0, \"pb_logo\", \"American\", \"5\", \"1. prep ingredients\\n2.cook food\\n3.eat your food\", \"ingredients1 ingredient 2 ingredient3\"));\n\n return allRecipes;\n }", "@Test\n public void testGetProductsByType() throws Exception {\n System.out.println(\"getProductsByType\");\n \n prs = dao.getProductsByType(p1.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p2.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p3.getType());\n assertTrue(prs.size() == 1);\n assertTrue(prs.contains(p3));\n \n prs = dao.getProductsByName(nonExisten.getType());\n assertTrue(prs.isEmpty());\n }", "@Override\r\n\tpublic List<Resource> getAllResources(String category, String type) {\r\n\t\tList<Resource> getAll = resourceDao.findByCategoryAndType(category, type);\r\n\t\tlogger.info(\"Resources fetched by category: \" + category + \" and type: \" + type);\r\n\t\treturn getAll;\r\n\t}", "public void getByPropertyStudyType(String textToFind){\n\t\tStudyTypeResult studyTypeResult = getJerseyClient().resource(getBaseUrl() + \"/study_type/search/\"+textToFind).get(StudyTypeResult.class);\r\n\t\tfor (StudyTypeDTO c : studyTypeResult.getStudies()) {\r\n\t\t\tSystem.out.println(c.getName());\r\n\t\t\tSystem.out.println(c.getDescription());\r\n\t\t}\r\n\t}", "@Test\n\tpublic void findTypeList() {\n\t}", "private Cursor getWordsByType(int typeId) {\n\t\n\t\tString query = String.format(_select, getDate()) +\t\t\t\t\t\t\t \n\t\t\t\t\t\t\" WHERE \" + DBConstants.WordTable.TYPEID_KEY + \" = \" + typeId +\n\t\t\t\t\t\t_havingDataContraint + \n\t\t\t\t\t\t\" ORDER BY \" + DBConstants.WordTable.WORD_KEY;\n\t\t\t\n\t\treturn _db.rawQuery(query, null);\n }", "public Optional<? extends PropertyHolder> findObject(Cluster cluster, Scope type) {\n\n // UID ?\n UID uid;\n try {\n uid = UID.valueOf(identifier);\n } catch (RuntimeException e) {\n uid = null;\n }\n\n HostPort hostPort;\n try {\n hostPort = HostPort.parse(identifier, 9410);\n } catch (RuntimeException e) {\n hostPort = null;\n }\n\n switch (type) {\n\n case NODE: {\n return findNode(cluster.getNodes(), uid, hostPort);\n }\n\n case STRIPE: {\n return findStripe(cluster.getStripes(), uid, hostPort);\n }\n\n case CLUSTER: {\n // ensure this cluster contains the identifier\n return identifier.equals(cluster.getName())\n || cluster.getUID().equals(uid)\n || findStripe(cluster.getStripes(), uid, hostPort).isPresent() ?\n Optional.of(cluster) :\n Optional.empty();\n }\n\n default: {\n throw new AssertionError(type);\n }\n }\n }", "private Collection<View> selectViewsByType(Collection<View> views, String type) {\n\t\tArrayList<View> result = new ArrayList<View>();\n\t\tfor (View nextView : views) {\n\t\t\tif (type.equals(nextView.getType()) && isOwnView(nextView)) {\n\t\t\t\tresult.add(nextView);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "SyncRecord findObject(String name, int type) throws NotFoundException\r\n\t{\r\n\t\tfor (int i=0; i<syncTable.size(); i++)\r\n\t\t{\r\n\t\t\tSyncRecord myrec = (SyncRecord)syncTable.elementAt(i);\r\n\t\t\tif ((myrec.name).equals(name) && (myrec.type)==type)\r\n\t\t\t\treturn myrec;\r\n\t\t}\r\n\t\tthrow new NotFoundException();\r\n\t}", "public abstract List<LocationDto> search_type_building\n (BuildingDto building, LocationTypeDto type);", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\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} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public List<SensoryType> findAllSensoryTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?dataSourceType WHERE {?dataSourceType rdfs:subClassOf onto:DataSourceType.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllDataSourceTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<SensoryType> list = new ArrayList<SensoryType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tSensoryType sensoryType = new SensoryType();\r\n\t\t\t\tif (jsonObject.has(\"dataSourceType\")) {\r\n\t\t\t\t\tsensoryType.setSensoryTypeName(jsonObject.getJSONObject(\"dataSourceType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(sensoryType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<SpawnType> getSpawnTypes(EntityType entityType);", "public void removeIngredient(String type) {\n\t\tMyStack newBurger = new MyStack();\n\t\twhile (myBurger.size() != 0) {\n\t\t\tif (myBurger.peek().equals(type)) {\n\t\t\t\tmyBurger.pop();\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\tnewBurger.push(ingredient);\n\t\t\t}\n\t\t}\n\t\twhile (newBurger.size() != 0) {\n\t\t\tString ingredient = (String) newBurger.pop();\n\t\t\tmyBurger.push(ingredient);\n\t\t}\n\t\tif (type.equals(\"Beef\") || type.equals(\"Chicken\") || type.equals(\"Veggie\")) {\n\t\t\tpattyCount--;\n\t\t}\n\t}", "public PlanNode findAncestor( Type typeToFind ) {\n return findAncestor(EnumSet.of(typeToFind));\n }", "public List<ModelType> findAllModelTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?modelType WHERE {?modelType rdfs:subClassOf onto:ModelType.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllModelTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ModelType> list = new ArrayList<ModelType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tModelType modelType = new ModelType();\r\n\t\t\t\tif (jsonObject.has(\"modelType\")) {\r\n\t\t\t\t\tmodelType.setModelTypeName(jsonObject.getJSONObject(\"modelType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(modelType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "Set<DependencyItem> getDependsOnMe(Class<?> type);", "Collection<BuildingBlock> findBuildingBlocksByType(BuildingBlockConstant buildingBlockType) throws BusinessException;", "public Cursor loadRecipe(int id){\r\n Cursor c = db.query(recipes.TABLENAME, new String[]{recipes.TITLE, recipes.IMAGE, recipes.INGREDIENTS, recipes.STEPS, recipes.TYPE, recipes.TIME, recipes.PEOPLE, recipes.IDRECIPE}, recipes.IDRECIPE + \"=\" + id, null, null, null, null);\r\n if (c != null) c.moveToFirst();\r\n return c;\r\n }", "private TYPE getType(final String type) {\n String temp = type.replaceAll(\"-\", \"_\");\n TYPE answer = Arrays.stream(\n TYPE.values()\n )\n .filter(value -> value.name().equals(temp))\n .findFirst()\n .orElse(TYPE.unknown);\n return answer;\n }" ]
[ "0.68353176", "0.659895", "0.63401616", "0.63258725", "0.60763454", "0.5929948", "0.5871522", "0.58400583", "0.5790706", "0.5730553", "0.5695968", "0.5652898", "0.5649062", "0.56482726", "0.5644466", "0.56363565", "0.55956435", "0.5590476", "0.5570989", "0.5558956", "0.5558656", "0.5491657", "0.5460947", "0.5455251", "0.54439026", "0.5402877", "0.5387461", "0.538656", "0.5361224", "0.53503084", "0.5349316", "0.5325621", "0.5313779", "0.53066826", "0.52972555", "0.5294609", "0.5289316", "0.52868295", "0.5278915", "0.5276135", "0.5268898", "0.5246555", "0.52410024", "0.5233642", "0.5221409", "0.52133197", "0.5180154", "0.51416487", "0.51338583", "0.5131141", "0.51227695", "0.5112089", "0.5099543", "0.50919604", "0.5086996", "0.50843906", "0.5083583", "0.50830644", "0.5078848", "0.50765264", "0.505721", "0.50570714", "0.5055496", "0.50479996", "0.5046451", "0.50119805", "0.5008685", "0.50067866", "0.49989048", "0.49932832", "0.49926388", "0.49916556", "0.49873745", "0.4984661", "0.49740806", "0.49694782", "0.49679795", "0.49651083", "0.49546894", "0.4947825", "0.49477163", "0.49463853", "0.49423018", "0.4940728", "0.49357045", "0.4930999", "0.4926956", "0.49235964", "0.49181253", "0.49120215", "0.48838013", "0.48707166", "0.4866855", "0.48649445", "0.48648578", "0.48606765", "0.48570046", "0.48505184", "0.4848986", "0.48401442" ]
0.755353
0
find recipes by it's category
SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "@Test\n public void ShouldFindbyCategory() {\n Recipe curry = new Recipe();\n curry.setCategory(\"curry\");\n Recipe curryOne = new Recipe();\n curryOne.setCategory(\"curry\");\n Recipe breakfast = new Recipe();\n breakfast.setCategory(\"breakfast\");\n recipesRepository.save(curry);\n recipesRepository.save(curryOne);\n recipesRepository.save(breakfast);\n\n // When I check for curries\n List<Recipe> curries = recipesRepository.findByCategory(\"curry\");\n\n // Then only curries are returned\n assertThat(curries).containsExactly(curry, curryOne);\n }", "public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = new ArrayList<Recipe>();\n\t\t\t\t\n\t\t\t\t// Temporary containers to hold the search results until they can \n\t\t\t\t// be combined in mRecipes \n\t\t\t\tArrayList<Recipe> mRecipesNAME = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesCATEGORY = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINGREDIENT = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesDESCRIPTION = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINSTRUCTION = new ArrayList<Recipe>();\n\t\t\t\tIterator<Recipe> iterator = RECIPES.iterator(); \n\t\t\t\t\n\t\t\t\t// Search all recipes in Recipe Box for name matches\n\t\t\t\twhile (iterator.hasNext()){\n\n\t\t\t\t\t// Load the next recipe\n\t\t\t\t\tRecipe recipe = iterator.next();\n\t\t\t\t\t\n\t\t\t\t\t// Check for recipe NAME match\n\t\t\t\t\tif (recipe.nameContains(searchTerm)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesNAME.add(recipe);\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe CATEGORY match\n\t\t\t\t\telse if (recipe.categoriesContain(searchTerm)) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesCATEGORY.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INGREDIENT match\n\t\t\t\t\telse if (recipe.ingredientsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINGREDIENT.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe DESCRIPTION match\n\t\t\t\t\telse if (recipe.descriptionContains(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesDESCRIPTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INSTRUCTION match\n\t\t\t\t\telse if (recipe.instructionsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINSTRUCTION.add(recipe);\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\t\n\t\t\t\t// Create an ordered list of recipes from most important to least important\n\t\t\t\tmRecipes.addAll(mRecipesNAME);\n\t\t\t\tmRecipes.addAll(mRecipesCATEGORY);\n\t\t\t\tmRecipes.addAll(mRecipesINGREDIENT);\n\t\t\t\tmRecipes.addAll(mRecipesDESCRIPTION);\n\t\t\t\tmRecipes.addAll(mRecipesINSTRUCTION);\n\t\t\t\t\n\t\t\t\t// Return ordered list of recipes\n\t\t\t\tLog.d(TAG, \"Finish function searchNames\");\n\t\t\t\treturn mRecipes;\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic List<Literature> searchCategory(String category) {\n\t\treturn null;\n\t}", "public List<Book> getBooksByCategory(String category) {\n List<Book> books = bookRepository.findAll();\n return books.stream()\n .filter(book -> Arrays.stream(book.getCategories())\n .anyMatch(bookCategory -> bookCategory.equals(category)))\n .collect(Collectors.toList());\n \n }", "@Override\r\n\tpublic Set<Product> getSet(String category) throws ItemNotFoundException{\r\n\t\taddItems();\r\n\t\tSet<Product> targetSet=new HashSet<>();\r\n\r\n\t\tif((category.toLowerCase()).equals(\"food items\")){ //creating a set of food items\r\n\t\t\tfor(Product p:productSet) {\r\n\t\t\t\tif(p instanceof FoodItems) {\r\n\t\t\t\t\ttargetSet.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\telse if((category.toLowerCase()).equals(\"apparels\")) {//creating a set of apparels\r\n\t\t\tfor(Product p:productSet) {\r\n\t\t\t\tif(p instanceof Apparels) {\r\n\t\t\t\t\ttargetSet.add(p);\r\n\t\t\t\t\t//System.out.print(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if((category.toLowerCase()).equals(\"electronics\")) {//creating a set of electronics\r\n\t\t\tfor(Product p:productSet) {\r\n\t\t\t\tif(p instanceof Electronics) {\r\n\t\t\t\t\ttargetSet.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\tif (targetSet!=null) //thowing exception\r\n\t\t\treturn targetSet;\r\n\t\telse \r\n\t\t\tthrow new ItemNotFoundException(\"item not found\");\r\n\t\t\r\n\t}", "SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;", "public @NotNull Set<Item> findItems(@NotNull final Category category) throws BazaarException;", "public RecipeCategory getCategoryForCreativeTab(CreativeTabs tab)\n {\n // TODO Auto-generated method stub\n return null;\n }", "public Iterator findTasksOfCategory(String requestedCategory) {\n ArrayList<TodoItem> categoryList = new ArrayList<TodoItem>();\n // TODO: Add source code that will find and return all tasks for the requestedCategory\n Iterator iterator = todoItems.iterator();\n while(iterator.hasNext()) {\n TodoItem todoItem = (TodoItem)iterator.next();\n if(todoItem.getCategory().equals(requestedCategory)) {\n categoryList.add(todoItem);\n }\n }\n\n return categoryList.iterator();\n }", "public ArrayList<Item> getCardsByCategory(String category)\n {\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor res = db.rawQuery( \"SELECT * FROM \" + CARDS_TABLE_NAME +\n \" WHERE \" + CARDS_COLUMN_CATEGORY + \" LIKE '\" + category + \"' \" +\n \"ORDER BY \" + CARDS_COLUMN_NAME + \" COLLATE NOCASE\", null );\n res.moveToFirst();\n\n while(res.isAfterLast() == false){\n card = new Item();\n card.setItemId(res.getInt(res.getColumnIndex(CARDS_COLUMN_ID)));\n card.setItemName(res.getString(res.getColumnIndex(CARDS_COLUMN_NAME)));\n card.setItemCategory(res.getString(res.getColumnIndex(CARDS_COLUMN_CATEGORY)));\n card.setItemFormat(res.getString(res.getColumnIndex(CARDS_COLUMN_FORMAT)));\n card.setItemNumber(res.getString(res.getColumnIndex(CARDS_COLUMN_NUMBER)));\n items.add(card);\n res.moveToNext();\n }\n return items;\n }", "@Override\n\tpublic List<AnimalCategory> findCategory() {\n\t\tList<AnimalCategory> list = animaldao.findCategory();\n\t\treturn list;\n\t}", "public List<Category> findAll();", "List<Product> getProductsByCategory(String category);", "List<Category> findAll();", "@Override\n public List<Classroom> findByCategory(Category category) {\n List<Classroom> classrooms = null;\n Query query = entityManager.createQuery(\"Select c from Classroom c where c.categoryId= :category\");\n query.setParameter(\"category\",category);\n try {\n classrooms = query.getResultList();\n } catch (Exception e){\n e.printStackTrace();\n }\n return classrooms;\n }", "ArrayList<RecipeObject> getRecipes(String recipeName);", "@Override\n\tpublic List<Category> findcategory() {\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pst=null;\n\t\tResultSet rs=null;\n\t\t\n\t\tList<Category> list=new ArrayList<Category>();\n\t\ttry {\n\t\t\tconn=DBUtils.getConnection();\n\t\t\tpst=conn.prepareStatement(\"select id,parent_id,name,status,sort_order,create_time,update_time from category\");\n\t\t\t\n\t\t\trs=pst.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tCategory category=new Category(rs.getInt(\"id\"),rs.getInt(\"parent_id\"),rs.getString(\"name\"),rs.getInt(\"status\"),rs.getInt(\"sort_order\"),rs.getDate(\"create_time\"),rs.getDate(\"update_time\"));\n\t\t\t\tlist.add(category);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tDBUtils.Close(conn, pst, rs);\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\treturn list;\n\t\t\n\t\t\n\n\t}", "List<Recipe> getAllRecipes();", "List<Product> findByCategory(Category category);", "List<Categorie> findAll();", "Category findByName(String name);", "public Cursor getCatItems(String cat)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"Select * from products where category = '\"+cat+\"'\",null);\n return res;\n }", "List<Post> findAllBycategory(Category category);", "List<Category> selectByExample(CategoryExample example);", "Category getCategoryByName(String categoryName);", "List getCategoriesOfType(String typeConstant);", "@Test\n public void getAllRecipeCategories_ReturnsList(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returned);\n assertNotEquals(\"getAllRecipeCategories - Non-empty List Returned\", 0, allCategories.size());\n }", "public List<Cvcategory> findAllCvcategories();", "public static List<Category> findAll() {\n List<Category> categories = categoryFinder.findList();\n if(categories.isEmpty()){\n categories = new ArrayList<>();\n }\n return categories;\n }", "List<RecipeObject> searchRecipes(String query, String number, String offset, String diet, String intolerances, String type, String cuisine, String ingredients) throws EntityException;", "public List<Question> getCategory(String category) {\n List<Question> questions = loadQuestions(\"quiz/\" + category + \".txt\");\n return questions;\n }", "Recipe getRecipe(CharSequence query);", "@Override\n public List<ItemEntity> getItemsByCategoryAndRestaurant(String restId, String categId) {\n\n\n\n RestaurantEntity restaurantEntity = restaurantDao.restaurantByUUID(restId);\n CategoryEntity categoryEntity = categoryDao.getCategoryById(categId);\n\n\n\n List<ItemEntity> restaurantItemEntityList = new ArrayList<ItemEntity>();\n\n\n //Try to do this in O(n)\n for (ItemEntity restaurantItemEntity : restaurantEntity.getItems()) {\n for (ItemEntity categoryItemEntity : categoryEntity.getItems()) {\n if (restaurantItemEntity.getUuid().equals(categoryItemEntity.getUuid())) {\n restaurantItemEntityList.add(restaurantItemEntity);\n }\n }\n }\n\n restaurantItemEntityList.sort(Comparator.comparing(ItemEntity::getItemName));\n\n return restaurantItemEntityList;\n }", "@Override\n\tpublic Iterable<Category> findAllCategory() {\n\t\treturn categoryRepository.findAll();\n\t}", "public List<String> getConceptByCategory(String category)\n\t{\n\t\tList<String> concept = dao.getConceptByCategory(category);\n\t\treturn concept;\n\t}", "@Test\n public void findDishesByCategoryName3() {\n\n String categoryName = \"Vegan\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }", "SortedSet<Recipe> findAllRecipes() throws ServiceFailureException;", "default List<String> getCategory(String category) {\n return new ArrayList<>(getCategories().get(category.toLowerCase()).values());\n }", "@Test\n public void findDishesByCategoryName2() {\n\n String categoryName = \"Starter\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }", "@Test\n public void findDishesByCategoryName4() {\n\n String categoryName = \"Rice\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }", "public List<Category> queryExistingCategory(){\n\t\tArrayList<Category> cs = new ArrayList<Category>(); \n\t\tCursor c = queryTheCursorCategory(); \n\t\twhile(c.moveToNext()){\n\t\t\tCategory category = new Category();\n\t\t\tcategory._id = c.getInt(c.getColumnIndex(\"_id\"));\n\t\t\tcategory.title = c.getString(c.getColumnIndex(DBEntryContract.CategoryEntry.COLUMN_NAME_TITLE));\n\t\t\tcategory.numberOfEntries = this.queryLocationEntryNumberByCategory(category._id);\n\t\t\tcs.add(category);\n\t\t}\n\t\t// close the cursor\n\t\tc.close();\n\t\treturn cs;\n\t\t\n\t}", "public List<Recipe> getRecipeByName(String name)\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n //For exact name query do: Cursor cursor = qb.query(db,sqlSelect, \"name = ?\",new String[]{name}, null, null, null);\n //LIKE implementation is done below\n Cursor cursor = qb.query(db,sqlSelect, \"name LIKE ?\",new String[]{\"%\"+name+\"%\"}, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "@Test\n public void findDishesByCategoryName5() {\n\n String categoryName = \"Curry\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }", "Category getByName(String name);", "public static void findIngredient(String ingredient, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getIngredients().contains(ingredient)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "@Test\n\tpublic void testGetAllResourcesByCategory() throws ResourceNotFoundException\n\t{\n\t\tLocalDate resDate = null;\n\t\t\n\t\tCategory cat = new Category();\n\t\tcat.setCatId(10);\n\t\tcat.setCatName(\"Clothing\");\n\t\t\n\t\tResource res = new Resource();\n\t\tres.setResId(10);\n\t\tres.setResDate(resDate);\n\t\tres.setCategory(cat);\n\t\tres.setResDescription(\"100% Cotton\");\n\t\tres.setResTitle(\"Shirt\");\n\t\tres.setResPrice(1000);\n\t\t\n\t\tList<Resource> resources = new ArrayList<>();\n\t\tresources.add(res);\n\t\tMockito.when(resourceRepository.findByCategory(10)).thenReturn(resources);\n\t\tList<Resource> actualResource = resourceService.getAllResourcesByCategory(10);\n\t\tassertEquals(10,actualResource.get(0).getCategory().getCatId());\n\t\t\n\t}", "SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;", "public static void findName(String searchedWord, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getName().contains(searchedWord)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "ArrayList<RecipeObject> getRecipes();", "private List<Category> extractTargets() {\n List<String> names = getNames(\"category\");\n CategorySelectAsyncTask task = new CategorySelectAsyncTask();\n CategoryMapper mapper = new CategoryMapper();\n task.setNames(names);\n List<Category> list = new ArrayList<>();\n try {\n list.addAll(mapper.to(task.execute().get()));\n } catch (ExecutionException | InterruptedException e) {\n Log.e(TAG, \"extractTargets: \" + e.getMessage(), e);\n }\n return list;\n }", "public List<Recipe> findAllRecipe(){\n\t\treturn sessionFactory.openSession().createQuery(\"from Recipe\").list();\n\t\t\n\t}", "public static ArrayList<Job> getJobByCategory(JobCategory category)\n {\n conn = DatabaseConnectionPostgre.connection();\n try {\n ArrayList<Job> returnValue = new ArrayList<>();\n\n stmt = conn.createStatement();\n String sql = String.format(\n \"SELECT * FROM job NATURAL JOIN recruiter NATURAL JOIN location WHERE category = '%s';\",\n category.name()\n );\n ResultSet rs = stmt.executeQuery(sql);\n while(rs.next()) {\n returnValue.add(new Job(\n rs.getInt(\"job_id\"),\n rs.getString(\"job_name\"),\n new Recruiter(\n rs.getInt(\"recruiter_id\"),\n rs.getString(\"name\"),\n rs.getString(\"email\"),\n rs.getString(\"phone_number\"),\n new Location(\n rs.getString(\"province\"),\n rs.getString(\"city\"),\n rs.getString(\"description\")\n )\n ),\n rs.getInt(\"fee\"),\n JobCategory.valueOf(rs.getString(\"category\"))\n ));\n }\n rs.close();\n stmt.close();\n conn.close();\n return returnValue;\n } catch (Exception e) {\n System.err.println(e.getClass().getName()+\": \"+ e.getMessage());\n return null;\n }\n }", "public RecipeCategory getCategoryForOutput(ItemStack recipeOutput)\n {\n // TODO Auto-generated method stub\n return null;\n }", "String category();", "public List<Dictionary> getDictionaryEntrysByCategory(String filter, String categoryFilter)\n throws LIMSRuntimeException {\n try {\n String sql = \"\";\n\n if (filter != null) {\n // bugzilla 1847: use dictEntryDisplayValue\n // bugzilla 2440 sql is incorrect - duplicate entries displaying\n // in dropdown\n if (!StringUtil.isNullorNill(categoryFilter)) {\n sql = \"from Dictionary d \"\n + \"where (d.localAbbreviation is not null and upper(d.localAbbreviation) || \"\n + enquote(IActionConstants.LOCAL_CODE_DICT_ENTRY_SEPARATOR_STRING)\n + \" || upper(d.dictEntry) like upper(:param1) and d.isActive= \"\n + enquote(YES)\n + \" and d.dictionaryCategory.categoryName = :param2)\"\n + \" OR (d.localAbbreviation is null and upper(d.dictEntry) like upper(:param1) and d.isActive= \"\n + enquote(YES) + \" and d.dictionaryCategory.categoryName = :param2)\";\n } else {\n sql = \"from Dictionary d \"\n + \"where (d.localAbbreviation is not null and upper(d.localAbbreviation) || \"\n + enquote(IActionConstants.LOCAL_CODE_DICT_ENTRY_SEPARATOR_STRING)\n + \" || upper(d.dictEntry) like upper(:param1) and d.isActive= \"\n + enquote(YES)\n + \")\"\n + \" OR (d.localAbbreviation is null and upper(d.dictEntry) like upper(:param1) and d.isActive= \"\n + enquote(YES) + \")\";\n }\n } else {\n if (!StringUtil.isNullorNill(categoryFilter)) {\n sql = \"from Dictionary d where d.dictEntry like :param1 and d.isActive= \" + enquote(YES)\n + \" and d.dictionaryCategory.categoryName = :param2\";\n } else {\n sql = \"from Dictionary d where d.dictEntry like :param1 and d.isActive= \" + enquote(YES);\n }\n }\n\n sql += \" order by d.dictEntry asc\";\n Query query = HibernateUtil.getSession().createQuery(sql);\n query.setParameter(\"param1\", filter + \"%\");\n if (!StringUtil.isNullorNill(categoryFilter)) {\n query.setParameter(\"param2\", categoryFilter);\n }\n\n @SuppressWarnings(\"unchecked\")\n List<Dictionary> list = query.list();\n HibernateUtil.getSession().flush();\n HibernateUtil.getSession().clear();\n\n return list;\n\n } catch (Exception e) {\n // bugzilla 2154\n LogEvent.logError(\"DictionaryDAOImpl\", \"getDictionaryEntrys()\", e.toString());\n throw new LIMSRuntimeException(\n \"Error in Dictionary getDictionaryEntrys(String filter, String categoryFilter)\", e);\n }\n }", "@Test\n public void findDishesByCategoryName7() {\n\n String categoryName = \"Vegetarian\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }", "public List<Concept> populateConceptSection(String category){\n\t\tConceptService cs = Context.getConceptService();\n\t\tDeIdentifiedExportService d = Context.getService(DeIdentifiedExportService.class);\n\t\tList<String> list = d.getConceptByCategory(category);\n\t\tInteger temp;\n\t\tList<Concept> conceptList = new Vector<Concept>();\n\t\tfor(int i=0; i<list.size();i++){\n\t\t\tfor (String retval: list.get(i).split(\",\")){\n\t\t\t\ttemp = Integer.parseInt(retval);\n\t\t\t\tconceptList.add(cs.getConcept(temp));\n\t\t\t}\n\t\t}\n\t\tSet set = new HashSet(conceptList);\n\t\tList list1 = new ArrayList(set);\n\t\treturn list1;\n\t}", "@Test\n public void findDishesByCategoryName1() {\n\n String categoryName = \"Main Dishes\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }", "public static List<FoodItem> getFoodItemsBasedOnCategory(SQLiteDatabase db, int catId) {\n Cursor cursor = db.rawQuery(\"SELECT * FROM fooditem WHERE catId=\" + catId + \"\", null);\n return getFoodItemsFromCursor(cursor);\n }", "AbsractCategory searchByID(int identificaitonNumber) throws PersistenceException;", "@RequestMapping(value = \"category\", method = RequestMethod.GET)\n public String category(Model model, @RequestParam int id){\n Category cat = categoryDao.findOne(id);\n List<Recipe> recipes = cat.getRecipes();\n model.addAttribute(\"recipes\", recipes);\n model.addAttribute(\"title\", cat.getCategoryName() + \" recipes\");\n return \"recipe/list-under\";\n }", "public static ResultSet getItemByCategory(String cat) {\n try {\n PreparedStatement st = conn.prepareStatement(\"SELECT itemID, ownerID, Name, status, description, category, image1,image2,image3,image4 FROM iteminformation WHERE category=?\");\n st.setString(1, cat);\n ResultSet rs = st.executeQuery();\n\n return rs;\n\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "public Category findByCategoryName(String CategoryName) throws InstanceNotFoundException;", "@Test\n public void findDishesByCategoryName6() {\n\n String categoryName = \"Drinks\";\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n\n criteria.setCategories(categories);\n criteria.setSearchBy(\"\");\n PageRequest pageable = PageRequest.of(0, 8, Sort.by(Direction.DESC, \"price\"));\n criteria.setPageable(pageable);\n\n Page<DishCto> result = this.dishmanagement.findDishesByCategory(criteria, categoryName);\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n\n }", "@Nullable\n protected RECIPE findFirstRecipe(@Nullable Collection<RECIPE> recipes, Predicate<RECIPE> matchCriteria) {\n return recipes == null ? null : recipes.stream().filter(matchCriteria).findFirst().orElse(null);\n }", "Category selectCategory(String name);", "@Override\n\tpublic LinkedList<Item> findAll(List<CatEnum> categories) {\n\t\tLinkedList<Item> data = new LinkedList<Item>();\n\t\ttry{\n\t\t\t// Create array encoding the categories\n\t\t\tint nb = categories.size();\n\t\t\tObject[] listInt = new Object[nb];\n\t\t\tint i = 0;\n\t\t\tfor (CatEnum category:categories){\n\t\t\t\tlistInt[i] = category.getValue();\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tArray catArray = conn.createArrayOf(\"INTEGER\",listInt);\n\t\t\t\n\t\t\tString query=\"SELECT items.id, title, start_date, end_date, type, category FROM items, item_type_relations \"\n\t\t\t\t\t+ \"WHERE items.type = item_type_relations.id AND category = ANY(?) ORDER BY start_date\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t\tstate.setArray(1, catArray);\n\t\t\t\n\t\t\t// Run query\n\t\t\tResultSet res = state.executeQuery();\n\t\t\t\n\t\t\t// All you need to recover the EventType\n\t\t\tGeneralController gc = GeneralController.getInstance();\n\t\t\tDao<Entity> daoItemType = (Dao<Entity>) gc.getDao(EntityEnum.ITEMTYPE.getValue());\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\tItemType itemType = (ItemType) daoItemType.find(res.getInt(\"type\"));\n\t\t\t\t\n\t\t\t\t// Create a suitable Item\n\t\t\t\tItem item = new Item(res.getInt(\"id\"),\n\t\t\t\t\t\t\t\t\t\t res.getString(\"title\"),\n\t\t\t\t\t\t\t\t\t\t itemType,\n\t\t\t\t\t\t\t\t\t\t res.getDate(\"start_date\"),\n\t\t\t\t\t\t\t\t\t\t res.getDate(\"end_date\")\n\t\t\t\t\t\t\t\t\t\t );\n\t\t\t\tdata.add(item);\n\t\t\t}\n\t\t\tSystem.out.println(\"PostgreSQLItemDao.findAll(): found \"+data.size()+\" lines.\");\n\t\t\tres.close();\n\t\t\tstate.close();\n\t\t\treturn data;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.findAll -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn null;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic List<Category> findAllCategory() {\n\t\treturn categoryRepository.findAllCategory();\n\t}", "public String searchCategoriesByCriteria()\n {\n logger.info(\"**** In searchCategoriesByCriteria in Controller ****\");\n if (category != null && (StringUtils.isNotEmpty(category.getCategoryName()) || StringUtils.isNotEmpty(category.getCategoryDescription())))\n {\n categoryList = categoryService.searchCategoriesByCriteria(category);\n }\n else\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.NO_SEARCH_CRITERIA, Constants.NO_SEARCH_CRITERIA);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n return Constants.SEARCH_CATEGORY_VIEW;\n }", "Category getCategoryById(int id);", "Category getCategoryById(int categoryId);", "Category findCategoryById(Long id);", "DvdCategory searchCategoryById(Integer id) throws DvdStoreException;", "public List<ProductCatagory> getAllCategory() throws BusinessException;", "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}", "public List<ItemCategory> getByCat(int id) {\n return repository.findByCategoryId(id);\n }", "List<Map<String, Object>> searchIngredient(String name);", "private static void seachCats(String maybeCat) {\n\t\tSystem.out.println(\"List of \" + maybeCat + \" movies\");\n\t\tSystem.out.println(\"===============================\");\n\t\tint i;\n\t\tint x = 0;\n\t\tfor (i = 0; i < movList.size(); i++) {\n\t\t\tif (movList.get(i).isCat(maybeCat)) {\n\t\t\t\tSystem.out.println(movList.get(i));\n\t\t\t\tx++;\n\t\t\t}\n\t\t}\n\t\tif (x == 0) {\n\t\t\tSystem.out.println(\"Sorry, there are no movies in that category.\");\n\t\t}\n\t}", "public static List<Book> searchBookByCategory(String category) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByCategory\").setString(\"category\", category);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }", "public static List<Question> getAllCategoryQuestions(Category cat) {\n List<Question> questions = getQuestions(); //get all the questions\n List<Question> categoryQuestions = new ArrayList<Question>(); //make new list of questions\n for (Question q : questions) {\n if (q.getCategory().getId() == cat.getId()) {\n categoryQuestions.add(q);\n }\n }\n return categoryQuestions;\n }", "public Recipe getRecipeAt(Long id) {\r\n \t\tfor (Recipe recipe : recipeList)\r\n \t\t\tif (recipe.getId() == id)\r\n \t\t\t\treturn recipe;\r\n \t\treturn null;\r\n \t}", "@Test\n public void getAllRecipeCategories_RecipeInfo(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returned);\n RecipeCategory retrieved = allCategories.get(allCategories.size()-1);\n //Retrieved should now contain all the same information as testRecipe\n assertEquals(\"getAllRecipeCategories - Correct Recipe ID\", returned, retrieved.getRecipeID());\n assertEquals(\"getAllRecipeCategories - Correct Category ID\", categoryID, retrieved.getCategoryID());\n }", "public ArrayList<GameItemSingle> getGamesByCategory (String category){\n\n ArrayList<GameItemSingle> data=new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \"+DATABASE_TABLE_SINGLE_PAGE + \" WHERE _type LIKE \" + \"'%\" + category + \"%'\" + \" ;\",null);\n StringBuffer stringBuffer = new StringBuffer();\n GameItemSingle singlePageItem = null;\n while (cursor.moveToNext()) {\n\n singlePageItem= new GameItemSingle();\n String id = cursor.getString(cursor.getColumnIndexOrThrow(\"id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title_rendered\"));\n String content = cursor.getString(cursor.getColumnIndexOrThrow(\"content_rendered\"));\n String date = cursor.getString(cursor.getColumnIndexOrThrow(\"date\"));\n String app_icon= cursor.getString(cursor.getColumnIndexOrThrow(\"app_icon_image\"));\n singlePageItem.setTitle_rendered(title);\n singlePageItem.setContent_rendered(content);\n singlePageItem.set_date(date);\n singlePageItem.setApp_icon(app_icon);\n singlePageItem.set_id(id);\n\n stringBuffer.append(singlePageItem);\n data.add(singlePageItem);\n }\n\n\n return data;\n }", "ArrayList<News> findByCategory(String category) throws DAOException, ConnectionPoolDataSourceException;", "Category selectCategory(long id);", "public static List<RecipeItemSelector> getRequireItemsFromRecipe(IRecipe recipe){\n\t\tif(recipe instanceof ShapelessRecipes){\n\t\t\tList<ItemStack> isList = ((ShapelessRecipes)recipe).recipeItems;\n\t\t\treturn isList.stream().map(input -> RecipeItemSelector.of(input, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapedRecipes){\n\t\t\tItemStack[] isarray = ((ShapedRecipes)recipe).recipeItems;\n\n\t\t\treturn Lists.<ItemStack>newArrayList(isarray).stream().map( is ->RecipeItemSelector.of(is, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapelessOreRecipe){\n\n\n\n\t\t\tList<RecipeItemSelector> list1 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof ItemStack)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of((ItemStack)obj, null)).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> list2 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof String)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of(null, new OreDict((String)obj))).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\trt.addAll(list1);\n\t\t\trt.addAll(list2);\n\t\t\treturn rt;\n\n\t\t}\n\t\tif(recipe instanceof ShapedOreRecipe){\n\t\t\tObject[] isarray = ((ShapedOreRecipe)recipe).getInput();\n\t\t\tList<Object> objList = Lists.newArrayList(isarray);\n\t\t\tobjList.stream().flatMap(obj ->{\n\t\t\t\t//\t\t\t\t\tUnsagaMod.logger.trace(\"recipe\", input.getClass());\n\t\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\t\tif(obj instanceof List){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"array\");\n\t\t\t\t\trt.addAll(convertListTypeObject(obj));\n\t\t\t\t}\n\t\t\t\tif(obj instanceof ItemStack){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"itemstack\");\n\t\t\t\t\tList<RecipeItemSelector> list = Lists.newArrayList(RecipeItemSelector.of((ItemStack)obj, null));\n\t\t\t\t\trt.addAll(list);\n\t\t\t\t}\n\n\t\t\t\t//\t\t\t\t\tif(objs!=null){\n\t\t\t\t//\t\t\t\t\t\tObject[] objarray = (Object[]) objs;\n\t\t\t\t//\t\t\t\t\t\treturn ListHelper.stream(objarray).map(new Function<Object,Tuple<ItemStack,OreDict>>(){\n\t\t\t\t//\n\t\t\t\t//\t\t\t\t\t\t\t@Override\n\t\t\t\t//\t\t\t\t\t\t\tpublic Tuple<ItemStack, OreDict> apply(Object input) {\n\t\t\t\t//\t\t\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", input);\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof ItemStack){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of((ItemStack)input,null);\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof String){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of(null, new OreDict((String) input));\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t//\t\t\t\t\t\t\t}}\n\t\t\t\t//\t\t\t\t\t\t).getList();\n\t\t\t\t//\t\t\t\t\t}\n\n\t\t\t\treturn rt.stream();\n\t\t\t});\n\t\t}\n\t\tHSLib.logger.trace(\"recipeutil\", \"どのレシピにも合致しない?\");\n\t\treturn Lists.newArrayList();\n\t}", "@Override\n\tpublic ResponseEntity<RecipeObject> getRecipeByName(@NotNull @Valid String recipeName,\n\t\t\t@Valid Optional<String> categoryName) {\n\t\treturn RecipeApi.super.getRecipeByName(recipeName, categoryName);\n\t}", "String getCategory();", "String getCategory();", "public ArrayList<IngredientRecipePOJO> getAllIngredientRecipeByIdRecipe(String idRecipe);", "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}", "List<ConfigCategory> getCategoryOfTypeAndDisplayName(String typeConstant, String catDisplayName);", "public List<Recipe> getRecipe()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "List<Category> selectCategoryList();", "List<Category> findAll(Integer page,Integer pageSize)throws Exception;", "List<String> getRecipeByIngredients(CharSequence query);", "public List<String> getCategoryList(String cat) {\n ArrayList<String> ls = new ArrayList<String>();\n String[] keys = sortedStringKeys();\n\n for (String s : keys) {\n if (s.startsWith(cat)) { ls.add(getProperty(s)); }\n }\n return ls;\n }", "@Query(value = INGREDIENT_SELECT + DESCRIPTION_SEARCH + EXT_DESCRIPTION + INCLUDE_CATEGORY + NOT_DELETES)\n List<Ingredient> findByIngredientDescriptionContainingAndCategoryCode(@Param(\"description\") String description,@Param(\"categoryCode\") Long categoryCode, Pageable pageRequest);", "public List<Categorie> getAllCategories();" ]
[ "0.7316842", "0.7041155", "0.6473819", "0.63311696", "0.6315807", "0.6077851", "0.60637033", "0.60044974", "0.5991225", "0.5976674", "0.5948526", "0.5941825", "0.59177387", "0.59173834", "0.58952355", "0.589177", "0.5869259", "0.5830765", "0.57924163", "0.57912993", "0.5788674", "0.5785608", "0.5735", "0.5727482", "0.56646276", "0.5654136", "0.56192565", "0.5618835", "0.5615616", "0.5601503", "0.55997443", "0.5591973", "0.55912435", "0.554973", "0.552848", "0.55012214", "0.55006254", "0.5493749", "0.5480144", "0.5468683", "0.5459253", "0.543842", "0.5434582", "0.5433918", "0.54332167", "0.5432762", "0.5427554", "0.54267246", "0.5421214", "0.5412094", "0.5407429", "0.5400546", "0.53946304", "0.538807", "0.53749037", "0.5368182", "0.53582543", "0.53570503", "0.5355501", "0.5349654", "0.5349219", "0.53435045", "0.5342889", "0.5335727", "0.5328363", "0.53241396", "0.53190595", "0.5314571", "0.52923334", "0.5285151", "0.5270458", "0.5270232", "0.5266277", "0.52605367", "0.5255749", "0.52510667", "0.5250128", "0.52478904", "0.52376467", "0.522519", "0.5218866", "0.5217683", "0.52147126", "0.52125156", "0.5199393", "0.5198166", "0.51958203", "0.5195685", "0.51933897", "0.51933897", "0.5188625", "0.5186355", "0.5179324", "0.51785076", "0.51760423", "0.5168386", "0.5166546", "0.5166545", "0.5165207", "0.5160835" ]
0.7588881
0
find recipes by it's cooking time
SortedSet<Recipe> findRecipesByCookingTime(int fromTime, int toTime) throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void findCookingTime(int maxCookTime, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getTime() <= maxCookTime) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;", "SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;", "public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = new ArrayList<Recipe>();\n\t\t\t\t\n\t\t\t\t// Temporary containers to hold the search results until they can \n\t\t\t\t// be combined in mRecipes \n\t\t\t\tArrayList<Recipe> mRecipesNAME = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesCATEGORY = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINGREDIENT = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesDESCRIPTION = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINSTRUCTION = new ArrayList<Recipe>();\n\t\t\t\tIterator<Recipe> iterator = RECIPES.iterator(); \n\t\t\t\t\n\t\t\t\t// Search all recipes in Recipe Box for name matches\n\t\t\t\twhile (iterator.hasNext()){\n\n\t\t\t\t\t// Load the next recipe\n\t\t\t\t\tRecipe recipe = iterator.next();\n\t\t\t\t\t\n\t\t\t\t\t// Check for recipe NAME match\n\t\t\t\t\tif (recipe.nameContains(searchTerm)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesNAME.add(recipe);\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe CATEGORY match\n\t\t\t\t\telse if (recipe.categoriesContain(searchTerm)) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesCATEGORY.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INGREDIENT match\n\t\t\t\t\telse if (recipe.ingredientsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINGREDIENT.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe DESCRIPTION match\n\t\t\t\t\telse if (recipe.descriptionContains(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesDESCRIPTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INSTRUCTION match\n\t\t\t\t\telse if (recipe.instructionsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINSTRUCTION.add(recipe);\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\t\n\t\t\t\t// Create an ordered list of recipes from most important to least important\n\t\t\t\tmRecipes.addAll(mRecipesNAME);\n\t\t\t\tmRecipes.addAll(mRecipesCATEGORY);\n\t\t\t\tmRecipes.addAll(mRecipesINGREDIENT);\n\t\t\t\tmRecipes.addAll(mRecipesDESCRIPTION);\n\t\t\t\tmRecipes.addAll(mRecipesINSTRUCTION);\n\t\t\t\t\n\t\t\t\t// Return ordered list of recipes\n\t\t\t\tLog.d(TAG, \"Finish function searchNames\");\n\t\t\t\treturn mRecipes;\n\t\t\t\t\n\t\t\t}", "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;", "public Recipe findRecipeDetails(String selectedRecipeName){\r\n for (int i = 0; i < listOfRecipes.size(); i++) {\r\n if (listOfRecipes.get(i).getRecipeName().equals(selectedRecipeName)) {\r\n Recipe recipeToAdjust = listOfRecipes.get(i);\r\n printAdjustedRecipeDetails(recipeToAdjust);\r\n }\r\n }\r\n return recipeToAdjust;\r\n }", "public List<Meal> findMealsTomorrow()\n\t{\n\t\tDate date = DateUtil.removeTime(new DateTime().plusDays(1).toDate());\n\t\treturn mealRepository.findByDateOfServing(date);\n\t}", "SortedSet<Recipe> findAllRecipes() throws ServiceFailureException;", "ArrayList<RecipeObject> getRecipes(String recipeName);", "List<RecipeObject> searchRecipes(String query, String number, String offset, String diet, String intolerances, String type, String cuisine, String ingredients) throws EntityException;", "public Set < NamespacedKey > getDiscoveredRecipes ( ) {\n\t\treturn extract ( handle -> handle.getDiscoveredRecipes ( ) );\n\t}", "public interface RecipeManager {\n \n /** \n * creates a recipe in DB\n * @param recipe recipe to be created\n */\n void createRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * deletes a recipe from DB\n * @param recipe recipe to be deleted\n */\n void deleteRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * edit a recipe in DB\n * @param recipe recipe to be edited \n */\n void updateRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * find recipe by ID\n * @param id id of the searched recipe\n * @return recipe with entered ID\n */ \n Recipe findRecipeById(Long id) throws ServiceFailureException;\n \n /**\n * find recipes, that have this substring in their names\n * @param name name of the searched recipes\n * @return set of recipes with entered substring\n */\n SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;\n \n /**\n * find recipes by it's type\n * @param type type of the searched recipes\n * @return set of recipes with entered type\n */\n SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;\n \n /**\n * find recipes by it's category\n * @param category category of the searched recipes\n * @return set of recipes with entered category\n */\n SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;\n \n /**\n * find recipes by it's cooking time\n * @param fromTime lower border of the searched cooking time\n * @param toTime upper border of the searched cooking time\n * @return set of recipes with cooking time between lower and upper borders\n */\n SortedSet<Recipe> findRecipesByCookingTime(int fromTime, int toTime) throws ServiceFailureException;\n SortedSet<Recipe> findRecipesUptoCookingTime(int toTime) throws ServiceFailureException;\n SortedSet<Recipe> findRecipesFromCookingTime(int fromTime) throws ServiceFailureException;\n \n /**\n * find all recipes in the recipe book\n * @return all recipes in the system\n */\n SortedSet<Recipe> findAllRecipes() throws ServiceFailureException;\n}", "private double lookingforFoodPhase(double time) {\n\n\t\t// Determine preferred kitchen to get meal.\n\t\tif (kitchen == null) {\n\t\t\tkitchen = getKitchenWithMeal(person);\n\n\t\t\tif (kitchen == null) {\n\t\t\t\t// If no kitchen found, look for preserved food.\n//\t\t\t\tlogger.info(person + \" couldn't find a kitchen with cooked meals and will look for preserved food.\");\n\t\t\t\tsetPhase(EAT_PRESERVED_FOOD);\n\t\t\t}\n\t\t}\n\t\n\t\tif (kitchen != null) {\n\t\t\t// Walk to kitchen.\n\t\t\twalkToActivitySpotInBuilding(kitchen.getBuilding(), FunctionType.DINING, true);\n\t\t\t\n\t\t\t// Pick up a meal at kitchen if one is available.\n\t\t\tcookedMeal = kitchen.chooseAMeal(person);\n\t\t\tif (cookedMeal != null) {\n\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.cooked.pickingUp.detail\", cookedMeal.getName())); //$NON-NLS-1$\n\t\t\t\tLogConsolidated.log(Level.INFO, 0, sourceName,\n\t\t\t\t\t\t\"[\" + person.getLocationTag().getLocale() + \"] \" + person\n\t\t\t\t\t\t\t\t+ \" picked up a cooked meal '\" + cookedMeal.getName() \n\t\t\t\t\t\t\t\t+ \"' to eat in \" + person.getLocationTag().getImmediateLocation() + \".\");\n\t\t\t\tsetPhase(EAT_MEAL);\n\t\t\t}\n\t\t\telse {\n//\t\t\t\tlogger.info(person + \" couldn't find any cooked meals in this kitchen and will look for preserved food.\");\n\t\t\t\t// If no kitchen found, look for preserved food.\n\t\t\t\tsetPhase(EAT_PRESERVED_FOOD);\n\t\t\t}\n\t\t}\n\n\t\treturn time *.9;\n\t}", "public Recipe getRecipe(){\n\t\tRecipe recipe = new Recipe();\n\t\trecipe.setName(name);\n\t\trecipe.setNumPersons(numPersons);\n\t\trecipe.setPrepTime(prepTime);\n\t\trecipe.setRestTime(restTime);\n\t\trecipe.setCookingTime(cookingTime);\n\t\tHashMap<Ingredient, Quantity> ingredients = new HashMap<Ingredient,Quantity>();\n\t\tfor(int i = 0; i<ingredientsList.size(); i++){\n\t\t\tingredients.put(ingredientsList.get(i), quantities.get(i));\n\t\t}\n\t\trecipe.setIngredients(ingredients);\n\t\trecipe.setSteps(steps);\n\t\treturn recipe;\n\t}", "public List<Recipe> getRecipeByName(String name)\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n //For exact name query do: Cursor cursor = qb.query(db,sqlSelect, \"name = ?\",new String[]{name}, null, null, null);\n //LIKE implementation is done below\n Cursor cursor = qb.query(db,sqlSelect, \"name LIKE ?\",new String[]{\"%\"+name+\"%\"}, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "public List<Recipe> getRecipes() {\r\n \t\tCollections.sort(recipeList, Comparators.RECIPE_COMPARATOR);\r\n \t\treturn Collections.unmodifiableList(recipeList);\r\n \t}", "public static List<BakingRecipe> getBakingRecipes(String bakingJsonStr) throws JSONException {\n // Declare and initialize variables to return results\n\n List<BakingRecipe> bakingRecipes = new ArrayList<>();\n\n // Check if there are actual results\n JSONArray bakingJsonArray = new JSONArray(bakingJsonStr);\n if (bakingJsonArray.length() == 0) {\n return null;\n }\n for (int i = 0; i < bakingJsonArray.length(); i++) {\n // Create a bakingRecipe object to put data\n BakingRecipe bakingRecipe = new BakingRecipe();\n // Get the current json recipe\n JSONObject currentRecipeJson = bakingJsonArray.getJSONObject(i);\n // Get information for this recipe\n bakingRecipe.setId(currentRecipeJson.getInt(ID));\n bakingRecipe.setName(currentRecipeJson.getString(NAME));\n // Get ingredients array\n JSONArray ingredientJsonArray = currentRecipeJson.getJSONArray(INGREDIENTS);\n // Create List to hold the recipe ingredients\n List<BakingIngredient> bakingIngredients = new ArrayList<>();\n // Retrieve ingredients\n for (int j = 0; j < ingredientJsonArray.length(); j++) {\n // Create a baking ingredient object to hold the ingredient data\n BakingIngredient bakingIngredient = new BakingIngredient();\n // Get the current json ingredient\n JSONObject currentIngredientJson = ingredientJsonArray.getJSONObject(j);\n // Get ingredient data\n bakingIngredient.setQuantity(currentIngredientJson.getDouble(QUANTITY));\n bakingIngredient.setMeasure(currentIngredientJson.getString(MEASURE));\n bakingIngredient.setIngredient(currentIngredientJson.getString(INGREDIENT));\n // Add recipe key to baking ingredient\n bakingIngredient.setRecipeKey(bakingRecipe.getId());\n // add ingredient to ingredients list\n bakingIngredients.add(bakingIngredient);\n }\n // Add ingredients list to baking recipe\n bakingRecipe.setIngredientList(bakingIngredients);\n // Get steps array\n JSONArray stepJsonArray = currentRecipeJson.getJSONArray(STEPS);\n // Create List to hold the recipe ingredients\n List<BakingStep> bakingSteps = new ArrayList<>();\n // Retrieve ingredients\n for (int j = 0; j < stepJsonArray.length(); j++) {\n // Create a baking step object to hold the step data\n BakingStep bakingStep = new BakingStep();\n // Get the current JSON step\n JSONObject currentStepJson = stepJsonArray.getJSONObject(j);\n // Get step data\n bakingStep.setId(currentStepJson.getInt(ID));\n bakingStep.setShortDescription(currentStepJson.getString(SHORT_DESCRIPTION));\n bakingStep.setDescription(currentStepJson.getString(DESCRIPTION));\n bakingStep.setVideoURL(currentStepJson.getString(VIDEO_URL));\n bakingStep.setThumbnailURL(currentStepJson.getString(THUMBNAIL_URL));\n // add recipe key to baking step\n bakingStep.setRecipeKey(bakingRecipe.getId());\n // add step to steps list\n bakingSteps.add(bakingStep);\n }\n // add steps list to baking recipe\n bakingRecipe.setStepList(bakingSteps);\n bakingRecipe.setServings(currentRecipeJson.getInt(SERVINGS));\n bakingRecipe.setImage(currentRecipeJson.getString(IMAGE));\n // add baking recipe to baking recipe list\n bakingRecipes.add(bakingRecipe);\n }\n // return completed recipe list\n return bakingRecipes;\n }", "public static void addLogRecipes() {\n Container tempContainer = new Container() {\n @Override\n public boolean canInteractWith(@Nonnull EntityPlayer player) {\n return false;\n }\n };\n\n InventoryCrafting tempCrafting = new InventoryCrafting(tempContainer, 3, 3);\n\n for (int i = 1; i < 9; i++) {\n tempCrafting.setInventorySlotContents(i, ItemStack.EMPTY);\n }\n\n List<ItemStack> registeredOres = OreDictionary.getOres(\"logWood\");\n\n for (ItemStack logEntry : registeredOres) {\n if (logEntry.getItemDamage() == OreDictionary.WILDCARD_VALUE) {\n for (int j = 0; j < 16; j++) {\n ItemStack log = new ItemStack(logEntry.getItem(), 1, j);\n tempCrafting.setInventorySlotContents(0, log);\n ItemStack resultEntry = MekanismUtils.findMatchingRecipe(tempCrafting, null);\n\n if (!resultEntry.isEmpty()) {\n RecipeHandler.addPrecisionSawmillRecipe(log, StackUtils.size(resultEntry, 6),\n new ItemStack(MekanismItems.Sawdust), 1);\n }\n }\n } else {\n ItemStack log = StackUtils.size(logEntry, 1);\n tempCrafting.setInventorySlotContents(0, log);\n ItemStack resultEntry = MekanismUtils.findMatchingRecipe(tempCrafting, null);\n\n if (!resultEntry.isEmpty()) {\n RecipeHandler.addPrecisionSawmillRecipe(log, StackUtils.size(resultEntry, 6),\n new ItemStack(MekanismItems.Sawdust), 1);\n }\n }\n }\n }", "public static List<RecipeItemSelector> getRequireItemsFromRecipe(IRecipe recipe){\n\t\tif(recipe instanceof ShapelessRecipes){\n\t\t\tList<ItemStack> isList = ((ShapelessRecipes)recipe).recipeItems;\n\t\t\treturn isList.stream().map(input -> RecipeItemSelector.of(input, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapedRecipes){\n\t\t\tItemStack[] isarray = ((ShapedRecipes)recipe).recipeItems;\n\n\t\t\treturn Lists.<ItemStack>newArrayList(isarray).stream().map( is ->RecipeItemSelector.of(is, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapelessOreRecipe){\n\n\n\n\t\t\tList<RecipeItemSelector> list1 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof ItemStack)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of((ItemStack)obj, null)).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> list2 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof String)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of(null, new OreDict((String)obj))).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\trt.addAll(list1);\n\t\t\trt.addAll(list2);\n\t\t\treturn rt;\n\n\t\t}\n\t\tif(recipe instanceof ShapedOreRecipe){\n\t\t\tObject[] isarray = ((ShapedOreRecipe)recipe).getInput();\n\t\t\tList<Object> objList = Lists.newArrayList(isarray);\n\t\t\tobjList.stream().flatMap(obj ->{\n\t\t\t\t//\t\t\t\t\tUnsagaMod.logger.trace(\"recipe\", input.getClass());\n\t\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\t\tif(obj instanceof List){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"array\");\n\t\t\t\t\trt.addAll(convertListTypeObject(obj));\n\t\t\t\t}\n\t\t\t\tif(obj instanceof ItemStack){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"itemstack\");\n\t\t\t\t\tList<RecipeItemSelector> list = Lists.newArrayList(RecipeItemSelector.of((ItemStack)obj, null));\n\t\t\t\t\trt.addAll(list);\n\t\t\t\t}\n\n\t\t\t\t//\t\t\t\t\tif(objs!=null){\n\t\t\t\t//\t\t\t\t\t\tObject[] objarray = (Object[]) objs;\n\t\t\t\t//\t\t\t\t\t\treturn ListHelper.stream(objarray).map(new Function<Object,Tuple<ItemStack,OreDict>>(){\n\t\t\t\t//\n\t\t\t\t//\t\t\t\t\t\t\t@Override\n\t\t\t\t//\t\t\t\t\t\t\tpublic Tuple<ItemStack, OreDict> apply(Object input) {\n\t\t\t\t//\t\t\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", input);\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof ItemStack){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of((ItemStack)input,null);\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof String){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of(null, new OreDict((String) input));\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t//\t\t\t\t\t\t\t}}\n\t\t\t\t//\t\t\t\t\t\t).getList();\n\t\t\t\t//\t\t\t\t\t}\n\n\t\t\t\treturn rt.stream();\n\t\t\t});\n\t\t}\n\t\tHSLib.logger.trace(\"recipeutil\", \"どのレシピにも合致しない?\");\n\t\treturn Lists.newArrayList();\n\t}", "List<Recipe> getAllRecipes();", "private void eatCookedMeal(double eatingTime) {\n\t\t// Obtain the dry mass of the dessert\n\t\tdouble dryMass = cookedMeal.getDryMass();\n\t\t// Proportion of meal being eaten over this time period.\n\t\tdouble proportion = person.getEatingSpeed() * eatingTime;\n\n\t\tif (cumulativeProportion > dryMass) {\n\t\t\tdouble excess = cumulativeProportion - dryMass;\n\t\t\tcumulativeProportion = cumulativeProportion - excess;\n\t\t\tproportion = proportion - excess;\n\t\t}\n\n\t\tif (proportion > MIN) {\n\t\t\t// Add to cumulativeProportion\n\t\t\tcumulativeProportion += proportion;\n\t\t\t// Food amount eaten over this period of time.\n\t\t\tdouble hungerRelieved = RATIO * proportion / dryMass;\n\t\t\t\t\t\n//\t\t\tlogger.info(person + \" ate '\" + cookedMeal.getName()\n//\t\t\t\t\t+ \" currentHunger \" + Math.round(currentHunger*100.0)/100.0\n//\t\t\t\t\t+ \" hungerRelieved \" + Math.round(hungerRelieved*100.0)/100.0\n//\t\t\t\t\t+ \" proportion \" + Math.round(proportion*1000.0)/1000.0\n//\t\t\t\t\t+ \" EatingSpeed \" + Math.round(person.getEatingSpeed()*1000.0)/1000.0\n//\t\t\t\t\t+ \" foodConsumptionRate \" + Math.round(foodConsumptionRate*1000.0)/1000.0);\n\t\t\t\n\t\t\t// Change the hunger level after eating\n\t\t\treduceHunger(hungerRelieved);\n\t\n\t\t\t// Reduce person's stress over time from eating a cooked meal.\n\t\t\t// This is in addition to normal stress reduction from eating task.\n\t\t\tdouble stressModifier = STRESS_MODIFIER * (cookedMeal.getQuality() + 1D);\n\t\t\tdouble newStress = condition.getStress() + (stressModifier * eatingTime);\n\t\t\tcondition.setStress(newStress);\n\t\n\t\t\t// Add caloric energy from meal.\n\t\t\tdouble caloricEnergyFoodAmount = proportion / dryMass * PhysicalCondition.FOOD_COMPOSITION_ENERGY_RATIO;\n\t\t\tcondition.addEnergy(caloricEnergyFoodAmount);\n\t\t}\n\t}", "public List<Recipe> getRecipe()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "public static ArrayList<String> findRecipesWithIngredients(int numRecipesToReturn, User curUser) {\n HashSet<String> ingredientList = curUser.getIngredients();\n //if no ingredients in user's fridge, no recipes can be made\n if (ingredientList == null || ingredientList.size() == 0) {\n return new ArrayList<String>();\n }\n LinkedHashMap<String, Integer> recipeMap = new LinkedHashMap<>();\n /* for every ingredient find recipes that have that ingredient\n count maintains a number representing how many ingredients in\n ingredientList (the user's inventory) are in the given recipe.\n For e.g. if count for \"lasagna\" is 2, then two of the ingredients\n in the lasagna recipe are in the user's inventory. */\n for (String ingredient : ingredientList) {\n //gets all recipes with ingredient\n String recipesString = getRecipesWithIngredient(ingredient);\n if (recipesString == null) {\n continue;\n }\n String[] rec = recipesString.trim().split(\"\\\\s*,\\\\s*\");\n for (String recipe : rec) {\n // get the number of occurences of the specified recipe\n Integer count = recipeMap.get(recipe);\n // if the map contains no mapping for the recipe,\n // map the recipe with a value of 1\n if (count == null) {\n recipeMap.put(recipe, 1);\n } else { // else increment the found value by 1\n recipeMap.put(recipe, count + 1);\n }\n }\n }\n //create hashmap where keys are count and value is arraylist of recipes with that count\n Map<Integer, ArrayList<String>> invertedHashMap = new HashMap<>();\n for (Map.Entry<String, Integer> entry : recipeMap.entrySet()) {\n ArrayList<String> recipe = invertedHashMap.get(entry.getValue());\n if (recipe == null) {\n ArrayList<String> recipeList = new ArrayList<>();\n recipeList.add(entry.getKey());\n invertedHashMap.put(entry.getValue(), recipeList);\n } else {\n recipe.add(entry.getKey());\n invertedHashMap.put(entry.getValue(), recipe);\n }\n }\n\n //create a new treemap with recipes with the most number of ingredients in the user's inventory.\n TreeMap<Integer, ArrayList<String>> top = treeMapOfTop(invertedHashMap, numRecipesToReturn);\n //creates a new treemap, where the top (numRecipesToReturn*2) are sorted based on the user's\n //rating preferences\n TreeMap<Double, ArrayList<String>> ratedMap = factorInRatings(top, curUser);\n //converts to arraylist of size numRecipesToReturn of top recipes\n return topSortedRecipes(ratedMap, numRecipesToReturn);\n }", "public Recipe getRecipeAt(Long id) {\r\n \t\tfor (Recipe recipe : recipeList)\r\n \t\t\tif (recipe.getId() == id)\r\n \t\t\t\treturn recipe;\r\n \t\treturn null;\r\n \t}", "public List<Food> getFoodsByMeal(Meal m) {\n List<Food> foodsByMeal = new ArrayList<>();\n\n for (Food f : units) {\n if (f.getMeal() == m) {\n foodsByMeal.add(f);\n }\n }\n\n return foodsByMeal;\n }", "public void cook(Chef chef) {\n new Cooker(chef).cookIngredients(ingredients);\n }", "public static ArrayList<Recipe> getAllRecipes() {\n allRecipes.add(new Recipe(\"Pizza\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients2\"));\n allRecipes.add(new Recipe(\"Pasta\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Sushi Rolls\", 2.0, \"mkp_logo\", \"Japanese\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Crepe\", 3.5, \"mt_logo\", \"French\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Baked Salmon\", 0, \"pb_logo\", \"American\", \"5\", \"1. prep ingredients\\n2.cook food\\n3.eat your food\", \"ingredients1 ingredient 2 ingredient3\"));\n\n return allRecipes;\n }", "static int calcCoolingTime(int temperature, int amount) {\n // the time in melting reipes assumes updating 5 times a second\n // we update 20 times a second, so get roughly a quart of those values\n return IMeltingRecipe.calcTimeForAmount(temperature, amount);\n }", "ArrayList<RecipeObject> getRecipes();", "@Nullable\n protected RECIPE findFirstRecipe(@Nullable Collection<RECIPE> recipes, Predicate<RECIPE> matchCriteria) {\n return recipes == null ? null : recipes.stream().filter(matchCriteria).findFirst().orElse(null);\n }", "public List<Recipe> findAllRecipe(){\n\t\treturn sessionFactory.openSession().createQuery(\"from Recipe\").list();\n\t\t\n\t}", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\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} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public Recipe(String name, ArrayList<Product> productList, ArrayList<String> steps, int timeNeeded){\n this.name = name;\n this.productList = productList;\n this.steps = steps;\n this.timeNeeded = timeNeeded;\n }", "public Recipe getRecipe(int id) {\n int i = id - 1000;\n if(i < 0 || i > recipes.get(recipes.size() - 1).getID()-1000){\n //throw new IndexOutOfBoundsException();\n Recipe r = null;\n return r;\n }\n return recipes.get(i);\n }", "@Override\r\n\tpublic List<Resource> findResourcetime(String condition) {\n\t\tConnection conn=this.getConnection();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps=conn.prepareStatement(\"select * from resource where inputtime like '%\"+condition+\"%' order by resource_id desc\");\r\n\t\t\tResultSet rs=ps.executeQuery();\r\n\t\t\tList<Resource> list=new ArrayList<Resource>();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tResource d=new Resource();\r\n\t\t\t\td.setResourceid(rs.getInt(1));\r\n\t\t\t\td.setStyleid(rs.getInt(2));\r\n\t\t\t\td.setTitle(rs.getString(3));\r\n\t\t\t\td.setSize(rs.getString(4));\r\n\t\t\t\td.setLanguage(rs.getString(5));\r\n\t\t\t\td.setBanben(rs.getString(6));\r\n\t\t\t\td.setText(rs.getString(7));\r\n\t\t\t\td.setPoint(rs.getInt(8));\r\n\t\t\t\td.setInputtime(rs.getTimestamp(9));\r\n\t\t\t\td.setResadd(rs.getString(10));\r\n\t\t\t\td.setImageadd(rs.getString(11));\r\n\t\t\t\tlist.add(d);\r\n\t\t\t}\r\n\t\t\treturn list;\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}finally{\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException 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}\r\n\t\treturn null;\r\n\t}", "List<ChronicCheck> selectByExample(ChronicCheckExample example);", "private RecipeIngredient getBitteringHops() {\n\t\t//TODO verify the boil time is the longest, not just return first hops\n\t\tfor (RecipeIngredient ri : m_ingredientList) {\n\t\t\tif (ri.getIngredient().getType() == Ingredient.Type.HOPS) {\n\t\t\t\treturn ri;\n\t\t\t}\n\t\t}\n\t\treturn null;\t\t\t\t\n\t}", "private void generateRecipeList(List<Match> recipeDataList, int ingredients) {\n allMatches.clear();\n // Produces numerical score for each recipe\n weightedSearchByIngredients(recipeDataList, ingredients);\n allMatches.addAll(recipeDataList);\n adapter = new IngredientSearchAdapter(allMatches);\n recyclerView.setAdapter(adapter);\n for (Match recipe : recipeDataList){\n System.out.println(\"Recipe: \" + recipe.getRecipeName()\n + \"| Weight: \" + recipe.getWeight()\n + \"| Ingredients: \" + recipe.getIngredients().size());\n }\n }", "protected abstract void initCache(List<RECIPE> recipes);", "private List<SeatHold> getHoldTickets(Instant instant) {\n List<SeatHold> seatHolds = seatHoldMap.values()\n .stream()\n .filter(seatHold -> seatHold.getDate()\n .isBefore(LocalDateTime.ofInstant(instant, ZoneId.systemDefault())))\n .collect(Collectors.toList());\n return seatHolds;\n }", "@Override\n public ArrayList<Meal> findMealsByDate(LocalDateTime dateTime) {\n ArrayList<Meal> meals = new ArrayList<Meal>();\n// SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\n// _context.meals.stream()\n// .forEach(meal -> {\n// if (formatter.format(meal.getDateTime()).equals(formatter.format(dateTime)))\n// meals.add(meal);\n// });\n return meals;\n }", "private void findFood() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\tlogger.error(\"Should not happen\");\n\t\t\treturn;\n\t\t}\n\n\t\t_food = null;\n\t\tfloat distance = 0;\n\t\t\n\t\tfor (FoodEntry entry : map.values()) { \n\t\t\tfloat d = _obj.getPPosition().sub(entry.obj.getPPosition()).length();\n\t\t\tif (_food == null || d < distance) { \n\t\t\t\t_food = entry.obj;\n\t\t\t\tdistance = d;\n\t\t\t}\n\t\t}\n\t}", "public List<Meal> findMealsToday()\n\t{\n\t\tDate date = DateUtil.removeTime(new Date());\n\t\treturn mealRepository.findByDateOfServing(date);\n\t}", "Recipe findRecipeById(Long id) throws ServiceFailureException;", "public Recipe findByIdRecipe(int id) {\n\t\tSession session = sessionFactory.openSession();\n\t\treturn (Recipe) session.get(Recipe.class, id);\n\t}", "public String getReadableCookTime() {\r\n if (recipe != null) {\r\n return readableTime(recipe.getCookTime());\r\n } else {\r\n return \"\";\r\n }\r\n }", "public static void craft()\r\n\t{\r\n\t\tList<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList();\r\n\t\tIterator<IRecipe> recipe = recipeList.iterator();\r\n\r\n\t\twhile (recipe.hasNext())\r\n\t\t{\r\n\t\t\tItemStack stack = recipe.next().getRecipeOutput();\r\n\r\n\t\t\tif (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.STONEBRICK, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t} else if (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.END_BRICKS, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Adds all the 2 by 2 crafting Recipes\r\n\t\t */\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 4), new ItemStack(BBBlocks.moreStones, 4, 3));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 9), new ItemStack(BBBlocks.moreStones, 4, 8));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 10), new ItemStack(BBBlocks.moreStones, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 13), new ItemStack(BBBlocks.moreStones, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 14));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.cotswoldBricks, 4));\r\n\t\tcraft2by2(new ItemStack(Blocks.BRICK_BLOCK, 1), new ItemStack(BBBlocks.agedBricks, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 5), new ItemStack(BBBlocks.moreStones2, 4, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 1), new ItemStack(BBBlocks.moreStones2, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 14), new ItemStack(BBBlocks.moreStones2, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.RED_SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 6));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 6), new ItemStack(BBBlocks.moreStones2, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 9), new ItemStack(BBBlocks.moreStones2, 4, 8));\r\n\t\tcraft2by2(new ItemStack(Blocks.NETHERRACK, 1), new ItemStack(BBBlocks.moreStones2, 4, 11));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 11), new ItemStack(BBBlocks.moreStones2, 4, 10));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE), new ItemStack(BBBlocks.moreStones2, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.END_STONE), new ItemStack(BBBlocks.moreStones2, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 12), new ItemStack(Blocks.STONEBRICK, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 13), new ItemStack(Blocks.END_BRICKS, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 0), new ItemStack(BBBlocks.moreStones3, 4, 2));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 2), new ItemStack(BBBlocks.moreStones3, 4, 1));\r\n\r\n\r\n\t\t/**\r\n\t\t * Adds all the stair Recipes\r\n\t\t */\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(BBBlocks.cobbleGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(BBBlocks.cobbleDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(BBBlocks.cobbleAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.cobbleLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.cobbleMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.cobbleSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.cobbleBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.cobbleRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 1), new ItemStack(BBBlocks.brickGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 3), new ItemStack(BBBlocks.brickDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 5), new ItemStack(BBBlocks.brickAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.brickLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 12), new ItemStack(BBBlocks.brickMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 0), new ItemStack(BBBlocks.brickSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 4), new ItemStack(BBBlocks.brickBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 8), new ItemStack(BBBlocks.brickRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 10), new ItemStack(BBBlocks.brickNetherrackStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.cotswoldBricks, 1), new ItemStack(BBBlocks.brickCotswoldStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.agedBricks, 1), new ItemStack(BBBlocks.brickAgedbrickStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.END_BRICKS, 1), new ItemStack(BBBlocks.brickEndstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.RED_NETHER_BRICK, 1), new ItemStack(BBBlocks.brickRednetherStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones3, 1, 1), new ItemStack(BBBlocks.brickAcheriteStair, 4));\r\n\r\n\t\t/**\r\n\t\t * Adds all the slab Recipes\r\n\t\t */\r\n\t\tcraftSlab(BBBlocks.cobbleAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.brickGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.brickDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.brickMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.brickLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.brickRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickRednetherSlab);\r\n\t\tcraftSlab(BBBlocks.brickEndstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickNetherrackSlab);\r\n\t\tcraftSlab(BBBlocks.brickCotswoldSlab);\r\n\t\tcraftSlab(BBBlocks.brickAgedbrickSlab);\r\n\t\tcraftSlab(BBBlocks.brickAcheriteSlab);\r\n\t\t\r\n\t\t/**\r\n\t\t * Other Crafting Recipes\r\n\t\t */\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.moreStones2, 16, 14), new Object[] { Blocks.CLAY, \"sand\", Blocks.GRAVEL, Items.WATER_BUCKET}));\r\n\t\tNBTTagCompound concreteTag = new NBTTagCompound();\r\n\t\tconcreteTag.setInteger(\"color\", 16777215);\r\n\t\tItemStack concreteStack = new ItemStack(BBBlocks.concreteDyeable, 8, 0);\r\n\t\tconcreteStack.setTagCompound(concreteTag);\r\n\t\tGameRegistry.addRecipe(concreteStack, new Object[] { \"###\", \"#O#\", \"###\", '#', new ItemStack(BBBlocks.moreStones2, 1, 15), 'O', Items.PAPER });\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteTiles());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable.RecipeDuplicateConcrete());\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.overgrowth, 8),new Object[] { \"treeLeaves\", \"treeLeaves\"}));\r\n\r\n\t\t/**\r\n\t\t * Adds all the smelting Recipes\r\n\t\t */\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(Blocks.STONE, 1, 1));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(Blocks.STONE, 1, 3));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(Blocks.STONE, 1, 5));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.moreStones, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.moreStones, 1, 10));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.moreStones, 1, 14));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.moreStones2, 1, 2));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.moreStones2, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 14), new ItemStack(BBBlocks.moreStones2, 1, 15));\r\n\r\n\t}", "public static void findIngredient(String ingredient, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getIngredients().contains(ingredient)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "protected void drawCookTime(KilnRecipe recipe, MatrixStack matrixStack) {\n int cookTime = recipe.getCookTime();\n if (cookTime > 0) {\n int cookTimeSeconds = cookTime / 20;\n TranslationTextComponent timeString = new TranslationTextComponent(\"gui.jei.category.smelting.time.seconds\", cookTimeSeconds);\n Minecraft minecraft = Minecraft.getInstance();\n FontRenderer fontRenderer = minecraft.fontRenderer;\n int stringWidth = fontRenderer.getStringPropertyWidth(timeString);\n fontRenderer.func_243248_b(matrixStack, timeString, (this.background.getWidth() - stringWidth), 45, 0xFF808080);\n }\n }", "Recipe getRecipe(CharSequence query);", "@Override\n public Set PatientsWithCaughingAndFever() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>coughingAndFever = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getPatientMedicalRecord().getSymptoms().equals(\"Coughing\") || patient.getPatientMedicalRecord().getSymptoms().equals(\"Fever\")){\n coughingAndFever.add(patient);\n }else {\n System.out.println(\"No older patients with symptoms such as caughing and fever\");\n }\n });\n }\n\n return coughingAndFever;\n }", "List<Map<String, Object>> searchIngredient(String name);", "public static void findName(String searchedWord, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getName().contains(searchedWord)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "public List<Recipe> getRecipes()\n {\n return _recipes;\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/recipes\", produces = MediaType.APPLICATION_JSON_VALUE)\n public RecipesDescriptor getRecipes() {\n final Stream<Recipe> stream = StreamSupport.stream(this.recipeRepository.findAll().spliterator(), false);\n\n final List<Recipe> recipes = stream.collect(Collectors.toList());\n return new RecipesDescriptor(recipes);\n }", "public JsonObject getRecipesByDish(String dish) throws Exception\n {\n\n URL url = new URL(baseUrl+\"q=\"+dish);\n\n String contents = \"\";\n Scanner urlScanner = new Scanner(url.openStream());\n while (urlScanner.hasNextLine()){\n contents += urlScanner.nextLine();\n }\n urlScanner.close();\n JsonObject recipes = (JsonObject)Jsoner.deserialize(contents,new JsonObject());\n\n return recipes;\n\n }", "public List<Food> getAllFoodsFromRestaurant(final int restaurantId) throws ExecutionException, InterruptedException {\n class GetAllFoodsFromRestaurantTask extends AsyncTask<Integer,Void,List<Food>>\n {\n @Override\n protected List<Food> doInBackground(Integer... restaurantId) {\n List<Food> allFoods = mainDatabase.foodDao().getAllFoodsForRestaurant(restaurantId[0]);\n List<Food> foodsAboveThreshold = new ArrayList<>();\n for (Food food : allFoods) {\n if (food.getNutritionalInfo().getCalories() > 10) {\n foodsAboveThreshold.add(food);\n }\n }\n return foodsAboveThreshold;\n }\n }\n return new GetAllFoodsFromRestaurantTask().execute(restaurantId).get();\n }", "@Test\n public void getRecipeByName_CorrectInformation(){\n // Get clean recipe database\n ArrayList<Recipe> allRecipes = testDatabase.getAllRecipes();\n for(int i = 0; i < allRecipes.size(); i++){\n testDatabase.deleteRecipe(allRecipes.get(i).getKeyID());\n }\n\n int returned = testDatabase.addRecipe(testRecipe);\n Recipe retrieved = testDatabase.getRecipe(recipeTitle);\n assertEquals(returned, retrieved.getKeyID());\n assertEquals(\"getRecipeByName - Correct Title\", recipeTitle, retrieved.getTitle());\n assertEquals(\"getRecipeByName - Correct Servings\", 1, retrieved.getServings(), 0);\n assertEquals(\"getRecipeByName - Correct Prep Time\", 30, retrieved.getPrep_time(), 0);\n assertEquals(\"getRecipeByName - Correct Total Time\", 60, retrieved.getTotal_time(), 0);\n assertEquals(\"getRecipeByName - Correct Favorited\", false, retrieved.getFavorited());\n assertEquals(\"getRecipeByName - Ingredient Unit\", \"cups\", retrieved.getIngredientList().get(0).getUnit());\n assertEquals(\"getRecipeByName - Ingredient Quantity\", 2.0, retrieved.getIngredientList().get(0).getQuantity(), 0);\n assertEquals(\"getRecipeByName - Ingredient Details\", \"White Flour\", retrieved.getIngredientList().get(0).getDetails());\n assertEquals(\"getRecipeByName - First Direction Number\", 1, retrieved.getDirectionsList().get(0).getDirectionNumber());\n assertEquals(\"getRecipeByName - First Direction Text\", \"TestDirection1\", retrieved.getDirectionsList().get(0).getDirectionText());\n assertEquals(\"getRecipeByName - Second Direction Number\", 2, retrieved.getDirectionsList().get(1).getDirectionNumber());\n assertEquals(\"getRecipeByName - Second Direction Text\", \"TestDirection2\", retrieved.getDirectionsList().get(1).getDirectionText());\n }", "private Map<String, IBook> findResultResetBook(Collection<String> entrys, int maxDep) {\r\n\t\tMavenUtil.i().getLog().info(\"dog will reset doneBook.\");\r\n\t\tentryBooks = new HashMap<String, IBook>();\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tfor (String mthd : entrys) {\r\n\t\t\troute = new ArrayList<String>();\r\n\t\t\tbooks = new HashMap<String, IBook>();\r\n\t\t\tforward(mthd);\r\n\t\t\twhile (pos != null) {\r\n\t\t\t\tif (needChildBook(maxDep)) {\r\n\t\t\t\t\tString frontNode = graphMap.get(pos).getBranch();\r\n\t\t\t\t\tgetChildBook(frontNode);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tback();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tentryBooks.put(mthd, books.get(mthd));\r\n\t\t}\r\n\t\tlong runtime = (System.currentTimeMillis() - start) / 1000;\r\n\t\tMavenUtil.i().getLog().info(\"dog finishes running.\");\r\n\t\tMavenUtil.i().getLog().info(\"dog run time:\" + runtime);\r\n\t\tGlobalVar.time2runDog += runtime;\r\n\t\tMavenUtil.i().getLog().info(\"this.entryBooks:\" + this.entryBooks.size());\r\n\t\treturn this.entryBooks;\r\n\t}", "long getRecipesCount();", "public static Cooking getKitchenWithMeal(Person person) {\n\t\tCooking result = null;\n\n\t\tif (person.isInSettlement()) {\n\t\t\tBuildingManager manager = person.getSettlement().getBuildingManager();\n\t\t\tList<Building> cookingBuildings = manager.getBuildings(FunctionType.COOKING);\n\t\t\tfor (Building building : cookingBuildings) {\n\t\t\t\tCooking kitchen = building.getCooking();\n\t\t\t\tif (kitchen.hasCookedMeal()) {\n\t\t\t\t\tresult = kitchen;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public static List<Bunny> getListOfVeryCuteBunniesNamedSteve() {\n String selectionString = \"name='steve' AND cuteValue > 66\";\n// Long time = Calendar.getInstance().getTimeInMillis();\n QueryResultIterable<Bunny> iterable =\n cupboard().withDatabase(db).query(Bunny.class).withSelection(selectionString).query();\n List<Bunny> list = getListFromQueryResultIterator(iterable);\n return list;\n }", "@java.lang.Override\n public io.grafeas.v1.Recipe getRecipe() {\n return recipe_ == null ? io.grafeas.v1.Recipe.getDefaultInstance() : recipe_;\n }", "public interface ICastingRecipe extends ICommonRecipe<ICastingContainer> {\n @Override\n default ItemStack getToastSymbol() {\n return new ItemStack(getType() == TinkerRecipeTypes.CASTING_TABLE.get() ? TinkerSmeltery.searedTable : TinkerSmeltery.searedBasin);\n }\n\n /**\n * Gets the amount of fluid required for this recipe\n * @param inv Inventory instance\n * @return Fluid amount when using the fluid in the inventory\n */\n int getFluidAmount(ICastingContainer inv);\n\n /**\n * @return true if the cast item is consumed on crafting\n */\n boolean isConsumed();\n\n /**\n * @return true if the recipe output is placed into the casting input slot\n */\n boolean switchSlots();\n\n /**\n * @param inv ICastingInventory for casting recipe\n * @return cooling time for the output.\n */\n int getCoolingTime(ICastingContainer inv);\n\n /**\n * Calculates the cooling time for a recipe based on the amount and temperature\n * @param temperature Temperature baseline in celsius\n * @param amount Output amount\n * @return Cooling time based on the given inputs\n */\n static int calcCoolingTime(int temperature, int amount) {\n // the time in melting reipes assumes updating 5 times a second\n // we update 20 times a second, so get roughly a quart of those values\n return IMeltingRecipe.calcTimeForAmount(temperature, amount);\n }\n\n /**\n * Calculates the cooling time for a recipe based on the fluid input\n * @param fluid Fluid input\n * @return Time for the recipe\n */\n static int calcCoolingTime(FluidStack fluid) {\n return calcCoolingTime(fluid.getFluid().getAttributes().getTemperature(fluid) - 300, fluid.getAmount());\n }\n}", "public JsonObject getRecipesByIngredients(String ingredients) throws Exception\n {\n URL url = new URL(baseUrl+\"i=\"+ingredients);\n/* TODO \nYou have to use the url to retrieve the contents of the website. \nThis will be a String, but in JSON format. */\n String contents = \"\";\n Scanner urlScanner = new Scanner(url.openStream());\n while (urlScanner.hasNextLine()){\n contents += urlScanner.nextLine();\n }\n urlScanner.close();\n JsonObject recipes = (JsonObject)Jsoner.deserialize(contents,new JsonObject());\n\n return recipes;\n }", "public List<Food> getPortionedFoodsAfterDateTime(LocalDateTime dateTime) {\n List<FoodEntry> entriesAfterDateTime = FoodListManager.filterListByDate(foodEntries, dateTime);\n return FoodListManager.convertListToFoods(entriesAfterDateTime);\n }", "public List<String> getRecipeName()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"name\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<String> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n result.add(cursor.getString(cursor.getColumnIndex(\"name\")));\n }while(cursor.moveToNext());\n }\n return result;\n }", "public List<ICase> searchCases(Date date) {\n List<ICase> cases = new ArrayList<>();\n for (ICase aCase : allCases) {\n if (aCase.getCreationDate().equals(calendar.formatToString(date))) {\n cases.add(aCase);\n }\n }\n return cases;\n }", "@Override\n\tpublic List<FoodTruckEntity> findByExpirationDate() {\n\t\tDate date=new Date();\n\t\tList<FoodTruckEntity> list=repo.findByExpirationDateGreaterThanEqual(date);\n\t\treturn list;\n\t}", "private void computeCoffeeMaker(){\n HashMap<String,String> notAvailableBeverages = coffeeMakerService.getNotAvailableBeverages();\n ArrayList<String> beverageNames = coffeeMakerService.getBeveragesName();\n for (String beverage: beverageNames) {\n if(notAvailableBeverages.containsKey(beverage)){\n System.out.println(notAvailableBeverages.get(beverage));\n }else{\n if(coffeeMakerService.canPrepareBeverage(beverage)){\n coffeeMakerService.prepareBeverage(beverage);\n System.out.println(beverage+\" is prepared\");\n }else{\n System.out.println(coffeeMakerService.getReasonForNotPreparation(beverage));\n }\n }\n }\n }", "public static List<Nutrient> getFoodNutrients(ItemStack eatingFood) {\n\t\tList<Nutrient> nutrientsFound = new ArrayList<>();\n\n\t\t// Loop through nutrients to look for food\n\t\tfoodSearch:\n\t\tfor (Nutrient nutrient : NutrientList.get()) { // All nutrients\n\t\t\t// Search foods\n\t\t\tfor (ItemStack listedFood : nutrient.foodItems) { // All foods in that category\n\t\t\t\tif (listedFood.isItemEqual(eatingFood)) {\n\t\t\t\t\tnutrientsFound.add(nutrient); // Add nutrient\n\t\t\t\t\tcontinue foodSearch; // Skip rest of search in this nutrient, try others\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Search ore dictionary\n\t\t\tfor (String listedOreDict : nutrient.foodOreDict) { // All ore dicts in that nutrient\n\t\t\t\tfor (ItemStack itemStack : OreDictionary.getOres(listedOreDict)) { // All items that match that oredict (eg. listAllmilk)\n\t\t\t\t\tif (itemStack.isItemEqual(eatingFood)) { // Our food matches oredict\n\t\t\t\t\t\tnutrientsFound.add(nutrient); // Add nutrient\n\t\t\t\t\t\tcontinue foodSearch; // Skip rest of search in this nutrient, try others\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn nutrientsFound;\n\t}", "@Override\n\tpublic void addRecipes() {\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_BROWN), \"coralBrown\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_RED), \"coralRed\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_YELLOW), \"coralYellow\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.LIGHT_BLUE), \"coralLightBlue\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.MAGENTA), \"coralMagenta\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.ORANGE), \"coralOrange\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.PINK), \"coralPink\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.PURPLE), \"coralPurple\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.GREY), \"coralGray\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.LIGHT_GREY), \"coralLightGray\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_WHITE), \"coralWhite\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_GREEN), \"plantKelp\", true);\n\t\t\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_BLUE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_BRAIN), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_CANDYCANE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_CUCUMBER), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_ORANGE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_PINK), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_PURPLE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_RED), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_GREY), new ItemStack(coral, 1, CoralMeta.CORAL_LIGHT_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_LIGHT_GREY), new ItemStack(coral, 1, CoralMeta.CORAL_WHITE), 5);\n\t\t\n\t\t//Kelp Wrap Recipe\n\t\tRecipeHelper.add9x9Recipe(new ItemStack(Core.food, 1, FoodMeta.KELP_WRAP), \"plantKelp\");\n\t\t\n\t\taddOceanChestLoot();\n\t}", "public List<Food> getFoodsAfterDateTime(LocalDateTime dateTime) {\n List<FoodEntry> entriesAfterDateTime = FoodListManager.filterListByDate(foodEntries, dateTime);\n return FoodListManager.convertListToFoods(entriesAfterDateTime);\n }", "private static ArrayList<String> topSortedRecipes(TreeMap<Double, ArrayList<String>> ratedMap,\n int numRecipesToReturn) {\n ArrayList<String> topSortedRecipes = new ArrayList<>();\n int numToAdd = numRecipesToReturn;\n for (double key : ratedMap.keySet()) {\n ArrayList<String> rep = ratedMap.get(key);\n\n topSortedRecipes.addAll(rep.subList(0, min(numToAdd, rep.size())));\n numToAdd = numToAdd - rep.size();\n if (numToAdd < 0) {\n return topSortedRecipes;\n }\n }\n return topSortedRecipes;\n }", "public Recipe getRecipe() {\r\n return recipe;\r\n }", "@Test\n public void getAllRecipes_RecipeInfo(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<Recipe> allRecipes = testDatabase.getAllRecipes();\n Recipe retrieved = allRecipes.get(allRecipes.size()-1);\n //Retrieved should now contain all the same information as testRecipe\n assertEquals(\"getAllRecipes - Correct Title\", recipeTitle, retrieved.getTitle());\n assertEquals(\"getAllRecipes - Correct Servings\", 1, retrieved.getServings(), 0);\n assertEquals(\"getAllRecipes - Correct Prep Time\", 30, retrieved.getPrep_time(), 0);\n assertEquals(\"getAllRecipes - Correct Total Time\", 60, retrieved.getTotal_time(), 0);\n assertEquals(\"getAllRecipes - Correct Favorited\", false, retrieved.getFavorited());\n }", "@Test\n public void ShouldFindbyCategory() {\n Recipe curry = new Recipe();\n curry.setCategory(\"curry\");\n Recipe curryOne = new Recipe();\n curryOne.setCategory(\"curry\");\n Recipe breakfast = new Recipe();\n breakfast.setCategory(\"breakfast\");\n recipesRepository.save(curry);\n recipesRepository.save(curryOne);\n recipesRepository.save(breakfast);\n\n // When I check for curries\n List<Recipe> curries = recipesRepository.findByCategory(\"curry\");\n\n // Then only curries are returned\n assertThat(curries).containsExactly(curry, curryOne);\n }", "RiceCooker getByName(String name);", "public boolean isCraftable(int id) {\n ArrayList<Boolean> boolOfRecipe = new ArrayList<>();\n int lineRecipePos = 0;\n for (int recipe = 0; recipe < MathDataBuilder.countLinesInFiles(RECIPES); recipe++) {\n\n //Take the line of the recipe\n lineRecipePos = getRecipeLine(lineRecipePos);\n\n //Take the id from the line\n getEachElementOfTheLine();\n\n //Test is its craftable\n if (Integer.parseInt(idItemCraft) == id) {\n for (int item = 0; item < idItemNeeded.size(); item++) {\n //System.out.println(idItemNeeded.get(item));\n if (MathDataBuilder.world().getPlayer().getInventory().isInventoryContainsItem(Integer.parseInt(idItemNeeded.get(item)))) {\n if (MathDataBuilder.world().getPlayer().getInventory().getItembyId(Integer.parseInt(idItemNeeded.get(item))).getQuantity() >= Integer.parseInt(quantityItemNeeded.get(item))) {\n boolOfRecipe.add(true);\n } else {\n boolOfRecipe.add(false);\n }\n } else {\n boolOfRecipe.add(false);\n }\n }\n }\n }\n return isAllIngredientOk(boolOfRecipe);\n }", "public static ArrayList<Recipe> convertJsonToRecipeObjects() throws JSONException {\n //Convert fullJsonMoviesData to JsonObject\n String urlResponse = null;\n URL jsonURL = buildUrl();\n try {\n urlResponse = getResponseFromHttpUrl(jsonURL);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n JSONArray bakingDataArray = new JSONArray(urlResponse);\n ArrayList<Recipe> results = new ArrayList<>();\n for (int i = 0; i < bakingDataArray.length(); i++) {\n Recipe recipe = new Recipe();\n recipe.setId(bakingDataArray.getJSONObject(i).getInt(ID));\n recipe.setName(bakingDataArray.getJSONObject(i).getString(NAME));\n recipe.setImage(getDefaultorActualImage(bakingDataArray.getJSONObject(i).getString(IMAGE)));\n recipe.setServings(bakingDataArray.getJSONObject(i).getString(SERVINGS));\n JSONArray ingredientsJSONArray = bakingDataArray.getJSONObject(i).getJSONArray(INGREDIENTS);\n ArrayList<Ingredient> ingredientsArray = new ArrayList<>();\n for (int j = 0; j < ingredientsJSONArray.length(); j++) {\n Ingredient ingredient = new Ingredient();\n ingredient.setIngredient(ingredientsJSONArray.getJSONObject(j).getString(INGREDIENT));\n ingredient.setMeasure(ingredientsJSONArray.getJSONObject(j).getString(MEASURE));\n ingredient.setQuantity(ingredientsJSONArray.getJSONObject(j).getString(QUANTITY));\n ingredientsArray.add(ingredient);\n }\n recipe.setIngredients(ingredientsArray);\n JSONArray stepJSONArray = bakingDataArray.getJSONObject(i).getJSONArray(STEPS);\n ArrayList<Step> stepArray = new ArrayList<>();\n for (int k = 0; k < stepJSONArray.length(); k++) {\n Step step = new Step();\n step.setId(stepJSONArray.getJSONObject(k).getString(STEP_ID));\n step.setDescription(stepJSONArray.getJSONObject(k).getString(DESCRIPTION));\n step.setShortDescription(stepJSONArray.getJSONObject(k).getString(SHORT_DESCRIPTION));\n step.setThumbnailURL(stepJSONArray.getJSONObject(k).getString(thumbnailURL));\n step.setVideoURL(stepJSONArray.getJSONObject(k).getString(videoURL));\n stepArray.add(step);\n }\n recipe.setSteps(stepArray);\n results.add(recipe);\n }\n return results;\n }", "public void printTaskByDate(String date)\n {\n tasks.stream()\n .filter(task -> task.getDate().equals(date))\n .map(task -> task.getDetails())\n .forEach(details -> System.out.println(details)); \n }", "public ArrayList<Integer> getIdRecipeCraftable() {\n ArrayList<Integer> idRecipes = new ArrayList<>();\n\n int lineRecipe = 0;\n for (int recipe = 0; recipe < MathDataBuilder.countLinesInFiles(RECIPES); recipe++) {\n\n lineRecipe = getRecipeLine(lineRecipe);\n\n String idItemCraft = \"\";\n boolean isFinished = false;\n for (int c = 0; c < line.length() && !isFinished; c++) {\n idItemCraft = idItemCraft + line.charAt(c);\n if (line.charAt(c + 1) == ';') {\n isFinished = true;\n }\n }\n idRecipes.add(Integer.parseInt(idItemCraft));\n }\n\n return idRecipes;\n }", "public List<Stop> getListStopByMoreTime(Date time){\n List<Stop> items = null;\n Session session = beanHibernateUtil.getSession();\n try {\n session.beginTransaction();\n Criteria criteria = session.createCriteria(Stop.class);\n criteria.add(Restrictions.gt(\"arrivalTime\",time.getTime()-2*60*60000));//lay du lieu tu 16h hom trc toi 18h sau tranh luc giao ke hoạch 18h bi thieu 1 stop\n criteria.addOrder(Order.asc(\"arrivalTime\"));//de chuan thi phai ket hop dc ca du lieu arrivalTime va departureTime cong lai moi het dc cac truong hop\n items = criteria.list();\n session.getTransaction().commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n beanHibernateUtil.closeSession(session);\n }\n\n return items;\n }", "public void checkRecipe() {\n \t\tIStationRecipe previous = currentRecipe;\n \t\tif ((currentRecipe == null) || !currentRecipe.matches(crafting)) {\n \t\t\tcurrentRecipe = BetterStorageCrafting.findMatchingStationRecipe(crafting);\n \t\t\tif (currentRecipe == null)\n \t\t\t\tcurrentRecipe = VanillaStationRecipe.findVanillaRecipe(this);\n \t\t}\n \t\tif ((previous != currentRecipe) || !recipeOutputMatches()) {\n \t\t\tprogress = 0;\n \t\t\tcraftingTime = ((currentRecipe != null) ? currentRecipe.getCraftingTime(crafting) : 0);\n \t\t\texperience = ((currentRecipe != null) ? currentRecipe.getExperienceDisplay(crafting) : 0);\n \t\t\tif (!outputIsReal)\n \t\t\t\tfor (int i = 0; i < output.length; i++)\n \t\t\t\t\toutput[i] = null;\n \t\t}\n \t\tArrays.fill(requiredInput, null);\n \t\tif (currentRecipe != null)\n \t\t\tcurrentRecipe.getCraftRequirements(crafting, requiredInput);\n \t\tupdateLastOutput();\n \t}", "private void UpdateRecipeList(List<Match> recipeDataList, int ingredients) {\n weightedSearchByIngredients(recipeDataList, ingredients);\n List<Match> moreMatches = recipeDataList;\n int curSize = adapter.getItemCount();\n allMatches.addAll(moreMatches);\n adapter.notifyItemRangeInserted(curSize, allMatches.size() - 1);\n// for (Match recipe : allMatches){\n// System.out.println(\"Recipe: \" + recipe.getRecipeName()\n// + \"| Weight: \" + recipe.getWeight()\n// + \"| Ingredients: \" + recipe.getIngredients().size());\n// }\n }", "public String find(String kw) {\n StringJoiner result = new StringJoiner(\"\\n\");\n for (int i = 0; i < tasks.size(); i++) {\n Task t = tasks.get(i);\n if (t.toString().contains(kw)) {\n result.add(String.format(\"%d.%s\", i + 1, t));\n }\n }\n\n return result.toString();\n }", "public static void doRecycleRecipes()\n {\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_horse_armor, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore, 2, 0), 30.0F);\n // extra Gold recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.clock), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, 1), new ItemStack(Blocks.gold_ore), 15.0F);\n //\n // recycle your Leather\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n //\n // recycle your Wood\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n // extra Wood recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.boat), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.bed), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_door), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.fishing_rod, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 3.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.bookshelf), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.chest), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.trapped_chest), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.hay_block), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.crafting_table), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 3.0F);\n //\n // recycle your Stone\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n // extra Stone recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.furnace), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.stone, 2, 0), 10.0F);\n //\n // recycle your Iron\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_horse_armor, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n // extra Iron recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.bucket), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.cauldron), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.compass), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_door), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.flint_and_steel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.minecart), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.hopper_minecart), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.anvil, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 4, 0), new ItemStack(Items.coal, 4, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 4, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.hopper), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n //\n // recycle your Diamond\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_horse_armor, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore, 2, 0), 20.0F);\n //\n\t\tif(Loader.isModLoaded(\"simpleores\") && Settings.enableSimpleOres){\n // recycle your Copper\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.copper_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.copper_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n // extra Copper recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_bucket), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_door_block), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n //\n // recycle your Tin\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.tin_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.tin_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n // extra Tin recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n //\n // recycle your Mythril\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n // extra Mythril recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_rod), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_furnace), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore, 2, 0), 15.0F);\n //\n // recycle your Adamantium\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n // extra Adamantium recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n //\n // recycle your Onyx\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n // extra Onyx recycling\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_door_block), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_rod), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_furnace), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore, 2, 0), 40.0F);\n //\n // recycle your Bronze\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n //\n // recycle your Thyrium\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n // extra Thyrium recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_rod), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n //\n // recycle your Sinisite\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n // extra Sinisite recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_rod), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n }}", "public boolean discoverRecipe ( NamespacedKey recipe ) {\n\t\treturn invokeSafe ( \"discoverRecipe\" , recipe );\n\t}", "public Recipe getRecipe() {\n return recipe;\n }", "private void findPrecipChances(ForecastIO FIO, WeatherlyDayForecast day){\n FIOHourly hourlyForecast = new FIOHourly(FIO);\n\n //Determine the number of hours left in the day\n Calendar rightNow = Calendar.getInstance();\n int dayHoursLeft = 24 - rightNow.get(Calendar.HOUR_OF_DAY);\n\n //Find the lowest and highest chances for precipitation for the rest of the day\n double minChance = hourlyForecast.getHour(0).precipProbability();\n double maxChance = minChance;\n int maxHour = rightNow.get(Calendar.HOUR_OF_DAY);\n for (int i = 1; i < dayHoursLeft; i++){\n double chance = hourlyForecast.getHour(i).precipProbability();\n if (minChance > chance)\n minChance = chance;\n if (maxChance < chance) {\n maxChance = chance;\n maxHour = i + rightNow.get(Calendar.HOUR_OF_DAY);\n }\n\n }\n\n day.setMinChanceOfPrecip((int) (minChance * 100));\n day.setMaxChanceOfPrecip((int) (maxChance * 100));\n day.setMaxChanceTime(maxHour);\n }", "public io.grafeas.v1.Recipe getRecipe() {\n if (recipeBuilder_ == null) {\n return recipe_ == null ? io.grafeas.v1.Recipe.getDefaultInstance() : recipe_;\n } else {\n return recipeBuilder_.getMessage();\n }\n }", "public List<Word> search(final Section section) {\n return DICTIONARY.parallelStream()\n .filter(word -> BusinessLogic.IS_EQUAL_LENGTH.apply(word.getNumber(), section.getDigits()))\n .filter(word -> BusinessLogic.IS_EQUAL_HASH.apply(word.getNumber(), section.getDigits()))\n .filter(word -> BusinessLogic.IS_EQUAL_DIGITS.apply(word.getNumber(), section.getDigits()))\n .collect(Collectors.toList());\n }", "List<Whisky> findWhiskiesByAgeAndDistilleryNamed(String name, int age);", "public List<ICase> searchCases(Date date, String CPR) {\n List<ICase> cases = new ArrayList<>();\n for (ICase aCase : allCases) {\n if (aCase.getCreationDate().equals(calendar.formatToString(date)) && aCase.getCPR().equals(CPR)) {\n cases.add(aCase);\n }\n }\n return cases;\n }", "public RecipeCondition(String recipeKey) {\n this.recipeKey = recipeKey;\n }", "@Test\n public void testGetRecipes() throws AmountOfRecipeException, DuplicatedRecipeException{\n boolean ok = CM.addRecipe(r1);\n ok = CM.addRecipe(r2);\n ok = CM.addRecipe(r3);\n Vector<Recipe> recipes = CM.getRecipes();\n assertEquals(3,recipes.size());\n assertTrue(recipes.contains(r1));\n assertTrue(recipes.contains(r2));\n assertTrue(recipes.contains(r3));\n }", "public static Collection<Foodies> Random(String[] args, double rar){\n\t\tgetListy(args);\n\t\tdone = searchByRating(rar);\n\t\tCollections.shuffle((List<?>) done); \n\t\treturn done; \n\t}", "void cook(Food food) {\n //cook in pressure cooker\n }", "public ArrayList<IngredientRecipePOJO> getAllIngredientRecipeByIdRecipe(String idRecipe);" ]
[ "0.7051903", "0.5706064", "0.5665676", "0.553451", "0.54865634", "0.5464277", "0.53953874", "0.53887343", "0.53764707", "0.52624965", "0.52445024", "0.5230556", "0.5202047", "0.5201296", "0.5122936", "0.5102071", "0.5097186", "0.5006529", "0.49982202", "0.49794164", "0.49526632", "0.49488196", "0.4916932", "0.4910244", "0.48809975", "0.4853304", "0.4819075", "0.48188007", "0.48053217", "0.4792967", "0.47549105", "0.47463432", "0.4729222", "0.47083524", "0.466066", "0.46490103", "0.4644626", "0.46186352", "0.4617735", "0.46025756", "0.4599581", "0.45990905", "0.45906058", "0.4578422", "0.45775124", "0.4573011", "0.45662865", "0.45623592", "0.4558175", "0.45557696", "0.45476538", "0.4537207", "0.4536119", "0.45285305", "0.4513293", "0.45126748", "0.45106044", "0.45024148", "0.44873214", "0.44784868", "0.44755253", "0.4470766", "0.44690025", "0.4468312", "0.44656143", "0.4463828", "0.44616702", "0.44604924", "0.44561213", "0.4455947", "0.44484577", "0.44421083", "0.44398922", "0.4434292", "0.44268292", "0.4414513", "0.44130936", "0.43967658", "0.43728423", "0.43603957", "0.43505174", "0.43443137", "0.43440816", "0.43440658", "0.43365026", "0.43355155", "0.433217", "0.43303806", "0.43252552", "0.4325097", "0.4302541", "0.43016765", "0.4299615", "0.4287752", "0.4287151", "0.4286422", "0.42826018", "0.42824188", "0.42804182", "0.42729235" ]
0.68687326
1
find all recipes in the recipe book
SortedSet<Recipe> findAllRecipes() throws ServiceFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Recipe> getAllRecipes();", "public List<Recipe> findAllRecipe(){\n\t\treturn sessionFactory.openSession().createQuery(\"from Recipe\").list();\n\t\t\n\t}", "public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = new ArrayList<Recipe>();\n\t\t\t\t\n\t\t\t\t// Temporary containers to hold the search results until they can \n\t\t\t\t// be combined in mRecipes \n\t\t\t\tArrayList<Recipe> mRecipesNAME = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesCATEGORY = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINGREDIENT = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesDESCRIPTION = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINSTRUCTION = new ArrayList<Recipe>();\n\t\t\t\tIterator<Recipe> iterator = RECIPES.iterator(); \n\t\t\t\t\n\t\t\t\t// Search all recipes in Recipe Box for name matches\n\t\t\t\twhile (iterator.hasNext()){\n\n\t\t\t\t\t// Load the next recipe\n\t\t\t\t\tRecipe recipe = iterator.next();\n\t\t\t\t\t\n\t\t\t\t\t// Check for recipe NAME match\n\t\t\t\t\tif (recipe.nameContains(searchTerm)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesNAME.add(recipe);\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe CATEGORY match\n\t\t\t\t\telse if (recipe.categoriesContain(searchTerm)) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesCATEGORY.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INGREDIENT match\n\t\t\t\t\telse if (recipe.ingredientsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINGREDIENT.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe DESCRIPTION match\n\t\t\t\t\telse if (recipe.descriptionContains(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesDESCRIPTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INSTRUCTION match\n\t\t\t\t\telse if (recipe.instructionsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINSTRUCTION.add(recipe);\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\t\n\t\t\t\t// Create an ordered list of recipes from most important to least important\n\t\t\t\tmRecipes.addAll(mRecipesNAME);\n\t\t\t\tmRecipes.addAll(mRecipesCATEGORY);\n\t\t\t\tmRecipes.addAll(mRecipesINGREDIENT);\n\t\t\t\tmRecipes.addAll(mRecipesDESCRIPTION);\n\t\t\t\tmRecipes.addAll(mRecipesINSTRUCTION);\n\t\t\t\t\n\t\t\t\t// Return ordered list of recipes\n\t\t\t\tLog.d(TAG, \"Finish function searchNames\");\n\t\t\t\treturn mRecipes;\n\t\t\t\t\n\t\t\t}", "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "ArrayList<RecipeObject> getRecipes(String recipeName);", "public static ArrayList<Recipe> getAllRecipes() {\n allRecipes.add(new Recipe(\"Pizza\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients2\"));\n allRecipes.add(new Recipe(\"Pasta\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Sushi Rolls\", 2.0, \"mkp_logo\", \"Japanese\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Crepe\", 3.5, \"mt_logo\", \"French\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Baked Salmon\", 0, \"pb_logo\", \"American\", \"5\", \"1. prep ingredients\\n2.cook food\\n3.eat your food\", \"ingredients1 ingredient 2 ingredient3\"));\n\n return allRecipes;\n }", "ArrayList<RecipeObject> getRecipes();", "List<RecipeObject> searchRecipes(String query, String number, String offset, String diet, String intolerances, String type, String cuisine, String ingredients) throws EntityException;", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\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} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public ArrayList<IngredientRecipePOJO> getAllIngredientRecipeByIdRecipe(String idRecipe);", "public static void findIngredient(String ingredient, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getIngredients().contains(ingredient)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "public List<Recipe> getRecipes()\n {\n return _recipes;\n }", "public List<Recipe> getAllRecipesFromRepository(){\n\t\tList<RecipeEntity> retrievedRecipes = recipesRepo.findAll();\n\t\tlog.debug(\"Number of retrieved recipes from DB: \"+retrievedRecipes.size());\n\t\t//Map all retrieved recipes entity to recipe instances\n\t\tList<Recipe> recipesList = new ArrayList<>(retrievedRecipes.size());\n\t\tretrievedRecipes.forEach(recipeEntity -> recipesList.add(mapToRecipeObject(recipeEntity)));\n\t\tlog.debug(\"Number of recipe entities mapped and stored to recipesList: \"+recipesList.size());\n\t\t//Return mapped recipes\n\t\treturn recipesList;\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/recipes\", produces = MediaType.APPLICATION_JSON_VALUE)\n public RecipesDescriptor getRecipes() {\n final Stream<Recipe> stream = StreamSupport.stream(this.recipeRepository.findAll().spliterator(), false);\n\n final List<Recipe> recipes = stream.collect(Collectors.toList());\n return new RecipesDescriptor(recipes);\n }", "public List<Recipe> getRecipe()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;", "public Set < NamespacedKey > getDiscoveredRecipes ( ) {\n\t\treturn extract ( handle -> handle.getDiscoveredRecipes ( ) );\n\t}", "public List<Recipe> getRecipes() {\r\n \t\tCollections.sort(recipeList, Comparators.RECIPE_COMPARATOR);\r\n \t\treturn Collections.unmodifiableList(recipeList);\r\n \t}", "List<Book> findAll();", "List<String> getRecipeByIngredients(CharSequence query);", "SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;", "public List<Recipe> getRecipeByName(String name)\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n //For exact name query do: Cursor cursor = qb.query(db,sqlSelect, \"name = ?\",new String[]{name}, null, null, null);\n //LIKE implementation is done below\n Cursor cursor = qb.query(db,sqlSelect, \"name LIKE ?\",new String[]{\"%\"+name+\"%\"}, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }", "public void printAllRecipeNames() {\r\n for (Recipe currentRecipe : listOfRecipes) {\r\n System.out.println(currentRecipe.getRecipeName());\r\n }\r\n }", "List<Map<String, Object>> searchIngredient(String name);", "Observable<List<Recipe>> getRecipes();", "public static ArrayList<String> findRecipesWithIngredients(int numRecipesToReturn, User curUser) {\n HashSet<String> ingredientList = curUser.getIngredients();\n //if no ingredients in user's fridge, no recipes can be made\n if (ingredientList == null || ingredientList.size() == 0) {\n return new ArrayList<String>();\n }\n LinkedHashMap<String, Integer> recipeMap = new LinkedHashMap<>();\n /* for every ingredient find recipes that have that ingredient\n count maintains a number representing how many ingredients in\n ingredientList (the user's inventory) are in the given recipe.\n For e.g. if count for \"lasagna\" is 2, then two of the ingredients\n in the lasagna recipe are in the user's inventory. */\n for (String ingredient : ingredientList) {\n //gets all recipes with ingredient\n String recipesString = getRecipesWithIngredient(ingredient);\n if (recipesString == null) {\n continue;\n }\n String[] rec = recipesString.trim().split(\"\\\\s*,\\\\s*\");\n for (String recipe : rec) {\n // get the number of occurences of the specified recipe\n Integer count = recipeMap.get(recipe);\n // if the map contains no mapping for the recipe,\n // map the recipe with a value of 1\n if (count == null) {\n recipeMap.put(recipe, 1);\n } else { // else increment the found value by 1\n recipeMap.put(recipe, count + 1);\n }\n }\n }\n //create hashmap where keys are count and value is arraylist of recipes with that count\n Map<Integer, ArrayList<String>> invertedHashMap = new HashMap<>();\n for (Map.Entry<String, Integer> entry : recipeMap.entrySet()) {\n ArrayList<String> recipe = invertedHashMap.get(entry.getValue());\n if (recipe == null) {\n ArrayList<String> recipeList = new ArrayList<>();\n recipeList.add(entry.getKey());\n invertedHashMap.put(entry.getValue(), recipeList);\n } else {\n recipe.add(entry.getKey());\n invertedHashMap.put(entry.getValue(), recipe);\n }\n }\n\n //create a new treemap with recipes with the most number of ingredients in the user's inventory.\n TreeMap<Integer, ArrayList<String>> top = treeMapOfTop(invertedHashMap, numRecipesToReturn);\n //creates a new treemap, where the top (numRecipesToReturn*2) are sorted based on the user's\n //rating preferences\n TreeMap<Double, ArrayList<String>> ratedMap = factorInRatings(top, curUser);\n //converts to arraylist of size numRecipesToReturn of top recipes\n return topSortedRecipes(ratedMap, numRecipesToReturn);\n }", "private void generateRecipeList(List<Match> recipeDataList, int ingredients) {\n allMatches.clear();\n // Produces numerical score for each recipe\n weightedSearchByIngredients(recipeDataList, ingredients);\n allMatches.addAll(recipeDataList);\n adapter = new IngredientSearchAdapter(allMatches);\n recyclerView.setAdapter(adapter);\n for (Match recipe : recipeDataList){\n System.out.println(\"Recipe: \" + recipe.getRecipeName()\n + \"| Weight: \" + recipe.getWeight()\n + \"| Ingredients: \" + recipe.getIngredients().size());\n }\n }", "public List<Recipe> getRelatedRecipes() {\r\n return relatedRecipes;\r\n }", "public static void findName(String searchedWord, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getName().contains(searchedWord)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }", "Collection<Book> readAll();", "@Override\n\tpublic List<Recipe> getAllRecipe() {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\tResponseEntity<List<Recipe>> rateResponse =\n\t\t restTemplate.exchange(BASE_URL + RECIPE_URL, HttpMethod.GET, \n\t\t \t\tnull, new ParameterizedTypeReference<List<Recipe>>() {\n\t\t });\n\t\tList<Recipe> recipeList = rateResponse.getBody();\n\t\tlogger.debug(\"RECIPE Info :\" + recipeList);\n\t\treturn recipeList;\n\t}", "List<String> getRecipeTitles();", "public interface RecipeManager {\n \n /** \n * creates a recipe in DB\n * @param recipe recipe to be created\n */\n void createRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * deletes a recipe from DB\n * @param recipe recipe to be deleted\n */\n void deleteRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * edit a recipe in DB\n * @param recipe recipe to be edited \n */\n void updateRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * find recipe by ID\n * @param id id of the searched recipe\n * @return recipe with entered ID\n */ \n Recipe findRecipeById(Long id) throws ServiceFailureException;\n \n /**\n * find recipes, that have this substring in their names\n * @param name name of the searched recipes\n * @return set of recipes with entered substring\n */\n SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;\n \n /**\n * find recipes by it's type\n * @param type type of the searched recipes\n * @return set of recipes with entered type\n */\n SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;\n \n /**\n * find recipes by it's category\n * @param category category of the searched recipes\n * @return set of recipes with entered category\n */\n SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;\n \n /**\n * find recipes by it's cooking time\n * @param fromTime lower border of the searched cooking time\n * @param toTime upper border of the searched cooking time\n * @return set of recipes with cooking time between lower and upper borders\n */\n SortedSet<Recipe> findRecipesByCookingTime(int fromTime, int toTime) throws ServiceFailureException;\n SortedSet<Recipe> findRecipesUptoCookingTime(int toTime) throws ServiceFailureException;\n SortedSet<Recipe> findRecipesFromCookingTime(int fromTime) throws ServiceFailureException;\n \n /**\n * find all recipes in the recipe book\n * @return all recipes in the system\n */\n SortedSet<Recipe> findAllRecipes() throws ServiceFailureException;\n}", "@Test\n public void getAllRecipes_ReturnsList(){\n ArrayList<Recipe> allRecipes = testDatabase.getAllRecipes();\n assertNotEquals(\"getAllRecipes - Non-empty List Returned\", 0, allRecipes.size());\n }", "public void print(){\n for(Recipe r : recipes){\n System.out.println(r.toString());\n }\n }", "public List<String> getRecipeName()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"name\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<String> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n result.add(cursor.getString(cursor.getColumnIndex(\"name\")));\n }while(cursor.moveToNext());\n }\n return result;\n }", "SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;", "static ArrayList<RecipeList> GetRegionalRecipes() {\n\t\tArrayList<RecipeList> RegionalRecipes = new ArrayList<RecipeList>();\n\n\t\tfor (Recipe rec : Recipes) {\n\t\t\tboolean added = false;\n\t\t\tfor (RecipeList recList : RegionalRecipes) {\n\t\t\t\tif (rec.Region.equalsIgnoreCase(recList.Region)) {\n\t\t\t\t\tfor (String ing : rec.Ingredients) {\n\t\t\t\t\t\trecList.addIngredient(ing);\n\t\t\t\t\t\tadded = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (added == false) {\n\t\t\t\tRecipeList newList = new RecipeList(rec.Region);\n\t\t\t\tfor (String ing : rec.Ingredients) {\n\t\t\t\t\tnewList.addIngredient(ing);\n\t\t\t\t}\n\t\t\t\tRegionalRecipes.add(newList);\n\t\t\t\tadded = true;\n\t\t\t\tSystem.out.println(\"add\");\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * for(RecipeList a:RegionalRecipes){ System.out.println(a.get(2)); }\n\t\t */\n\t\treturn RegionalRecipes;\n\t}", "public JsonObject getRecipesByIngredients(String ingredients) throws Exception\n {\n URL url = new URL(baseUrl+\"i=\"+ingredients);\n/* TODO \nYou have to use the url to retrieve the contents of the website. \nThis will be a String, but in JSON format. */\n String contents = \"\";\n Scanner urlScanner = new Scanner(url.openStream());\n while (urlScanner.hasNextLine()){\n contents += urlScanner.nextLine();\n }\n urlScanner.close();\n JsonObject recipes = (JsonObject)Jsoner.deserialize(contents,new JsonObject());\n\n return recipes;\n }", "@GET(Url.END_POINT)\n Call<ArrayList<Recipe>> getRecipes();", "public List<Book> findAll() {\n return bookRepository.findAll();\n }", "private void loadRecipes() {\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesHelmet),\n\t\t\t\t\"XXX\",\n\t\t\t\t\"X X\",\n\t\t\t\t\" \", 'X', Blocks.lapis_ore);\n\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesChestplate),\n\t\t\t\t\"X X\",\n\t\t\t\t\"XXX\",\n\t\t\t\t\"XXX\", 'X', Blocks.lapis_ore);\n\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesLeggings),\n\t\t\t\t\"XXX\",\n\t\t\t\t\"X X\",\n\t\t\t\t\"X X\", 'X', Blocks.lapis_ore);\n\n\t\tGameRegistry.addRecipe(new ItemStack(RamsesMod.ramsesBoots),\n\t\t\t\t\" \",\n\t\t\t\t\"X X\",\n\t\t\t\t\"X X\", 'X', Blocks.lapis_ore);\n\t}", "public Cursor getRecipeContents(String title){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor data = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME\n + \" WHERE \" + COLUMN_TITLE\n + \"=\" + \"'\" + title + \"';\", null);\n return data;\n }", "@Override\n public List<Part> findAll() {\n List<Part> resultList = new ArrayList<>();\n repositoryPart.findAll().iterator().forEachRemaining(resultList::add);\n return resultList;\n }", "@Override\n\tpublic List<Recipe> findByIngredients(List<String> ingredients) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Book> findAll() {\n\t\treturn dao.findAll();\n\t}", "public List<Book> findAll() {\n\t\treturn bookDao.findAll();\r\n\t}", "public List<Book> allBooks() {\n return bookRepository.findAll();\n }", "public static List<BakingRecipe> getBakingRecipes(String bakingJsonStr) throws JSONException {\n // Declare and initialize variables to return results\n\n List<BakingRecipe> bakingRecipes = new ArrayList<>();\n\n // Check if there are actual results\n JSONArray bakingJsonArray = new JSONArray(bakingJsonStr);\n if (bakingJsonArray.length() == 0) {\n return null;\n }\n for (int i = 0; i < bakingJsonArray.length(); i++) {\n // Create a bakingRecipe object to put data\n BakingRecipe bakingRecipe = new BakingRecipe();\n // Get the current json recipe\n JSONObject currentRecipeJson = bakingJsonArray.getJSONObject(i);\n // Get information for this recipe\n bakingRecipe.setId(currentRecipeJson.getInt(ID));\n bakingRecipe.setName(currentRecipeJson.getString(NAME));\n // Get ingredients array\n JSONArray ingredientJsonArray = currentRecipeJson.getJSONArray(INGREDIENTS);\n // Create List to hold the recipe ingredients\n List<BakingIngredient> bakingIngredients = new ArrayList<>();\n // Retrieve ingredients\n for (int j = 0; j < ingredientJsonArray.length(); j++) {\n // Create a baking ingredient object to hold the ingredient data\n BakingIngredient bakingIngredient = new BakingIngredient();\n // Get the current json ingredient\n JSONObject currentIngredientJson = ingredientJsonArray.getJSONObject(j);\n // Get ingredient data\n bakingIngredient.setQuantity(currentIngredientJson.getDouble(QUANTITY));\n bakingIngredient.setMeasure(currentIngredientJson.getString(MEASURE));\n bakingIngredient.setIngredient(currentIngredientJson.getString(INGREDIENT));\n // Add recipe key to baking ingredient\n bakingIngredient.setRecipeKey(bakingRecipe.getId());\n // add ingredient to ingredients list\n bakingIngredients.add(bakingIngredient);\n }\n // Add ingredients list to baking recipe\n bakingRecipe.setIngredientList(bakingIngredients);\n // Get steps array\n JSONArray stepJsonArray = currentRecipeJson.getJSONArray(STEPS);\n // Create List to hold the recipe ingredients\n List<BakingStep> bakingSteps = new ArrayList<>();\n // Retrieve ingredients\n for (int j = 0; j < stepJsonArray.length(); j++) {\n // Create a baking step object to hold the step data\n BakingStep bakingStep = new BakingStep();\n // Get the current JSON step\n JSONObject currentStepJson = stepJsonArray.getJSONObject(j);\n // Get step data\n bakingStep.setId(currentStepJson.getInt(ID));\n bakingStep.setShortDescription(currentStepJson.getString(SHORT_DESCRIPTION));\n bakingStep.setDescription(currentStepJson.getString(DESCRIPTION));\n bakingStep.setVideoURL(currentStepJson.getString(VIDEO_URL));\n bakingStep.setThumbnailURL(currentStepJson.getString(THUMBNAIL_URL));\n // add recipe key to baking step\n bakingStep.setRecipeKey(bakingRecipe.getId());\n // add step to steps list\n bakingSteps.add(bakingStep);\n }\n // add steps list to baking recipe\n bakingRecipe.setStepList(bakingSteps);\n bakingRecipe.setServings(currentRecipeJson.getInt(SERVINGS));\n bakingRecipe.setImage(currentRecipeJson.getString(IMAGE));\n // add baking recipe to baking recipe list\n bakingRecipes.add(bakingRecipe);\n }\n // return completed recipe list\n return bakingRecipes;\n }", "@GetMapping(\"/jpa/users/{username}/recipes\")\n\tpublic List<Recipe> getAllRecipes(@PathVariable String username) {\n\t\t\n\t\treturn recipeJpaRepository.findByUsername(username);\n//\t\t\n\t\n\t\t\n\t}", "public List<Recipe> searchWithIngredients(String[] keywords, boolean searchLocally, \r\n \t\t\t\t\t\t\t\t\t boolean searchFromWeb) {\n \t\treturn model.searchRecipe(keywords);\r\n \t}", "@SuppressWarnings(\"unchecked\")\n\tpublic Collection<Book> findAll() {\n\t\treturn entityManager.createQuery(\"SELECT b FROM Book b\").getResultList();\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public List<RecipeEntity> getAllRecipe(long idUser)\n {\n return (List<RecipeEntity>)\n this.find(\"from RecipeEntity inner join UserEntity \" +\n \"where RecipeEntity.userByIdUser =:idUser\", idUser);\n }", "@java.lang.Override\n public io.grafeas.v1.RecipeOrBuilder getRecipeOrBuilder() {\n return recipe_ == null ? io.grafeas.v1.Recipe.getDefaultInstance() : recipe_;\n }", "public java.util.List<com.huqiwen.demo.book.model.Books> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public Recipe getRecipe() {\r\n return recipe;\r\n }", "public List <reclamation> findall(){\n\t\tList<reclamation> a = reclamationRepository.findAll();\n\t\t\n\t\tfor(reclamation reclamations : a)\n\t\t{\n\t\t\tL.info(\"reclamations :\"+ reclamations);\n\t\t\t\n\t\t}\n\t\treturn a;\n\t\t}", "Recipe getRecipe(CharSequence query);", "public int getNumRecipes()\n {\n return _recipes.size();\n }", "public List<Ingredient> readAllIngredients() {\n\t\tIngredientDataMapper idm = new IngredientDataMapper();\n\t\tList<Ingredient> allIngredients = new ArrayList<Ingredient>();\n\t\tallIngredients = idm.readAll();\n\t\treturn allIngredients;\n\t\t\n\t}", "public List<Recipe> search(String[] keywords, boolean searchLocally, boolean searchFromWeb) {\n \t\treturn model.searchRecipe(keywords);\r\n \t}", "@Test\n public void getAllRecipeIngredients_ReturnsList(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeIngredient> allIngredients = testDatabase.getAllRecipeIngredients(returned);\n assertNotEquals(\"getAllRecipeIngredients - Non-empty List Returned\", 0, allIngredients.size());\n }", "@Override\r\n\tpublic List<Book> find() {\n\t\treturn null;\r\n\t}", "private void checkRecipes() {\n\n for (Recipe recipe : this.recipeItems.values()) {\n List<String> requiredItems = new ArrayList<>(recipe.getRequiredItems());\n\n for (Item item : this.commonItems.values()) {\n requiredItems.remove(item.getName());\n }\n if (requiredItems.isEmpty()) {\n this.combineRecipe(recipe);\n break;\n }\n }\n }", "@Override\n\tpublic List<RecipeTable> list() {\n\t\treturn null;\n\t}", "@java.lang.Override\n public io.grafeas.v1.Recipe getRecipe() {\n return recipe_ == null ? io.grafeas.v1.Recipe.getDefaultInstance() : recipe_;\n }", "public Recipe getRecipe() {\n return recipe;\n }", "@Override\n\tpublic void initRecipes()\n\t{\n\n\t}", "static ArrayList<Ingredient> getIngredients() {\n\t\tArrayList<Ingredient> Ingredients = new ArrayList<Ingredient>();\n\t\tfor (Recipe rec : Recipes) {\n\t\t\tfor (String ing : rec.Ingredients) {\n\t\t\t\taddIngredient(Ingredients, ing);\n\t\t\t}\n\t\t}\n\t\treturn Ingredients;\n\t}", "@Override\n\tpublic List<?> getRecipeList() {\n\t\treturn null;\n\t}", "public ArrayList<Recipe> getDatabase(){\n return recipes;\n }", "public void setRelatedRecipes(List<Recipe> relatedRecipes) {\r\n this.relatedRecipes = relatedRecipes;\r\n }", "public Cursor loadRecipe(int id){\r\n Cursor c = db.query(recipes.TABLENAME, new String[]{recipes.TITLE, recipes.IMAGE, recipes.INGREDIENTS, recipes.STEPS, recipes.TYPE, recipes.TIME, recipes.PEOPLE, recipes.IDRECIPE}, recipes.IDRECIPE + \"=\" + id, null, null, null, null);\r\n if (c != null) c.moveToFirst();\r\n return c;\r\n }", "public Iterator getBooks() {\r\n return books.iterator();\r\n }", "@Override\r\n\tpublic List<Book> getBooks() {\n\t\treturn bd.findAll();\r\n\t}", "public List<Cosa> findAllBooks() {\r\n\t\tList<Cosa> cosas = (List<Cosa>) jdbcTemplate.query(\r\n\t\t\t\t\"select * from persone\", new CosaRowMapper());\r\n\t\treturn cosas;\r\n\t}", "public static List<RecipeItemSelector> getRequireItemsFromRecipe(IRecipe recipe){\n\t\tif(recipe instanceof ShapelessRecipes){\n\t\t\tList<ItemStack> isList = ((ShapelessRecipes)recipe).recipeItems;\n\t\t\treturn isList.stream().map(input -> RecipeItemSelector.of(input, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapedRecipes){\n\t\t\tItemStack[] isarray = ((ShapedRecipes)recipe).recipeItems;\n\n\t\t\treturn Lists.<ItemStack>newArrayList(isarray).stream().map( is ->RecipeItemSelector.of(is, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapelessOreRecipe){\n\n\n\n\t\t\tList<RecipeItemSelector> list1 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof ItemStack)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of((ItemStack)obj, null)).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> list2 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof String)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of(null, new OreDict((String)obj))).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\trt.addAll(list1);\n\t\t\trt.addAll(list2);\n\t\t\treturn rt;\n\n\t\t}\n\t\tif(recipe instanceof ShapedOreRecipe){\n\t\t\tObject[] isarray = ((ShapedOreRecipe)recipe).getInput();\n\t\t\tList<Object> objList = Lists.newArrayList(isarray);\n\t\t\tobjList.stream().flatMap(obj ->{\n\t\t\t\t//\t\t\t\t\tUnsagaMod.logger.trace(\"recipe\", input.getClass());\n\t\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\t\tif(obj instanceof List){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"array\");\n\t\t\t\t\trt.addAll(convertListTypeObject(obj));\n\t\t\t\t}\n\t\t\t\tif(obj instanceof ItemStack){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"itemstack\");\n\t\t\t\t\tList<RecipeItemSelector> list = Lists.newArrayList(RecipeItemSelector.of((ItemStack)obj, null));\n\t\t\t\t\trt.addAll(list);\n\t\t\t\t}\n\n\t\t\t\t//\t\t\t\t\tif(objs!=null){\n\t\t\t\t//\t\t\t\t\t\tObject[] objarray = (Object[]) objs;\n\t\t\t\t//\t\t\t\t\t\treturn ListHelper.stream(objarray).map(new Function<Object,Tuple<ItemStack,OreDict>>(){\n\t\t\t\t//\n\t\t\t\t//\t\t\t\t\t\t\t@Override\n\t\t\t\t//\t\t\t\t\t\t\tpublic Tuple<ItemStack, OreDict> apply(Object input) {\n\t\t\t\t//\t\t\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", input);\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof ItemStack){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of((ItemStack)input,null);\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof String){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of(null, new OreDict((String) input));\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t//\t\t\t\t\t\t\t}}\n\t\t\t\t//\t\t\t\t\t\t).getList();\n\t\t\t\t//\t\t\t\t\t}\n\n\t\t\t\treturn rt.stream();\n\t\t\t});\n\t\t}\n\t\tHSLib.logger.trace(\"recipeutil\", \"どのレシピにも合致しない?\");\n\t\treturn Lists.newArrayList();\n\t}", "public ArrayList<Book> search(String part){ \n this.searchBooks = new ArrayList<Book>();\n this.numberedListOfSearch = new HashMap<Integer, Book>();\n if (part.length()>=4){\n //Adding all the searching books into an ArrayList<Book>\n //No duplicating for books having the same title\n boolean bookExist = false;\n for (Book book : this.libraryBooks){\n if ((book.getTitle().toLowerCase().contains(part.toLowerCase())) || (book.getAuthor().toLowerCase().contains(part.toLowerCase()))){\n //Check whether any books having the same title in the list\n for (Book bookSearch : this.searchBooks){\n if (bookSearch.getTitle().equals(book.getTitle())){\n bookExist = true;\n break;\n }\n }\n //If none!\n if(!bookExist){\n this.searchBooks.add(book);\n }\n }\n bookExist = false;\n }\n //To put into a numbered list for printing\n //No duplicating for books having the same title\n for (int i =0; i < (this.searchBooks.size());i++){\n // put the book in the HashMap for printing \n this.numberedListOfSearch.put(i+1, this.searchBooks.get(i));\n }\n\n //To print out\n this.println(\"The searching process has finished!\");\n String researchBooks=\"\";\n //check whether the numbered list is empty or not\n if(this.numberedListOfSearch.size() >0){\n researchBooks += \"{\";\n for (int i = 0; i < this.numberedListOfSearch.size();i++){\n researchBooks += (i+1);\n researchBooks += \": \";\n researchBooks += this.numberedListOfSearch.get(i+1).toString();\n researchBooks += \"; \";\n }\n researchBooks = researchBooks.substring(0, researchBooks.length()-2);\n researchBooks += \"}\"; \n }\n //if the numbered list is empty\n else if ( this.numberedListOfSearch.size() == 0){\n researchBooks += \"Nothing found!\";\n }\n this.println(researchBooks);\n }\n\n //If not enough input key words!\n else{\n this.println(\"Please enter more key words! At least four!!\");\n }\n return this.searchBooks;\n }", "public List<Book> findAll()\r\n\t{\r\n\t\tList<Book> booklist= null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSession();\r\n\t\t booklist=bookdao.findAll();\r\n\t\t\tbookdao.closeCurrentSession();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn booklist;\r\n\t}", "public Recipe findByIdRecipe(int id) {\n\t\tSession session = sessionFactory.openSession();\n\t\treturn (Recipe) session.get(Recipe.class, id);\n\t}", "public static ArrayList<Meal> findAll() throws ServletException {\n try{\n //Connect to Database\n Connection con = DatabaseAccess.getConnection();\n //Get all data from exercise Table \n PreparedStatement ps = con.prepareStatement(\n \"SELECT * FROM meal\");\n \n ResultSet result = ps.executeQuery();//Run statement\n ArrayList<Meal> mealList = new ArrayList<>(); \n //If we find Meal set create a new Meal using returned values\n while(result.next()){\n Meal meal = new Meal(result.getInt(\"id\"),\n result.getString(\"name\"),\n result.getInt(\"calperUnit\"));\n mealList.add(meal);\n }\n \n con.close(); //Close Connection\n return mealList;\n }catch (SQLException ex) {\n throw new ServletException(\"Find Problem: Searching for Meal \", ex);\n }\n }", "public Recipe findRecipeDetails(String selectedRecipeName){\r\n for (int i = 0; i < listOfRecipes.size(); i++) {\r\n if (listOfRecipes.get(i).getRecipeName().equals(selectedRecipeName)) {\r\n Recipe recipeToAdjust = listOfRecipes.get(i);\r\n printAdjustedRecipeDetails(recipeToAdjust);\r\n }\r\n }\r\n return recipeToAdjust;\r\n }", "public Recipe getRecipeAt(Long id) {\r\n \t\tfor (Recipe recipe : recipeList)\r\n \t\t\tif (recipe.getId() == id)\r\n \t\t\t\treturn recipe;\r\n \t\treturn null;\r\n \t}", "public String matchIngredientsToRecipes() {\n String query = \"SELECT DISTINCT r.id, r.name, count(RecipeID) AS count FROM recipes AS r JOIN ingredientamount AS i ON r.id = i.RecipeID where i.IngredientID IN (\";\n\n for (int i = 0; i < selectedIngredients.size(); i++) {\n if (i != 0) {\n query = query + \",\";\n }\n query = query + selectedIngredients.get(i);\n }\n query = query + \") GROUP BY RecipeID\";\n return query;\n }", "public List<Book> getAllBooks(){\n\t\treturn this.bRepo.findAll();\n\t}", "Collection<Book> getAll();", "@RequestMapping(\"/indexRecipe\")\r\n\tpublic ModelAndView listRecipes() {\r\n\t\tModelAndView mav = new ModelAndView();\r\n\r\n\t\tmav.addObject(\"recipes\", recipeService.loadRecipes());\r\n\r\n\t\tmav.setViewName(\"recipe/listRecipes.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}", "public List<Word> search(final Section section) {\n return DICTIONARY.parallelStream()\n .filter(word -> BusinessLogic.IS_EQUAL_LENGTH.apply(word.getNumber(), section.getDigits()))\n .filter(word -> BusinessLogic.IS_EQUAL_HASH.apply(word.getNumber(), section.getDigits()))\n .filter(word -> BusinessLogic.IS_EQUAL_DIGITS.apply(word.getNumber(), section.getDigits()))\n .collect(Collectors.toList());\n }", "public ArrayList<Book> findFantasy() {\n ArrayList<Book> fantasyBook = new ArrayList<>();\n for (Book book : bookList) {\n if (book.getGenre().equals(BookGenres.FANTASY)) {\n fantasyBook.add(book);\n }\n }\n return fantasyBook;\n }", "public ArrayList<String> recipeNameList(){\n\t\t\n\t\tLog.d(TAG, \"Create list of recipe names\");\n\t\t\n\t\t//Temp variable to hold the recipe names\n\t\tArrayList<String> recipeNames = new ArrayList<String>();\n\t\t\n\t\t//Iterator for moving through the recipe list\n\t\tIterator<Recipe> iterator = RECIPES.iterator();\n\t\t\n\t\t// Gather the names of all of the recipes\n\t\twhile(iterator.hasNext()){\n\t\t\trecipeNames.add(((Recipe) iterator.next()).getName());\n\t\t}\n\t\t\n\t\t// If the recipe box is empty return null\n\t\tif (recipeNames.size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Return the ArrayList of recipe names\n\t\treturn recipeNames;\n\t}", "public Recipe getRecipe(){\n\t\tRecipe recipe = new Recipe();\n\t\trecipe.setName(name);\n\t\trecipe.setNumPersons(numPersons);\n\t\trecipe.setPrepTime(prepTime);\n\t\trecipe.setRestTime(restTime);\n\t\trecipe.setCookingTime(cookingTime);\n\t\tHashMap<Ingredient, Quantity> ingredients = new HashMap<Ingredient,Quantity>();\n\t\tfor(int i = 0; i<ingredientsList.size(); i++){\n\t\t\tingredients.put(ingredientsList.get(i), quantities.get(i));\n\t\t}\n\t\trecipe.setIngredients(ingredients);\n\t\trecipe.setSteps(steps);\n\t\treturn recipe;\n\t}", "long getRecipesCount();", "private void createRecipeFromFile() {\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n\n // Filter to only show results that can be \"opened\", such as a\n // file (as opposed to a list of contacts or timezones)\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n\n // Filter to show only images, using the image MIME data type.\n // If one wanted to search for ogg vorbis files, the type would be \"audio/ogg\".\n // To search for all documents available via installed storage providers,\n // it would be \"*/*\".\n intent.setType(\"*/*\");\n\n startActivityForResult(intent, READ_REQUEST_CODE);\n }", "List<Book> findBooksByName(String name);", "@Test\n public void getAllRecipeCategories_ReturnsList(){\n int returned = testDatabase.addRecipe(testRecipe);\n ArrayList<RecipeCategory> allCategories = testDatabase.getAllRecipeCategories(returned);\n assertNotEquals(\"getAllRecipeCategories - Non-empty List Returned\", 0, allCategories.size());\n }", "@Test\n public void ShouldFindbyCategory() {\n Recipe curry = new Recipe();\n curry.setCategory(\"curry\");\n Recipe curryOne = new Recipe();\n curryOne.setCategory(\"curry\");\n Recipe breakfast = new Recipe();\n breakfast.setCategory(\"breakfast\");\n recipesRepository.save(curry);\n recipesRepository.save(curryOne);\n recipesRepository.save(breakfast);\n\n // When I check for curries\n List<Recipe> curries = recipesRepository.findByCategory(\"curry\");\n\n // Then only curries are returned\n assertThat(curries).containsExactly(curry, curryOne);\n }", "@Override\n public void setupRecipes()\n {\n\n }", "Iterable<T> findAll();", "public static void main(String[] args) {\n Recipe recipe ;\n Scanner keyboard= new Scanner (System.in);\n ArrayList<Recipe> recipeArrayList= new ArrayList<> ();\n ArrayList<String> ingridetList= new ArrayList<>();\n ArrayList<String>directionsList= new ArrayList<>();\n String answer;\n\n do{\n recipe = new Recipe ();\n System.out.println (\"Enter the ingredient :\" );\n recipe.setIngredients ( keyboard.nextLine () );\n\n\n\n\n System.out.println (\"Do you want to add more ingredients?(yes/no)\" );\n answer=keyboard.nextLine ();\n ingridetList.add(recipe.getIngredients());\n recipe.setArrayIngredients(ingridetList);\n\n }while(answer.equalsIgnoreCase ( \"yes\" )||!answer.equalsIgnoreCase ( \"no\" ));\n\n\n\n System.out.println (\"Enter the directions for the ingredients: \" );\n recipe.setDirections ( keyboard.nextLine () );\n // directionsList.add(recipe.getIngredients());\n\n\n\n recipeArrayList.add ( recipe );\n\n for(Recipe recipe1:recipeArrayList) {\n\n\n for(String ingRec: recipe1.getArrayIngredients())\n {\n System.out.println ( \"The Ingredients is : \" + ingRec );\n }\n System.out.println (\"The Directions is : \" + recipe1.getDirections () );\n }\n\n }", "List<Book> getAllBooks();" ]
[ "0.7231841", "0.697912", "0.67114645", "0.6669858", "0.6596396", "0.6521248", "0.6482644", "0.64347273", "0.621808", "0.6176863", "0.6125467", "0.6109769", "0.6081932", "0.6063135", "0.6017935", "0.5932287", "0.589722", "0.58833015", "0.5870138", "0.58576816", "0.5851068", "0.5839808", "0.5768111", "0.5762677", "0.57500035", "0.57393056", "0.57191885", "0.5705684", "0.5704226", "0.5686615", "0.56728834", "0.56552386", "0.5649777", "0.5646312", "0.5639386", "0.5624959", "0.56212187", "0.5614967", "0.5602803", "0.5601913", "0.5600013", "0.55971366", "0.5552598", "0.55504775", "0.5546758", "0.55407435", "0.5527275", "0.5510147", "0.55003685", "0.5490879", "0.5486485", "0.5453958", "0.54370415", "0.540027", "0.5397738", "0.5392179", "0.53840816", "0.5377083", "0.537098", "0.53649586", "0.5363932", "0.5363702", "0.53626", "0.53555363", "0.53513664", "0.534887", "0.53307927", "0.5329085", "0.5324637", "0.53233826", "0.5319461", "0.53115827", "0.5308405", "0.5304515", "0.53010905", "0.52867466", "0.5284579", "0.5275287", "0.52719253", "0.5243806", "0.52433574", "0.524195", "0.5231001", "0.5215725", "0.52112037", "0.5210716", "0.5190761", "0.51819086", "0.51678336", "0.5157408", "0.5133823", "0.51336676", "0.512972", "0.5125854", "0.5122243", "0.5117396", "0.5114743", "0.51038337", "0.5100411", "0.5094377" ]
0.6395612
8
Se inicia la webcam
@Override public void run() { panel.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startStreaming() {\n// phoneCam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.SIDEWAYS_RIGHT);\n }", "public void startFrontCam() {\n }", "private native void iniciarCamara(int idCamera);", "public void openCamera() {\n \n\n }", "public Vision() {\n\n visionCam = CameraServer.getInstance().startAutomaticCapture(\"HatchCam\", 0);\n visionCam.setVideoMode(PixelFormat.kMJPEG, 320, 240, 115200);\n \n int retry = 0;\n while(cam == null && retry < 10) {\n try {\n System.out.println(\"Connecting to jevois serial port ...\");\n cam = new SerialPort(115200, SerialPort.Port.kUSB1);\n System.out.println(\"Success!!!\");\n } catch (Exception e) {\n System.out.println(\"We all shook out\");\n e.printStackTrace();\n sleep(500);\n System.out.println(\"Retry\" + Integer.toString(retry));\n retry++;\n }\n }\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "@FXML\r\n protected void startCamera() {\r\n // set a fixed width for the frame\r\n this.currentFrame.setFitWidth(600);\r\n // preserve image ratio\r\n this.currentFrame.setPreserveRatio(true);\r\n\r\n if (!this.cameraActive) {\r\n\r\n // start the video capture\r\n //this.capture.open(0);\r\n //Read the video (Chage video)\r\n this.capture.open(\"Faruri.m4v\");\r\n\r\n\r\n System.out.println(\"start capture...\");\r\n // is the video stream available?\r\n if (this.capture.isOpened()) {\r\n System.out.println(\"inif\");\r\n this.cameraActive = true;\r\n\r\n // grab a frame every 33 ms (30 frames/sec)\r\n Runnable frameGrabber = new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // effectively grab and process a single frame\r\n Mat frame = grabFrame();\r\n\r\n//\t\t\t\t\t\t// convert and show the frame\r\n//\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\r\n//\t\t\t\t\t\tupdateImageView(currentFrame, imageToShow);\r\n }\r\n };\r\n\r\n this.timer = Executors.newSingleThreadScheduledExecutor();\r\n this.timer.scheduleAtFixedRate(frameGrabber, 0, 33, TimeUnit.MILLISECONDS);\r\n\r\n // update the button content\r\n this.button.setText(\"Stop Video\");\r\n } else {\r\n // log the error\r\n System.err.println(\"Impossible to open the video...\");\r\n }\r\n } else {\r\n // the camera is not active at this point\r\n this.cameraActive = false;\r\n // update again the button content\r\n this.button.setText(\"Start Video\");\r\n\r\n // stop the timer\r\n this.stopAcquisition();\r\n }\r\n }", "public void camera(){\n System.out.println(\"I am taking pictures...\");\r\n }", "public void enableVideoCapture(boolean enable);", "public void updateCam()\r\n {\n \ttry{\r\n \tSystem.out.println();\r\n \tNIVision.IMAQdxGrab(curCam, frame, 1);\r\n \tif(curCam == camCenter){\r\n \t\tNIVision.imaqDrawLineOnImage(frame, frame, NIVision.DrawMode.DRAW_VALUE, new Point(320, 0), new Point(320, 480), 120);\r\n \t}\r\n server.setImage(frame);}\n \tcatch(Exception e){}\r\n }", "public void doVideoCapture() {\n /*\n r6 = this;\n r0 = r6.mPaused;\n if (r0 != 0) goto L_0x0043;\n L_0x0004:\n r0 = r6.mCameraDevice;\n if (r0 != 0) goto L_0x0009;\n L_0x0008:\n goto L_0x0043;\n L_0x0009:\n r0 = r6.mMediaRecorderRecording;\n if (r0 == 0) goto L_0x0042;\n L_0x000d:\n r0 = r6.mNeedGLRender;\n if (r0 == 0) goto L_0x0029;\n L_0x0011:\n r0 = r6.isSupportEffects();\n if (r0 == 0) goto L_0x0029;\n L_0x0017:\n r0 = r6.mCameraDevice;\n r1 = 0;\n r0.enableShutterSound(r1);\n r0 = r6.mAppController;\n r0 = r0.getCameraAppUI();\n r1 = r6.mPictureTaken;\n r0.takePicture(r1);\n goto L_0x0041;\n L_0x0029:\n r0 = r6.mSnapshotInProgress;\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = java.lang.System.currentTimeMillis();\n r2 = r6.mLastTakePictureTime;\n r2 = r0 - r2;\n r4 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r2 >= 0) goto L_0x003c;\n L_0x003b:\n return;\n L_0x003c:\n r6.mLastTakePictureTime = r0;\n r6.takeASnapshot();\n L_0x0041:\n return;\n L_0x0042:\n return;\n L_0x0043:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.hmdglobal.app.camera.VideoModule.doVideoCapture():void\");\n }", "private void takePicture() {\n\n captureStillPicture();\n }", "public void run(){\n\t\tWebcam webcam = Webcam.getDefault();\n webcam.setViewSize(new Dimension(176,144));\n\t\t//webcam.setViewSize(WebcamResolution.VGA.getSize());\n webcam.open();\n isRunning=true;\n try\n {\n ss=new ServerSocket(1088);\n s=ss.accept();\n OutputStream os=s.getOutputStream();\n System.out.println(\"Client connected!\");\n while(isRunning)\n {\n BufferedImage image = webcam.getImage();\n //java.io.BufferedOutputStream bo=new BufferedOutputStream(s.getOutputStream());\n //ObjectOutputStream oo=new ObjectOutputStream(s.getOutputStream());\n //oo.writeObject(image);\n //oo.flush();\n //System.out.println(\"An image was sent!\");\n \n ImageIO.write(image, \"PNG\", os);\n os.flush();\n p.getGraphics().drawImage(image, 0, 0,null);\n Thread.sleep(100);\n }\n \n } catch (Exception ex){}\n\t}", "public void startCamera()\n \t{\n\t\t// start the video capture\n\t\t//this.capture.open(0);\n\t\tcapture.open(cameraNumber);\n\n\n\n\t\t// is the video stream available?\n\t\tif (capture.isOpened())\n\t\t{\n\t\t\t// grab a frame every 33 ms (30 frames/sec)\n\t\t\tRunnable frameGrabber = new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tgrabFrame();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\ttimer = Executors.newSingleThreadScheduledExecutor();\n\t\t\ttimer.scheduleAtFixedRate(frameGrabber, 0, 500, TimeUnit.MILLISECONDS);\n\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// log the error\n\t\t\tSystem.err.println(\"Impossible to open the camera connection...\");\n\t\t}\n \t}", "public void startCamera() throws SQLException {\n\n\t\tif (!database.init()) {\n\n\t\t\tgui.putOnLog(\"Error: Database Connection Failed ! \");\n\t\t} else {\n\t\t\tisDBready = true;\n\t\t\tgui.putOnLog(\"Success: Database Connection Succesful ! \");\n\t\t}\n\n\t\t// *******************************************************************************************\n\n\t\tif (isDBready) {\n\t\t\tgui.getRecogniseBtn().setEnabled(true);\n\t\t\tgui.getSaveBtn().setEnabled(true);\n\t\t}\n\n\t\tfillListOfFaceImages();\n\n\t\tif (FOLDER.isDirectory()) {\n\t\t\tfor (final File f : FOLDER.listFiles()) {\n\t\t\t\tBufferedImage img = null;\n\t\t\t\ttry {\n\t\t\t\t\timg = ImageIO.read(f);\n\t\t\t\t\tImageIcon imageIcon = new ImageIcon(img);\n\t\t\t\t\tImage image = imageIcon.getImage();\n\t\t\t\t\tImage newimg = image.getScaledInstance(80, 80, java.awt.Image.SCALE_SMOOTH);\n\t\t\t\t\timageIcon = new ImageIcon(newimg);\n\t\t\t\t\tJLabel label = new JLabel(imageIcon);\n\t\t\t\t\tgui.tile.add(label);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tgui.putOnLog(\"Real Time WebCam Stream Started !\");\n\t\ttheFaceDetector.start();\n\t\t// **********************************************************************************************\n\t}", "public void handleIncomingVideo(BufferedImage buff){\n if(buff != null && systemOn){\n Graphics g=this.cameraPanel.getGraphics();\n g.drawImage(buff, 0, 0, this.cameraPanel.getWidth(), this.cameraPanel.getHeight() -150 , 0, 0, buff.getWidth(), buff.getHeight(), null);\n }\n else if (this.systemOn == false){\n this.cameraPanel.repaint();\n }\n }", "void onCaptureStart();", "public void onCamera();", "public void init(HardwareMap hwMap){\n int cameraMonitorViewID = hwMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hwMap.appContext.getPackageName());\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK,cameraMonitorViewID);\n phoneCam.openCameraDevice();\n phoneCam.setPipeline(counter);\n phoneCam.openCameraDeviceAsync(new OpenCvCamera.AsyncCameraOpenListener()\n {\n @Override\n public void onOpened()\n {\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.UPRIGHT);\n }\n });\n }", "@Override\n\tpublic void webcamOpen(WebcamEvent we) {\n\t\tif (updater == null) {\n\t\t\tupdater = new ImageUpdater();\n\t\t\tupdater.start();\n\t\t}\n\n\t\t// copy size from webcam only if default size has not been provided\n\t\tif (size == null) {\n\t\t\tDimension resolution = webcam.getViewSize();\n\t\t\tsetSize(resolution.width, resolution.height);\n\t\t}\n\t}", "private void runMainLoop() {\n\n ImageProcessor imageViewer = new ImageProcessor();\n Mat webcamMatImage = new Mat();\n Image tempImage;\n\n //VideoCapture capture = new VideoCapture(0); // Capture from web cam\n VideoCapture capture = new VideoCapture(\"rtsp://192.168.2.64/Streaming/Channels/101\"); // Capture from IP Camera\n //VideoCapture capture = new VideoCapture(\"src/main/resources/videos/192.168.2.64_20160804140448.avi\"); // Capture avi file\n\n // Setting camera resolution\n capture.set(Videoio.CAP_PROP_FRAME_WIDTH, 800);\n capture.set(Videoio.CAP_PROP_FRAME_HEIGHT, 600);\n\n if (capture.isOpened()) { // Check whether the camera is instantiated\n while (true) { // Retrieve each captured frame in a loop\n capture.read(webcamMatImage);\n if (!webcamMatImage.empty()) {\n tempImage = imageViewer.toBufferedImage(webcamMatImage);\n ImageIcon imageIcon = new ImageIcon(tempImage, \"Captured Video\");\n imageLabel.setIcon(imageIcon);\n frame.pack(); // This will resize the window to fit the image\n } else {\n System.out.println(\" -- Frame not captured or the video has finished! -- Break!\");\n break;\n }\n }\n } else {\n System.out.println(\"Couldn't open capture.\");\n }\n }", "public void prepareVisionProcessing(){\n usbCamera = CameraServer.getInstance().startAutomaticCapture();\n /*\n MjpegServer mjpegServer1 = new MjpegServer(\"serve_USB Camera 0\", 1181);\n mjpegServer1.setSource(usbCamera);\n\n // Creates the CvSink and connects it to the UsbCamera\n CvSink cvSink = new CvSink(\"opencv_USB Camera 0\");\n cvSink.setSource(usbCamera);\n\n // Creates the CvSource and MjpegServer [2] and connects them\n CvSource outputStream = new CvSource(\"Blur\", PixelFormat.kMJPEG, 640, 480, 30);\n MjpegServer mjpegServer2 = new MjpegServer(\"serve_Blur\", 1182);\n mjpegServer2.setSource(outputStream);\n */\n }", "@Override\n public void openVideoCapture(Map<String, Object> parameters) throws Exception {\n checkNotNull(camera, \"Camera required\");\n ImageView viewCamera = checkNotNull((ImageView) parameters.get(\"viewCamera\"),\n \"Camera's ImageView required\");\n\n videoCapture.open(camera.getWebCamIndex());\n\n videoCapture.set(3, camera.getWidth());\n videoCapture.set(4, camera.getHeight());\n\n Runnable frameGrabber = () -> viewCamera.setImage(grabFrame(new HashMap<>()));\n timer = Executors.newSingleThreadScheduledExecutor();\n timer.scheduleAtFixedRate(frameGrabber, 0, 33, TimeUnit.MICROSECONDS);\n }", "public void startCamera()\n {\n startCamera(null);\n }", "public void start(String name, String ip) {\r\n\t\tnew Thread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\r\n\t\t\t\t// Camera setup code\r\n\t\t\t\tcam = CameraServer.getInstance().addAxisCamera(name, ip);\r\n\t\t\t\tcam.setBrightness(0);\r\n\t\t\t\tcam.setWhiteBalanceHoldCurrent();\r\n\t\t\t\tcam.setExposureHoldCurrent();\r\n\t\t\t\tcam.setResolution(320, 240);\r\n\t\t\t\tsink = CameraServer.getInstance().getVideo();\r\n\t\t\t\toutputStream = CameraServer.getInstance().putVideo(\"Post Porkcessing\", 320, 240);\r\n\t\t\t\tsecondaryOutput = CameraServer.getInstance().putVideo(\"Post Porkcessing 2: Electric Boogaloo\", 320,\r\n\t\t\t\t\t\t240);\r\n\t\t\t\t// tertiaryOutput = CameraServer.getInstance().putVideo(\"Post\r\n\t\t\t\t// Porkcessing 3: Finalmente\", 320, 240);\r\n\t\t\t\t// When using a Mat object, you must first create an empty\r\n\t\t\t\t// object of it before doing anything.\r\n\t\t\t\tcurrentPureFrame = new Mat();\r\n\t\t\t\tpostProcessingFrame = new Mat();\r\n\t\t\t\tArrayList<MatOfPoint> contours = new ArrayList<>();\r\n\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\t// This is where the image processing code goes.\r\n\t\t\t\t\tif (process) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Acquires the current frame from the camera\r\n\t\t\t\t\t\tsink.grabFrame(currentPureFrame);\r\n\t\t\t\t\t\tdouble[] color = currentPureFrame.get(120, 160);\r\n\t\t\t\t\t\tif (OI.mainJoy.getRawButton(1))\r\n\t\t\t\t\t\t\tSystem.out.println(color[0] + \" : \" + color[1] + \" : \" + color[2]);\r\n\t\t\t\t\t\tpostProcessingFrame = currentPureFrame;\r\n\t\t\t\t\t\t// cam.setExposureManual(20);\r\n\t\t\t\t\t\t// cam.setBrightness(80);\r\n\t\t\t\t\t\t// cam.setWhiteBalanceManual(50);\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Basic theory: Go! After acquiring the image, you\r\n\t\t\t\t\t\t * first must filter by color. Call the\r\n\t\t\t\t\t\t * Imgproc.inRange() function and supply a minimum HSV\r\n\t\t\t\t\t\t * and maximum HSV. This will return a 'binary' image.\r\n\t\t\t\t\t\t * With this image, we can detect contours(basically\r\n\t\t\t\t\t\t * shapes). Then, we can find the bounding box of each\r\n\t\t\t\t\t\t * individual contour and filter accordingly.\r\n\t\t\t\t\t\t * \r\n\t\t\t\t\t\t * range was 70, 120, 120 to 100, 255, 255\r\n\t\t\t\t\t\t * \r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tif (!OI.mainJoy.getRawButton(8)) { // TODO: ID THIS\r\n\t\t\t\t\t\t\tcam.setBrightness(20);\r\n\t\t\t\t\t\t\tcam.setWhiteBalanceHoldCurrent();\r\n\t\t\t\t\t\t\tcam.setExposureHoldCurrent();\r\n\t\t\t\t\t\t\t// Imgproc.blur(postProcessingFrame,\r\n\t\t\t\t\t\t\t// postProcessingFrame, new Size(1, 1)); //:100:\r\n\t\t\t\t\t\t\t// :+1: :100:\r\n\r\n\t\t\t\t\t\t\t// Core.inRange(postProcessingFrame, new Scalar(70,\r\n\t\t\t\t\t\t\t// 150, 0), new Scalar(390, 360, 360),\r\n\t\t\t\t\t\t\t// postProcessingFrame);\r\n\t\t\t\t\t\t\t// cam.setExposureHoldCurrent();\r\n\t\t\t\t\t\t\t// cam.setWhiteBalanceHoldCurrent();\r\n\t\t\t\t\t\t\tMat copy = postProcessingFrame.clone();\r\n\r\n\t\t\t\t\t\t\tImgproc.cvtColor(copy, copy, Imgproc.COLOR_BGR2GRAY);\r\n\t\t\t\t\t\t\tImgproc.cvtColor(postProcessingFrame, postProcessingFrame, Imgproc.COLOR_BGR2RGB);\r\n\t\t\t\t\t\t\tCore.inRange(postProcessingFrame, new Scalar(0, 80, 40), new Scalar(100, 180, 180),\r\n\t\t\t\t\t\t\t\t\tpostProcessingFrame);\r\n\t\t\t\t\t\t\tImgproc.blur(copy, copy, new Size(2, 2));\r\n\t\t\t\t\t\t\tImgproc.threshold(copy, copy, 40, 255, Imgproc.THRESH_BINARY);\r\n\t\t\t\t\t\t\tMat and = copy.clone();\r\n\t\t\t\t\t\t\tCore.bitwise_and(copy, postProcessingFrame, and);\r\n\t\t\t\t\t\t\tImgproc.cvtColor(postProcessingFrame, postProcessingFrame, Imgproc.COLOR_GRAY2BGR);\r\n\r\n\t\t\t\t\t\t\t// SmartDashboard.putNumber(\"Contours\",\r\n\t\t\t\t\t\t\t// contours.size());\r\n\t\t\t\t\t\t\tint[] i = new int[5];\r\n\t\t\t\t\t\t\tsecondaryOutput.putFrame(postProcessingFrame);\r\n\t\t\t\t\t\t\tImgproc.findContours(and, contours, new Mat(), Imgproc.RETR_LIST,\r\n\t\t\t\t\t\t\t\t\tImgproc.CHAIN_APPROX_SIMPLE);\r\n\t\t\t\t\t\t\tint largestID = 0;\r\n\t\t\t\t\t\t\tdouble xs[] = new double[] { 0, 0 };\r\n\t\t\t\t\t\t\tif (contours.size() > 0) {\r\n\t\t\t\t\t\t\t\tlargestID = findLargestContour(contours);\r\n\t\t\t\t\t\t\t\tdouble[] XY = findXY(contours.get(largestID));\r\n\t\t\t\t\t\t\t\txs[0] = XY[0];\r\n\r\n\t\t\t\t\t\t\t\tImgproc.cvtColor(and, and, Imgproc.COLOR_GRAY2BGR);\r\n\t\t\t\t\t\t\t\tImgproc.drawContours(and, contours, findLargestContour(contours),\r\n\t\t\t\t\t\t\t\t\t\tnew Scalar(200, 100, 200));\r\n\r\n\t\t\t\t\t\t\t\tImgproc.drawMarker(and, new Point(XY[0] + 320 / 2, XY[1]),\r\n\r\n\t\t\t\t\t\t\t\t\t\tnew Scalar(Math.random() * 255, Math.random() * 255, Math.random() * 255));\r\n\t\t\t\t\t\t\t\t// contours.clear();\r\n\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"Largest width\",\r\n\t\t\t\t\t\t\t\t\t\tImgproc.boundingRect(contours.get(largestID)).width);\r\n\t\t\t\t\t\t\t\tRect r = Imgproc.boundingRect(contours.get(largestID));\r\n\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"Ratio\", (((double) r.height) / ((double) r.width)));\r\n\t\t\t\t\t\t\t\tif (contours.size() > 1) {\r\n\t\t\t\t\t\t\t\t\tcontours.remove(largestID);\r\n\t\t\t\t\t\t\t\t\tlargestID = findLargestContour(contours);\r\n\t\t\t\t\t\t\t\t\tXY = findXY(contours.get(largestID));\r\n\t\t\t\t\t\t\t\t\txs[1] = XY[0];\r\n\t\t\t\t\t\t\t\t\tImgproc.drawContours(and, contours, findLargestContour(contours),\r\n\t\t\t\t\t\t\t\t\t\t\tnew Scalar(200, 100, 200));\r\n\r\n\t\t\t\t\t\t\t\t\tImgproc.drawMarker(and, new Point(XY[0] + 320 / 2, XY[1]),\r\n\t\t\t\t\t\t\t\t\t\t\tnew Scalar(Math.random() * 255, Math.random() * 255, Math.random() * 255));\r\n\t\t\t\t\t\t\t\t\tsetAngleOff(((xs[0] + xs[1]) / 2) * degreesPerPixel);\r\n\t\t\t\t\t\t\t\t\tsetDistanceOff((xs[0] + xs[1]) / 2);\r\n\r\n\t\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"X degrees off\", ((xs[0] + xs[1]) / 2) * degreesPerPixel);\r\n\t\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"Distance Relative\", Math.abs(xs[0] - xs[1]));\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tsetAngleOff(0);\r\n\t\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"X degrees off\", 0);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tsetAngleOff(0);\r\n\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"X degrees off\", 0);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\toutputStream.putFrame(and);\r\n\t\t\t\t\t\t\tcontours.clear();\r\n\t\t\t\t\t\t\tand.release();\r\n\t\t\t\t\t\t\tcopy.release();\r\n\t\t\t\t\t\t\tpostProcessingFrame.release();\r\n\t\t\t\t\t\t\tcurrentPureFrame.release();\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// TODO:DO CAMERA STUFF\r\n\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}).start();\r\n\r\n\t}", "void cameraInOperation(boolean in_operation, boolean is_video);", "public void recordVideo() {\n\n }", "@FXML\r\n protected void startCamera(Event event)\r\n {\n if (this.rootElement != null)\r\n {\r\n // get the ImageView object for showing the video stream\r\n final ImageView frameView = currentFrame;\r\n final BorderPane root = (BorderPane) this.rootElement;\r\n // check if the capture stream is opened\r\n if (!this.capture.isOpened())\r\n {\r\n \t\tSystem.out.println(\"Starting Camera ...\");\r\n // start the video capture\r\n this.capture.open(0);\r\n // grab a frame every 33 ms (30 frames/sec)\r\n TimerTask frameGrabber = new TimerTask() {\r\n @Override\r\n public void run()\r\n {\r\n javafx.scene.image.Image tmp = grabFrame();\r\n Platform.runLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n frameView.setImage(tmp);\r\n }\r\n });\r\n\r\n }\r\n };\r\n this.timer = new Timer();\r\n //set the timer scheduling, this allow you to perform frameGrabber every 33ms;\r\n this.timer.schedule(frameGrabber, 0, 33);\r\n this.start_btn.setText(\"Stop Camera\");\r\n }\r\n else\r\n {\r\n this.start_btn.setText(\"Start Camera\");\r\n // stop the timer\r\n if (this.timer != null)\r\n {\r\n this.timer.cancel();\r\n this.timer = null;\r\n }\r\n // release the camera\r\n this.capture.release();\r\n // clear the image container\r\n frameView.setImage(null);\r\n }\r\n }\r\n }", "public void getCameraInstance() {\n newOpenCamera();\n }", "public static void letCamera(Activity activity) {\n\t\tIntent imageCaptureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\t\tstrImgPath = Environment.getExternalStorageDirectory().toString()\n\t\t\t\t+ \"/dlion/\";// �����Ƭ���ļ���\n\t\tString fileName = new SimpleDateFormat(\"yyyyMMddHHmmss\")\n\t\t\t\t.format(new Date()) + \".jpg\";// ��Ƭ����\n\t\tFile out = new File(strImgPath);\n\t\tif (!out.exists()) {\n\t\t\tout.mkdirs();\n\t\t}\n\t\tout = new File(strImgPath, fileName);\n\t\tstrImgPath = strImgPath + fileName;// ����Ƭ�ľ���·��\n\n\t\tUri uri = Uri.fromFile(out);\n\t\timageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);\n\t\timageCaptureIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 2);\n\t\tactivity.startActivityForResult(imageCaptureIntent, 1);\n\t}", "private void onChooseCamClickEvent() {\n\t\tmBtnChooseCam.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tavcom.venc.SetCamSrc(-1);\n\t\t\t}\n\t\t});\n\t}", "public static void setCameraFrame() {\n\t\tCAMERA.src = VERTICES[CAMERA.v];\n\t\tVector zc = CAMERA.src.d.scale(-1).normalized();\n\t\tCAMERA.zAxis = zc;\n\t\tVector xc = MathUtils.cross(CAMERA.src.d, new Vector(0, 1, 0)).normalized();\n\t\tCAMERA.xAxis = xc;\n\t\tVector yc = MathUtils.cross(zc, xc).normalized();\n\t\tCAMERA.yAxis = yc;\n\t\t\n\t\tSystem.out.println(\"***** just set camera: \" + CAMERA.toString());\n\t}", "void cameraSetup();", "public void startGearCam() {\n }", "public CaptureImage()\r\n\t{\r\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\r\n\t\tcapturedFrame = new Mat();\r\n\t\tprocessedFrame = new Mat();\r\n\t\tboard = new byte[32];\r\n\t\tfor (int i=0;i<board.length;i++){\r\n\t\t\tboard[i] = 0;\r\n\t\t}\r\n\t\tcaptured = new byte[12];\r\n\t}", "public interface ICamera {\n\n /**\n * Return frame access interface for client usage\n *\n * @param interface_index\n * @return\n */\n public long getFrameAccessIfc(int interface_index);\n\n /**\n * Start the camera stream\n */\n public void start();\n\n /**\n * Stop the camera stream\n */\n public void stop();\n\n public String prepare(final UsbMonitor.UsbConnectionData connectionData);\n\n /**\n * Register json status callback\n *\n * @param callback\n */\n public void setStatusCallback(final IStatusCallback callback);\n\n /**\n * Queries camera for supported mode\n *\n * @return supported video modes String\n */\n public String getSupportedVideoModes();\n\n// /**\n// * Select camera capture mode\n// *\n// * @param width\n// * @param height\n// * @param frameFormat\n// */\n// public void setCaptureMode(final int width, final int height, final int frameFormat);\n\n /**\n * Select camera capture mode\n *\n * @param width\n * @param height\n * @param min_fps\n * @param max_fps\n * @param frameFormat\n */\n public void setCaptureMode(final int width, final int height, final int min_fps, final int max_fps, final int frameFormat);\n}", "private void takePhoto() {\n Uri fileUri = FileProvider.getUriForFile(Mic.getmCtx(), \"com.jay.appdemo1.fileProvider\", getOutputMediaFile());\n Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);\n intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 10); //限制的录制时长 以秒为单位\n// intent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, 1024); //限制视频文件大小 以字节为单位\n// intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); //设置拍摄的质量0~1\n// intent.putExtra(MediaStore.EXTRA_FULL_SCREEN, false); // 全屏设置\n startActivityForResult(intent, RECORD_SYSTEM_VIDEO);\n }", "Camera getCamera();", "public Camera getCam() {\n return this.cam;\n }", "public VideoCapture()\n {\n \n nativeObj = VideoCapture_0();\n \n return;\n }", "private void startCapture() {\n if (checkAudioPermissions()) {\n requestScreenCapture();\n }\n }", "private void clickpic() {\n if (getApplicationContext().getPackageManager().hasSystemFeature(\n PackageManager.FEATURE_CAMERA)) {\n // Open default camera\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);\n\n // start the image capture Intent\n startActivityForResult(intent, 100);\n\n\n } else {\n Toast.makeText(getApplication(), \"Camera not supported\", Toast.LENGTH_LONG).show();\n }\n }", "public boolean videoCaptureEnabled();", "private void recordCam() throws IOException, InterruptedException {\n\n VideoDataStream vds = new VideoDataStream(true);\n \n while (true) {\n try {\n if (dis.available() > 0) {\n vds.processFrame(dis);\n } else {\n //Writing bytes only to detect the socket closing\n dos.write(Byte.MIN_VALUE);\n }\n } catch (Exception ex) {\n CamRegister.removeCamClient(camClient);\n break;\n }\n sleep(20);\n }\n \n RecordStorage recordStorage = new RecordStorage();\n\n recordStorage.saveVideo(vds.getBuffer(), camClient.getCamCode());\n\n vds.cleanBuffer();\n }", "public void camera360() {\n\n }", "public static void main(String[] args) {\n\t\tSystem.loadLibrary(\"opencv_java310\");\n\n // Connect NetworkTables, and get access to the publishing table\n\t\tNetworkTable.setClientMode();\n\t\tNetworkTable.setTeam(4662);\n\t\tNetworkTable.initialize();\n\t\tNetworkTable visionTable = NetworkTable.getTable(\"Vision\");\n\t\n\t//gpio for relay light control\n\t\tfinal GpioController gpio = GpioFactory.getInstance();\n\t\tfinal GpioPinDigitalOutput gearLight = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, \"Gear\", PinState.LOW);\n\t\tgearLight.setShutdownOptions(true, PinState.LOW);\n\t\tfinal GpioPinDigitalOutput fuelLight = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_01, \"Fuel\", PinState.LOW);\n\t\tfuelLight.setShutdownOptions(true, PinState.LOW);\n\n \n // This is the network port you want to stream the raw received image to\n // By rules, this has to be between 1180 and 1190, so 1185 is a good choice\n// \tint streamPort = 1185;\n// \tint streamPort2 = 1187;\n // This stores our reference to our mjpeg server for streaming the input image\n // \tMjpegServer inputStream = new MjpegServer(\"MJPEG Server\", streamPort);\n // \tMjpegServer inputStream2 = new MjpegServer(\"MJPEG Server2\", streamPort2);\n// \tUsbCamera camera = setUsbCamera(\"GearCam\",0, inputStream);\n// \tUsbCamera cam2 = setUsbCamera(\"ShootCam\",1, inputStream2);\n\t\tUsbCamera camera = setUsbCamera(\"GearCam\",0);\n\t\tUsbCamera cam2 = setUsbCamera(\"ShootCam\",1);\n\n // This creates a CvSink for us to use. This grabs images from our selected camera, \n // and will allow us to use those images in opencv\n\t\tCvSink imageSink = new CvSink(\"CV Image Grabber\");\n\t\timageSink.setSource(camera);\n\n // This creates a CvSource to use. This will take in a Mat image that has had OpenCV operations\n // operations \n\t\tCvSource imageSource = new CvSource(\"CV Image Source\", VideoMode.PixelFormat.kMJPEG, 640, 480, 15);\n\t\tMjpegServer cvStream = new MjpegServer(\"CV Image Stream\", 1186);\n\t\tcvStream.setSource(imageSource);\n\n // All Mats and Lists should be stored outside the loop to avoid allocations\n // as they are expensive to create\n\t\tMat inputImage = new Mat();\n// Mat hsv = new Mat();\n\t\tPegFilter gearTarget = new PegFilter();\n\t\tBoilerPipeLine shootTarget = new BoilerPipeLine();\n\n\t\tdo {\n\t\t\tvisionTable.putBoolean(\"Take Pic\", bVisionInd);\n\t\t\tvisionTable.putBoolean(\"Keep Running\", bCameraLoop);\n\t\t\tvisionTable.putBoolean(\"IsGearDrive\", bGearDrive);\n\t\t\tvisionTable.putBoolean(\"IsVisionOn\", bVisionOn);\n\t\t} while (!visionTable.isConnected());\n\t\t\n\t\t\n\t\n\t\tdouble r1PixelX = -1;\n\t\tdouble r1PixelY = -1;\n\t\tdouble r1PixelH = -1;\n\t\tdouble r1PixelW = -1;\n\t\tboolean bIsTargetFound = false;\n\n\t\t// Infinitely process image\n\t int i=0;\n\t\twhile (bCameraLoop) {\n\t\n\t\t\tbGearDrive = visionTable.getBoolean(\"IsGearDrive\", bGearDrive);\n\t\t\tbVisionOn = visionTable.getBoolean(\"IsVisionOn\", bVisionOn);\n\t\n\t \tif (bVisionOn) {\n\t \t\tif (bGearDrive) {\n\t \t\t\tgearLight.high();\n\t \t\t\tfuelLight.low();\n\t \t\t} else {\n\t \t\t\tfuelLight.high();\n\t \t\t\tgearLight.low();\n\t \t\t}\n\t \t} else {\n\t \t\tgearLight.low();\n\t \t\tfuelLight.low();\n\t \t}\n\t \t\tif (bGearDrive) {\n\t \t\t imageSink.setSource(camera);\n\t \t\t} else {\n\t \t\t imageSink.setSource(cam2);\n\t \t\t}\n\t \t\n\t // Grab a frame. If it has a frame time of 0, there was an error.\n\t // Just skip and continue\n\t \t\tlong frameTime = imageSink.grabFrame(inputImage);\n\t \t\tif (frameTime == 0) continue;\n\t\n\t // Below is where you would do your OpenCV operations on the provided image\n\t // The sample below just changes color source to HSV\n\t// Imgproc.cvtColor(inputImage, hsv, Imgproc.COLOR_BGR2HSV);\n\t\t\tbIsTargetFound = false;\n\t\t\tint objectsFound = 0;\n\t\t\tif (bGearDrive) {\n\t\t\t\tgearTarget.process(inputImage);\n\t\t\t \tobjectsFound = gearTarget.filterContoursOutput().size();\n\t\t\t} else {\n\t\t\t\tobjectsFound = 0;\n\t\t\t\tshootTarget.process(inputImage);\n\t\t\t\tobjectsFound = shootTarget.filterContoursOutput().size();\n\t\t\t}\n\t \n\t\t \tif (objectsFound >= 1) {\n\t\t \t\tbIsTargetFound = true;\n\t\t \tif (bGearDrive) {\n\t\t \t\tRect r1 = Imgproc.boundingRect(gearTarget.filterContoursOutput().get(0));\n\t\t \t\tr1PixelX = r1.x;\n\t\t\t \tr1PixelY = r1.y;\n\t\t\t \tr1PixelW = r1.width;\n\t\t\t \tr1PixelH = r1.height;\n\t\t \t\t} else {\n\t\t \t\t\tRect r1 = Imgproc.boundingRect(shootTarget.filterContoursOutput().get(0));\t\n\t\t \t\t\tr1PixelX = r1.x;\n\t\t\t \tr1PixelY = r1.y;\n\t\t\t \tr1PixelW = r1.width;\n\t\t\t \tr1PixelH = r1.height;\n\t\t \t\t}\n\t\t \t\n\t\t \t} else {\n\t\t \tr1PixelX = -1;\n\t\t \tr1PixelY = -1;\n\t\t \tr1PixelW = -1;\n\t\t \tr1PixelH = -1;\n\t\t \t}\n\t\t \t\n\t\t \tif (bGearDrive) {\n\t\t \t\tImgproc.rectangle(inputImage, GEAR_TRGT_UPPER_LEFT, GEAR_TRGT_LOWER_RIGHT,\n\t\t \t\t\t\tRECT_COLOR, RECT_LINE_WIDTH);\n\t\t \t} else {\n\t\t \t\tImgproc.rectangle(inputImage, BOILER_TRGT_UPPER_LEFT, BOILER_TRGT_LOWER_RIGHT,\n\t\t \t\t\t\tRECT_COLOR, RECT_LINE_WIDTH);\n\t\t \t}\n\t\n\t\t \tvisionTable.putBoolean(\"IsTargetFound\", bIsTargetFound);\n\t\t visionTable.putNumber(\"Target1X\", r1PixelX);\n\t\t visionTable.putNumber(\"Target1Y\", r1PixelY);\n\t\t visionTable.putNumber(\"Target1Width\", r1PixelW);\n\t\t visionTable.putNumber(\"Target1Height\", r1PixelH);\n\t\n\t \tvisionTable.putNumber(\"Next Pic\", i);\n\t \tbVisionInd = visionTable.getBoolean(\"Take Pic\", bVisionInd);\n\t \tif (bVisionInd) {\n\t \t\tchar cI = Character.forDigit(i, 10);\n\t \t\tImgcodecs.imwrite(\"/home/pi/vid\" + cI + \".jpg\", inputImage);\n//\t \t\tString fileTmst = new SimpleDateFormat(\"yyyyMMddhhmmssSSS\").format(new Date().getTime());\n//\t \t\tImgcodecs.imwrite(\"/home/pi/vid\" + fileTmst + \".jpg\", inputImage);\n\t \t\tSystem.out.println(\"loop\" + i);\n\t \t\ti++;\n\t \t\tbVisionInd = false;\n\t \t\tvisionTable.putBoolean(\"Take Pic\", bVisionInd);\n\t \t}\n\t \tbCameraLoop = visionTable.getBoolean(\"Keep Running\", bCameraLoop);\n\t \timageSource.putFrame(inputImage);\n\t }\n\t\n gpio.shutdown();\n\n\t}", "public interface CamAPI {\n\n\n public String getPath();\n\n public String up();\n\n public String left();\n\n public String right();\n\n public String down();\n\n public String center();\n\n public String img();\n\n\n}", "@Override public void run()\n {\n pauseStreaming();\n\n // Switch the current camera\n camera = newCamera;\n\n // Resume streaming on the new camera if there is one\n if (camera != null)\n {\n resumeStreaming();\n }\n }", "private void captureImage() {\n camera.takePicture(null, null, jpegCallback);\r\n }", "public void configureCamera(){\n try{\n camera = Camera.open(findBackFacingCamera());\n } catch (Exception e){}\n\n if(camera != null) {\n cameraView = new CameraView(this.getApplicationContext(), camera);\n FrameLayout camera_view = (FrameLayout)findViewById(R.id.CameraView);\n camera_view.addView(cameraView);\n }\n }", "private void update(){\n\n//\t\tif(frameSupplier != null){\n//\n//\t\t\tBufferedImage frame = frameSupplier.getFrame();\n//\n//\t\t\tvideoContainer.setIcon(new ImageIcon(frame));\n//\t\t\tvideoContainer.setText(null);\n//\n//\t\t}\n\n\t\tBufferedImage frame = camera.getImage();\n\t\tvideoContainer.setIcon(new ImageIcon(frame));\n\t\tvideoContainer.setText(null);\n\n\t\tgpioManager.setStatusColour(Color.getHSBColor((System.currentTimeMillis() % 3000) / 3000f, 1, 1));\n\n\t\tgpioManager.setShutterLEDState(System.currentTimeMillis() % 1000 > 500);\n\n\t\tjFrame.repaint();\n\t}", "public void onCameraOpened() {\n openCameraCommon();\n initializeControlByIntent();\n new Thread() {\n public void run() {\n try {\n Thread.sleep(500);\n PhotoModule.this.mIsCameraOpened = true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }.start();\n }", "public void checkCam(Camera cam) {\n\t\t\t\n\t\t\tLog.e(\"DownloaderManager \", \"checkCam\");\n\t\t\t\n\t\t\ttempCamera = cam;\n\t\t\t\n\t\t\tif (!isRTMP(tempCamera.getAddress())){\n\t\t\t\n\t\t\t\t//check if camera is online\n\t\t\t\thttpControler.checkCamOnline(tempCamera.getAddress(), cameraStatus);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//rtmpControler.startDownloading(tempCamera, newFrameHandler);\n\t\t\t\trtmpControler.checkCamOnline(tempCamera.getAddress(), cameraStatus);\n\t\t\t}\n\t\t}", "public RoeImage takePicture() \r\n {\r\n // return variable\r\n RoeImage result = new RoeImage();\r\n \r\n // take picture \r\n this.cam.read(this.frame);\r\n \r\n // update timestamp for image capturing\r\n this.timestamp = System.currentTimeMillis();\r\n \r\n // add picture to result\r\n result.SetImage(this.frame);\r\n \r\n // add timestamp of captured image\r\n result.setTimeStamp(this.timestamp);\r\n\r\n // the image captured with properties\r\n return result;\r\n }", "public void onVideoStarted () {}", "private void setCamera() {\n\t\tCamera.CameraInfo cameraInfo = new Camera.CameraInfo();\n\t\tint cameraCount = Camera.getNumberOfCameras();\n\t\tLog.i(TAG, \"count = \" + cameraCount);\n\t\tLog.i(TAG, \"isBack = \" + isBack);\n\t\tint id = 0;\n\n\t\tfor (int camIdx = 0; camIdx < cameraCount; camIdx++) {\n\t\t\tCamera.getCameraInfo(camIdx, cameraInfo);\n\t\t\tLog.i(TAG, \"cameraInfoFacing = \" + cameraInfo.facing);\n\t\t\tif (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK\n\t\t\t\t\t&& isBack) {\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} else if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT\n\t\t\t\t\t&& !isBack){\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (mCamera != null) {\n\t\t\tCamera.Parameters cameraParameters = mCamera.getParameters();\n\t\t\tDisplay display = getActivity().getWindowManager().getDefaultDisplay();\n\t\t\tPoint size = new Point();\n\t\t\tdisplay.getSize(size);\n\t\t\tint screenWidth = size.x;\n\t\t\tint width = Integer.MAX_VALUE;\n\t\t\tint height = 0;\n\t\t\tLog.i(TAG, \"SCREENWIDTH: \" + screenWidth);\n\t\t\tList<Camera.Size> sizes = cameraParameters.getSupportedPreviewSizes();\n\t\t\tfor (Camera.Size cSize : sizes) {\n\t\t\t\tif (cSize.width >= screenWidth && cSize.width <= width) {\n\t\t\t\t\twidth = cSize.width;\n\t\t\t\t\theight = cSize.height;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tLog.i(TAG, \"Width: \" + width + \" HEIGHT: \" + height);\n\n\t\t\tif (mPreview != null) {\n\t\t\t\tmPreview.switchCamera(mCamera, id, width, height);\n\t\t\t} else {\n\t\t\t\tmPreview = new CameraPreview(getActivity(), mCamera, id, width, height);\n\t\t\t\tFrameLayout preview = (FrameLayout) view\n\t\t\t\t\t\t.findViewById(R.id.camera_preview);\n\t\t\t\tpreview.addView(mPreview);\n\t\t\t}\n\t\t\tmCamera.startPreview();\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n Cam.takePicture(shutterCallback, null, mPicture);\n// Cam.takePicture();\n }", "private void turnOnCamera() {\n // play sound\n playSound();\n isCameraOn = true;\n turnOffFlash();\n strobo.setChecked(false);\n previewCamera();\n toggleButtonImageCamera();\n }", "public void capture()\r\n\t{ \r\n\t VideoCapture camera = new VideoCapture();\r\n\t \r\n\t camera.set(12, -20); // change contrast, might not be necessary\r\n\t \r\n\t //CaptureImage image = new CaptureImage();\r\n\t \r\n\t \r\n\t \r\n\t camera.open(0); //Useless\r\n\t if(!camera.isOpened())\r\n\t {\r\n\t System.out.println(\"Camera Error\");\r\n\t \r\n\t // Determine whether to use System.exit(0) or return\r\n\t \r\n\t }\r\n\t else\r\n\t {\r\n\t System.out.println(\"Camera OK\");\r\n\t }\r\n\t\t\r\n\t\t \r\n\t\tboolean success = camera.read(capturedFrame);\r\n\t\tif (success)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tprocessWithContours(capturedFrame, processedFrame);\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t}\r\n\t\t //image.processFrame(capturedFrame, processedFrame);\r\n\t\t // processedFrame should be CV_8UC3\r\n\t\t \r\n\t\t //image.findCaptured(processedFrame);\r\n\t\t \r\n\t\t //image.determineKings(capturedFrame);\r\n\t\t \r\n\t\t int bufferSize = processedFrame.channels() * processedFrame.cols() * processedFrame.rows();\r\n\t\t byte[] b = new byte[bufferSize];\r\n\t\t \r\n\t\t processedFrame.get(0,0,b); // get all the pixels\r\n\t\t // This might need to be BufferedImage.TYPE_INT_ARGB\r\n\t\t img = new BufferedImage(processedFrame.cols(), processedFrame.rows(), BufferedImage.TYPE_INT_RGB);\r\n\t\t int width = (int)camera.get(Highgui.CV_CAP_PROP_FRAME_WIDTH);\r\n\t\t int height = (int)camera.get(Highgui.CV_CAP_PROP_FRAME_HEIGHT);\r\n\t\t //img.getRaster().setDataElements(0, 0, width, height, b);\r\n\t\t byte[] a = new byte[bufferSize];\r\n\t\t System.arraycopy(b, 0, a, 0, bufferSize);\r\n\r\n\t\t Highgui.imwrite(\"camera.jpg\",processedFrame);\r\n\t\t System.out.println(\"Success\");\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Unable to capture image\");\r\n\t\t\r\n\t camera.release();\r\n\t}", "public static VideoSource startCamera(CameraConfig config) {\n System.out.println(\"Starting camera '\" + config.name + \"' on \" + config.path);\n CameraServer inst = CameraServer.getInstance();\n UsbCamera camera = new UsbCamera(config.name, config.path);\n MjpegServer server = inst.startAutomaticCapture(camera);\n\n Gson gson = new GsonBuilder().create();\n\n camera.setConfigJson(gson.toJson(config.config));\n camera.setConnectionStrategy(VideoSource.ConnectionStrategy.kKeepOpen);\n\n if (config.streamConfig != null) {\n server.setConfigJson(gson.toJson(config.streamConfig));\n }\n\n return camera;\n }", "public void run() {\n System.out.println(nomeDaCamada);\n try {\n\n Painel.CAMADAS_RECEPTORAS.expandirCamadaEnlace();\n\n //quadro = camadaEnlaceReceptoraControleDeFluxo(quadro);\n //quadro = camadaEnlaceReceptoraControleDeErro(quadro);\n quadro = camadaEnlaceReceptoraEnquadramento(quadro);\n\n chamarProximaCamada(quadro);\n Painel.CONFIGURACOES.setDisable(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected void startCamera() {\n profileImageCaptured = new File(\n Environment.getExternalStorageDirectory() + \"/\" + \"temp.png\");\n if (profileImageCaptured.exists())\n profileImageCaptured.delete();\n\n outputFileUri = Uri.fromFile(profileImageCaptured);\n Intent intent = new Intent(\n android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n intent.putExtra(\"return-data\", true);\n startActivityForResult(intent, CAMERA_REQUEST);\n\n }", "private void startPreview() {\n if (cameraConfigured && camera!=null) {\n camera.startPreview();\n inPreview=true;\n }\n }", "private void gotRemoteStream(MediaStream stream) {\n //we have remote video stream. add to the renderer.\n final VideoTrack videoTrack = stream.videoTracks.get(0);\n if (mEventUICallBack != null) {\n mEventUICallBack.showVideo(videoTrack);\n }\n// runOnUiThread(() -> {\n// try {\n// binding.remoteGlSurfaceView.setVisibility(View.VISIBLE);\n// videoTrack.addSink(binding.remoteGlSurfaceView);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n// });\n }", "private void liveStreaming() throws IOException, InterruptedException {\n\n CamStreaming camStreaming = new CamStreaming();\n VideoDataStream vds = new VideoDataStream(true);\n byte[] frame;\n\n if (camStreaming.prepareStream(in)) {\n\n while (camStreaming.isTargetConnected()) {\n try {\n\n if (dis.available() > 0) {\n frame = vds.processFrame(dis);\n camStreaming.sendData(frame);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n break;\n }\n sleep(20);\n }\n \n dos.writeInt(END_OF_STREAM_CODE);\n dos.flush();\n \n// CamRegister.removeCamClient(camClient);\n \n RecordStorage recordStorage = new RecordStorage();\n\n recordStorage.saveVideo(vds.getBuffer(), camClient.getCamCode());\n\n vds.cleanBuffer();\n\n }\n\n }", "@Override\n public void init() {\n startCamera();\n }", "private void getSampleImage() {\n\t\t_helpingImgPath = \"Media\\\\\"+_camType.toString()+_downStream.toString()+_camProfile.toString()+\".bmp\";\n//\t\tswitch( _downStream ){\n//\t\tcase DownstreamPage.LEVER_NO_DOWNSTREAM:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.LEVER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_OUTER_CAM:\n//\t\t\t\tbreak;\t\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_CRANK:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_FOUR_JOIN:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_PUSHER_TUGS:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_CRANK:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.SLIDER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_OUTER_CAM:\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_DOUBLE_SLIDE:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_NO_DOWNSTREAM:\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t}", "public void updateCamera() {\n\t}", "@Override\r\n public void run() {\n do {\r\n try {\r\n Thread.sleep(100);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n Result result = null;\r\n BufferedImage image = null;\r\n if (webcam.isOpen()) {\r\n if ((image = webcam.getImage()) == null) {\r\n continue;\r\n }\r\n \t//iconlabel\r\n\t ImageIcon icon=new ImageIcon(image);\r\n\t icon.setImage(icon.getImage().getScaledInstance(300,300,Image.SCALE_DEFAULT));\r\n\t iconLabel.setIcon(icon); \r\n\t \r\n \t//qrcode\r\n LuminanceSource source =new BufferedImageLuminanceSource( image) ;\r\n BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));\r\n\r\n try {\r\n result = new MultiFormatReader().decode(bitmap);\r\n } catch (NotFoundException e) {\r\n // fall thru, it means there is no QR code in image\r\n }\r\n }\r\n if (result != null) {\r\n textarea.setText(result.getText());\r\n System.out.println(result.getText());\r\n }\r\n\r\n } while (true);\r\n }", "@Override\r\n public void run() {\n currentHud.setReceivedPictureScreen();\r\n }", "private void toggleCamera(boolean isNeedEnableCam) {\n DisplayMetrics displaymetrics = new DisplayMetrics();\n displaymetrics.setToDefaults();\n\n ViewGroup.LayoutParams layoutParams = imgMyCameraOff.getLayoutParams();\n\n layoutParams.height = localVideoView.getHeight();\n layoutParams.width = localVideoView.getWidth();\n\n imgMyCameraOff.setLayoutParams(layoutParams);\n\n Log.d(TAG, \"Width is: \" + imgMyCameraOff.getLayoutParams().width + \" height is:\" + imgMyCameraOff.getLayoutParams().height);\n\n if (SessionManager.getCurrentSession() != null) {\n SessionManager.getCurrentSession().setVideoEnabled(isNeedEnableCam);\n cameraToggle.setChecked(isNeedEnableCam);\n\n if (isNeedEnableCam) {\n Log.d(TAG, \"Camera is on\");\n switchCameraToggle.setVisibility(View.VISIBLE);\n imgMyCameraOff.setVisibility(View.INVISIBLE);\n } else {\n Log.d(TAG, \"Camera is off\");\n switchCameraToggle.setVisibility(View.INVISIBLE);\n imgMyCameraOff.setVisibility(View.VISIBLE);\n }\n }\n }", "public void camara(){\n Intent fotoPick = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n String fecha = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\").format(new Date());\n Uri uriSavedImage=Uri.fromFile(new File(getExternalFilesDir(Environment.DIRECTORY_DCIM),\"inmueble_\"+id+\"_\"+fecha+\".jpg\"));\n fotoPick.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);\n startActivityForResult(fotoPick,TAKE_PICTURE);\n\n }", "public void openCamera() {\n Toast.makeText(this, \"Coming soon...\", Toast.LENGTH_SHORT).show();\n }", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String cameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId);\n StreamConfigurationMap map = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n imageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE}, REQUEST_CAMERA_PERMISSION);\n return;\n }\n manager.openCamera(cameraId, stateCallback, null);\n } catch (CameraAccessException e) {\n Toast.makeText(this, \"Camera failed to open.\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String mCameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(mCameraId);\n StreamConfigurationMap map = characteristics.\n get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n mImageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) !=\n PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE) !=\n PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(CameraActivity.this, new\n String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CAMERA_PERMISSION);\n }\n manager.openCamera(mCameraId, mStateCallback, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onCameraPreviewStopped() {\n }", "private void getCamera() {\n if (camera == null) {\n try {\n camera = Camera.open();\n params = camera.getParameters();\n } catch (RuntimeException e) {\n\n }\n }\n }", "public void setVideoPort(int port);", "public int getVideoPort();", "public void reloadVideoDevices();", "public static Webcam windyWebcamToCommonWebcam(WindyWebcam webcam) {\n\t\tWebcam result = new Webcam();\n\n\t\tdatabase.UserManager um = database.Database.getDatabaseManagement().getUserManager();\n\n\t\tresult.setUserNumber(um.getUserByLoginName(\"WindyUser\").getUserNumber());\n\t\tresult.setWebcamName(webcam.title);\n\t\tresult.setUrl(webcam.url.current.desktop);\n\t\tresult.setLatitude(webcam.location.latitude);\n\t\tresult.setLongitude(webcam.location.longitude);\n\t\tresult.setCity(webcam.location.city);\n\t\tresult.setStateProvinceRegion(webcam.location.region);\n\t\tresult.setCountry(webcam.location.country);\n\t\tresult.setActive(webcam.status.equals(\"active\"));\n\t\tresult.setDateSubmitted(LocalDateTime.now());\n\t\tresult.setDateApproved(LocalDateTime.now());\n\t\tresult.setApprovalStatus(\"approved\");\n\t\t\n\t\t// Defaults\n\t\tresult.setDescription(webcam.title);\n\t\tresult.setPurpose(webcam.category[0].name); // Get the first purpose\n\t\tresult.setHeight(5);\n\t\tresult.setHeightUnits(\"ft\");\n\t\tresult.setAzimuth(-1);\n\t\tresult.setFieldOfView(360);\n\t\tresult.setRotating(\"360DegreeRotation\");\n\t\tresult.setRotatingFieldOfView(0);\n\t\tresult.setVerticalViewAngle(0);\n\t\tresult.setVerticalFieldOfView(0);\n\t\tresult.setMinViewRadius(0);\n\t\tresult.setMinViewRadiusUnits(\"mi\");\n\t\tresult.setMaxViewRadius(10);\n\t\tresult.setMaxViewRadiusUnits(\"mi\");\n\t\tresult.setWebcamColor(\"FFFFFF\");\n\t\tresult.setViewshedColor(\"FFFFFF\");\n\n\t\treturn result;\n\t}", "private void requestLiveStreaming() throws IOException {\n\n String targetCamCode = dis.readUTF();\n\n Cam targetCam = CamRegister.findRegisteredCam(targetCamCode);\n\n try {\n DataOutputStream targetDos = new DataOutputStream(targetCam.getCamSocket().getOutputStream());\n\n targetDos.writeInt(LIVE_STREAMING_COMMAND);\n targetDos.writeUTF(camClient.getCamCode());\n targetDos.flush();\n\n dos.writeInt(SUCCESS_CODE);\n dos.flush();\n\n } catch (Exception e) {\n e.printStackTrace();\n dos.writeInt(NOT_FOUND_CODE);\n dos.flush();\n }\n }", "public int switchCamera() {\n return mRtcEngine.switchCamera();\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.custom_cameraactivity);\r\n mCamera = getCameraInstance();\r\n mCameraPreview = new CameraPreview(this, mCamera);\r\n FrameLayout preview = (FrameLayout) findViewById(R.id.camera_preview);\r\n preview.addView(mCameraPreview);\r\n\r\n Bundle extras = getIntent().getExtras();\r\n looc = extras.getString(\"coor\");\r\n\r\n Button captureButton = (Button) findViewById(R.id.button_capture);\r\n captureButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n mCamera.takePicture(null, null, mPicture);\r\n // havent try to use doinbackgroud test first\r\n\r\n }\r\n });\r\n }", "private void previewCapturedImage() {\n try {\n imageProfile.setVisibility(View.VISIBLE);\n Log.d(\"preview\", currentPhotoPath);\n final Bitmap bitmap = CameraUtils.scaleDownAndRotatePic(currentPhotoPath);\n imageProfile.setImageBitmap(bitmap);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n /*apply image effects to new frame*/\n Mat mat= hangman.decapitate(inputFrame);\n\n /*check if users clicked the capture button and if external storage is writable for save it*/\n if(isToSaveBitmap && isExternalStorageWritable()){\n isToSaveBitmap=false;\n Bitmap bmp;\n try {\n bmp = Bitmap.createBitmap(mat.cols(), mat.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(mat, bmp);\n File dir = getAlbumStorageDir(\"hangman\");\n String path =dir.getPath()+File.separator+ \"hangman\" +System.currentTimeMillis() + \".JPG\";\n File capture= new File(path);\n\n OutputStream out = null;\n try {\n capture.createNewFile();\n out = new FileOutputStream(capture);\n bmp.compress(Bitmap.CompressFormat.JPEG, 90, out);\n out.flush();\n\n /*Inform the media store that a new image was saved*/\n ContentValues values = new ContentValues();\n values.put(MediaStore.Images.Media.DATE_TAKEN, System.currentTimeMillis());\n values.put(MediaStore.Images.Media.MIME_TYPE, \"image/jpeg\");\n values.put(MediaStore.MediaColumns.DATA, path);\n getBaseContext().getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);\n\n /*if app was called with intent image capture */\n if(intentImageCapture){\n Intent result = new Intent(\"com.example.RESULT_ACTION\");\n result.setData(Uri.fromFile(capture));\n result.putExtra(Intent.EXTRA_STREAM,capture);\n result.setType(\"image/jpg\");\n setResult(Activity.RESULT_OK, result);\n finish();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n finally {\n try {\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n catch (CvException e) {\n Log.e(\"Exception\", e.getMessage());\n e.printStackTrace();\n }\n }\n return mat;\n }", "@Override\n public void onOpened(@NonNull CameraDevice camera) {\n mCameraDevice = camera;\n if (mIsRecording) {\n try {\n mVideoFilePath = FileUtils.createVideoFile(getApplicationContext());\n } catch (IOException e) {\n e.printStackTrace();\n }\n startNewVideo();\n } else {\n startPreview();\n }\n }", "public int cameraOn() {\r\n System.out.println(\"hw- ligarCamera\");\r\n return serialPort.enviaDados(\"!111O*\");//camera ON \r\n }", "@Override\n public void onFrameAvailable(int cameraId) {\n }", "@Override\n public void onFrameAvailable(int cameraId) {\n }", "public void init(Camera cam);", "@Option int getPortSendCam();", "public void start() {\n\n\t\tif (!started.compareAndSet(false, true)) {\n\t\t\treturn;\n\t\t}\n\n\t\tLOG.debug(\"Starting panel rendering and trying to open attached webcam\");\n\n\t\tstarting = true;\n\n\t\tif (updater == null) {\n\t\t\tupdater = new ImageUpdater();\n\t\t}\n\n\t\tupdater.start();\n\n\t\ttry {\n\t\t\terrored = !webcam.open();\n\t\t} catch (WebcamException e) {\n\n\t\t\terrored = true;\n\n\t\t\tDisplay.getDefault().syncExec(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tredraw();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tstarting = false;\n\t\t}\n\t}", "void onPreviewFrame(byte[] data, Camera camera);", "private void newOpenCamera() {\n if (mThread == null) {\n mThread = new CameraHandlerThread();\n }\n\n synchronized (mThread) {\n mThread.openCamera();\n }\n }", "public void takePicture() {\n LightMeter lightMeter = new LightMeter(film.getSpeed());\n shutter.setSeconds(lightMeter.getRecommendedSpeed());\n aperture.setSize(lightMeter.getRecommendedAperture());\n shutter.trigger();\n }", "@Override\n public void run(){\n\n String datas = Uploader.doImageCheck(bmp, session);\n if (datas != \"NULL\" && datas != \"\") {\n\n String fileURL=\"\";\n int lastnum=1;\n String filename=\"\";\n String ext=\"\";\n\n JSONObject job = null;\n try {\n job = new JSONObject(datas);\n fileURL = (String) job.get(\"fileDir\");\n lastnum = Integer.parseInt((String) job.get(\"lastnum\"));\n filename = (String) job.get(\"filename\");\n ext = (String) job.get(\"ext\");\n } catch (JSONException e) {\n return;\n }\n\n final File sdCard = Environment.getExternalStorageDirectory();\n\n File dir = new File(sdCard.getAbsolutePath() + \"/Verrapel/Video/\" + filename);\n\n if (!dir.exists()) {\n dir.mkdirs();\n }\n for (int i = 1; i <= lastnum; i++) {\n String filePath = sdCard.getAbsolutePath() + \"/Verrapel/Video/\" + filename + \"/\" + i + ext;\n File f = new File(filePath);\n if (!f.exists()) {\n String fileUrl = fileURL + \"/\" + i + ext;\n\n String localPath = filePath;\n\n try {\n URL imgUrl = new URL(fileUrl);\n //서버와 접속하는 클라이언트 객체 생성\n HttpURLConnection conn = (HttpURLConnection) imgUrl.openConnection();\n int response = conn.getResponseCode();\n\n File file = new File(localPath);\n\n InputStream is = conn.getInputStream();\n OutputStream outStream = new FileOutputStream(file);\n\n byte[] buf = new byte[1024];\n int len = 0;\n\n while ((len = is.read(buf)) > 0) {\n outStream.write(buf, 0, len);\n }\n\n outStream.close();\n is.close();\n conn.disconnect();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n\n ArrayList<Mat> videoArray = new ArrayList<Mat>();\n\n for (int i = 1; i <= lastnum; i++) {\n String filePath = sdCard.getAbsolutePath() + \"/Verrapel/Video/\" + filename + \"/\" + i + ext;\n\n File file = new File(filePath);\n if (file.exists()) {\n Bitmap bm = BitmapFactory.decodeFile(filePath);\n Mat tmp = new Mat();\n\n Matrix matrix = new Matrix();\n matrix.postRotate(270);\n Bitmap resizedBitmap = Bitmap.createBitmap(bm, 0, 0, bm.getWidth(), bm.getHeight(), matrix, true);\n Utils.bitmapToMat(resizedBitmap, tmp);\n videoArray.add(tmp);\n /*\n mmr.setDataSource(filePath);\n String time = mmr.extractMetadata(FFmpegMediaMetadataRetriever.METADATA_KEY_DURATION);\n int VideoDuration = Integer.parseInt(time) * 1000;// This will give time in millesecond\n for (int ftime = 0; ftime < VideoDuration; ftime += 120000) {\n Bitmap b = mmr.getFrameAtTime(ftime, FFmpegMediaMetadataRetriever.OPTION_CLOSEST); // frame at 2 seconds\n byte[] artwork = mmr.getEmbeddedPicture();\n ftime = (ftime + 120000) % VideoDuration;\n\n Mat result = new Mat();\n Utils.bitmapToMat(b, result);\n videoArray.add(result);\n }\n //p.setDownloadFinish(true);\n\n */\n }\n }\n p.setVideoArray(videoArray);\n }\n }", "@Override\n\tpublic void videoStart() {\n\t\t\n\t}", "@Override\n protected void onStart() {\n camera_ = getCameraInstance();\n Parameters params;\n\n if (camera_ != null) {\n params = camera_.getParameters();\n params.setPreviewFormat(ImageFormat.NV21);\n getSmallestPreviewSize(params);\n params.setPreviewSize(width_, height_);\n //params.setFlashMode(Parameters.FLASH_MODE_TORCH);\n params.setWhiteBalance(Parameters.WHITE_BALANCE_AUTO);\n camera_.setParameters(params);\n\n frame_ = new RGB[width_ * height_];\n for (int i = 0; i < frame_.length; ++i) {\n frame_[i] = new RGB();\n }\n\n camera_.setPreviewCallback(new PreviewCallback() {\n @Override\n public void onPreviewFrame(byte[] data, Camera camera) {\n synchronized (frame_) {\n decodeYUV420SP(frame_, data, width_, height_);\n }\n }\n });\n SurfaceTexture texture_ = new SurfaceTexture(0);\n try {\n camera_.setPreviewTexture(texture_);\n } catch (IOException e) {\n e.printStackTrace();\n }\n camera_.startPreview();\n }\n\n super.onStart();\n }", "public void onCreateCameraPipeline(com.arashivision.onestream.pipeline.ICameraPreviewPipeline r20) {\n /*\n r19 = this;\n r0 = r19\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"onCreateCameraPipeline\"\n r1.d(r2)\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n r2 = r20\n r1.f73l = r2\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r1 = r1.IL1Iii\n com.arashivision.insta360.basemedia.model.FileType r1 = r1.getFileType()\n com.arashivision.insta360.basemedia.model.FileType r2 = com.arashivision.insta360.basemedia.model.FileType.FISH_EYE\n r3 = 1\n r4 = 0\n if (r1 != r2) goto L_0x0059\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r1 = r1.IL1Iii\n com.arashivision.insta360.basemedia.model.viewconstraint.Constraint r1 = r1.getConstraint()\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r2 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r2 = r2.IL1Iii\n int[] r2 = r2.getConstraintRatio()\n if (r1 == 0) goto L_0x0059\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r5 = r0.f577a\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r6 = r5.I11L\n float r5 = r1.getDefaultDistance()\n double r9 = (double) r5\n float r5 = r1.getDefaultFov()\n double r11 = (double) r5\n r5 = r2[r3]\n float r5 = (float) r5\n r2 = r2[r4]\n float r2 = (float) r2\n float r5 = r5 / r2\n double r13 = (double) r5\n float r2 = r1.getXScale()\n double r7 = (double) r2\n float r1 = r1.getYScale()\n double r1 = (double) r1\n r15 = 4607182418800017408(0x3ff0000000000000, double:1.0)\n r17 = r7\n r7 = r15\n r15 = r17\n r17 = r1\n r6.setGyroStabilizerFovDistance2(r7, r9, r11, r13, r15, r17)\n L_0x0059:\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n r1.setLoading(r4)\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n if (r1 == 0) goto L_0x00cf\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r2 = r1.ILil\n if (r2 == 0) goto L_0x006d\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r2 = r2.getCameraRenderSurfaceInfo()\n if (r2 == 0) goto L_0x006d\n r4 = r3\n L_0x006d:\n if (r4 != 0) goto L_0x0077\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Custom surface is null\"\n L_0x0073:\n r1.e(r2)\n goto L_0x00c5\n L_0x0077:\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r2 = r1.I11L\n if (r2 != 0) goto L_0x0080\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Render is null\"\n goto L_0x0073\n L_0x0080:\n boolean r2 = r1.llliI\n if (r2 == 0) goto L_0x0089\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Already render surface\"\n goto L_0x0073\n L_0x0089:\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender$CameraRenderSurfaceInfo r2 = new com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender$CameraRenderSurfaceInfo\n r2.<init>()\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n int r4 = r4.renderWidth\n r2.renderWidth = r4\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n int r4 = r4.renderHeight\n r2.renderHeight = r4\n a.a.a.a.e.a.e.l r4 = r1.f60IL\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r5 = r1.ILil\n int r5 = r5.getRenderModelType()\n com.arashivision.graphicpath.render.rendermodel.RenderModelType r4 = r4.a(r5)\n int r4 = r4.getType()\n r2.renderModeType = r4\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n android.view.Surface r4 = r4.mSurface\n r2.mSurface = r4\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r4 = r1.I11L\n r4.startCameraRenderSurface(r2)\n r1.llliI = r3\n L_0x00c5:\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.listener.IBasePlayerViewListener r1 = r1.f741\n if (r1 == 0) goto L_0x00ce\n r1.onLoadingFinish()\n L_0x00ce:\n return\n L_0x00cf:\n r1 = 0\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.e.a.f.h.onCreateCameraPipeline(com.arashivision.onestream.pipeline.ICameraPreviewPipeline):void\");\n }", "public void captureVideo(String element) {\r\n\t\tvideoUtil.startVideoTool(getView(), element);\r\n\t}", "@Override\n public void run() {\n MotionEyeHelper helper = new MotionEyeHelper();\n helper.setUsername(device.getUser().getUsername());\n try {\n helper.setPasswordHash(device.getUser().getPassword());\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n String cameraId = camera.getId();\n String serverurl;\n if (device.getDdnsURL().length() > 5) {\n if ((Utils.getNetworkType(mContext)) == NETWORK_MOBILE) {\n serverurl = device.getDDNSUrlCombo();\n } else if (device.getWlan().networkId == Utils.getCurrentWifiNetworkId(mContext)) {\n serverurl = device.getDeviceUrlCombo();\n\n } else {\n serverurl = device.getDDNSUrlCombo();\n\n }\n } else {\n serverurl = device.getDeviceUrlCombo();\n\n }\n String baseurl;\n if (!serverurl.contains(\"://\"))\n baseurl = removeSlash(\"http://\" + serverurl);\n else\n baseurl = removeSlash(serverurl);\n\n String url = baseurl + \"/picture/\" + cameraId + \"/current?_=\" + new Date().getTime();\n url = helper.addAuthParams(\"GET\", url, \"\");\n String finalUrl = url;\n\n new DownloadImageFromInternet(holder, camera, this, time, loaded).execute(finalUrl);\n\n\n }" ]
[ "0.6909669", "0.6811368", "0.6705972", "0.6643418", "0.66412437", "0.6525684", "0.651761", "0.6473264", "0.64199364", "0.641506", "0.6413498", "0.6409385", "0.6408968", "0.6391344", "0.63681245", "0.6341804", "0.63128674", "0.6220023", "0.62181455", "0.6203813", "0.6203572", "0.61673075", "0.6158542", "0.6140627", "0.61224884", "0.61157876", "0.61044925", "0.60995966", "0.60815346", "0.60731506", "0.6058025", "0.6044519", "0.6031819", "0.603147", "0.603113", "0.60198915", "0.6017685", "0.6006207", "0.59955066", "0.5981961", "0.59815216", "0.5971955", "0.5960119", "0.59547895", "0.5951475", "0.594871", "0.59396505", "0.5928976", "0.5920073", "0.5913381", "0.5912161", "0.59103507", "0.5900392", "0.589757", "0.58804935", "0.58709747", "0.5869408", "0.58692247", "0.58688223", "0.5852618", "0.5843349", "0.5835691", "0.58334106", "0.582797", "0.5811365", "0.58061516", "0.5804644", "0.5804251", "0.5799972", "0.5797271", "0.578267", "0.57770646", "0.5774876", "0.57724655", "0.5767215", "0.57629186", "0.57598495", "0.5752858", "0.5729489", "0.5726702", "0.57229555", "0.5721964", "0.5719159", "0.5716341", "0.57141376", "0.5713663", "0.5713223", "0.57125175", "0.57125175", "0.5710595", "0.5707499", "0.57034904", "0.57023644", "0.5701981", "0.57007736", "0.5688794", "0.5688764", "0.5680194", "0.5679515", "0.56735307", "0.5655568" ]
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() { jPanel1 = new javax.swing.JPanel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setIconImage(getIconImage()); setUndecorated(true); jPanel1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jPanel1MouseClicked(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 395, Short.MAX_VALUE) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 302, Short.MAX_VALUE) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); 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 Oddeven() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\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 MusteriEkle() {\n initComponents();\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 FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\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 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.73197734", "0.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.6945748", "0.69436246", "0.6936225", "0.69309264", "0.6927764", "0.6925464", "0.69240505", "0.6911828", "0.69114214", "0.6893614", "0.68917346", "0.6891525", "0.6891501", "0.6889125", "0.68829834", "0.6882533", "0.68808794", "0.687905", "0.687687", "0.68740726", "0.68708014", "0.68595254", "0.68561274", "0.68560076", "0.6854643", "0.6854604", "0.6853724", "0.685311", "0.685311", "0.6844816", "0.6836794", "0.6835743", "0.68294543", "0.6828841", "0.682637", "0.68245006", "0.6823792", "0.68175477", "0.6817179", "0.6811031", "0.68096155", "0.6809008", "0.68087083", "0.68081945", "0.6801884", "0.6795609", "0.6793828", "0.67930275", "0.67915165", "0.6789997", "0.6788734", "0.6788487", "0.67816335", "0.67663425", "0.6765744", "0.67648494", "0.6757314", "0.6755897", "0.67526966", "0.6750367", "0.67429197", "0.67399955", "0.6736908", "0.6736084", "0.6734342", "0.6726562", "0.67264515", "0.67205596", "0.6716381", "0.67154187", "0.67150515", "0.6709329", "0.6708348", "0.67050624", "0.67021835", "0.6700595", "0.6699073", "0.6698866", "0.66942847", "0.6690904", "0.66897583" ]
0.0
-1
TODO Autogenerated method stub
@Override public void saveOrUpdateElementHistory(ElementHistory elementHistory) { elementHistoryRepository.save(elementHistory); }
{ "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<Long> getIdByMlFlowHistoryId(Long mlFlowHistoryId) { return elementHistoryRepository.getIdByMlFlowId(mlFlowHistoryId); }
{ "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 Long getElementTplIdById(Long id) { return elementHistoryRepository.getElementTplIdById(id); }
{ "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 ElementHistory getById(Long id) { return elementHistoryRepository.findOne(id); }
{ "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 ElementHistory getByRuntimeId(String runtimeId) { return elementHistoryRepository.findByRuntimeId(runtimeId); }
{ "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 void save(ElementHistory elementHistory) { elementHistoryRepository.save(elementHistory); }
{ "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
Retrieves the primary task provider for a given customer.
public TaskProvider getTaskProvider();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TaskProvider getTaskProvider(String storageAccountId)\n throws TaskException;", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public String getCustomer(String custId);", "Customer getCustomerById(int customerId);", "@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}", "public au.gov.asic.types.AccountIdentifierType getCustomer()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Customer getCustomer(int phone)\n\t{\n\t\treturn CustomerContainer.getInstance().getCustomer(phone);\n\t}", "public ICustomer getCustomer(final Customer customer) {\n ICustomer iCustomer = null;\n if(CustomerType.REGULAR.equals(customer.getCustomerType())) {\n iCustomer = new RegularCustomer();\n }\n return iCustomer;\n }", "String getCustomerID();", "com.google.ads.googleads.v6.resources.CustomerClient getCustomerClient();", "String getCustomerNameById(int customerId);", "@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "Customer getCustomer();", "protected Optional<Customer> getCustomer() {\n return customer.getOptional();\n }", "Customer getCustomerById(final Long id);", "private Customer findCustomer(String customerName){\n for(int i=0; i<customers.size(); i+=1){\n Customer existingCustomer = this.customers.get(i);\n if(existingCustomer.getName().equals(customerName)){\n return existingCustomer;\n }\n }\n return null;\n }", "public static Class<?> getProvider() {\n return provider;\n }", "public String getCustomer() {\n return customer;\n }", "public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "public Customer getCustomer(int userId) {\n\t\tIterator i = customers.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tCustomer customer = (Customer) i.next();\n\t\t\tif (userId == customer.getUserId()) {\n\t\t\t\treturn customer;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Customer getCustomerByName(String customerName);", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public Customer getCustomer() {\n String __key = this.customerId;\n if (customer__resolvedKey == null || customer__resolvedKey != __key) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n CustomerDao targetDao = daoSession.getCustomerDao();\n Customer customerNew = targetDao.load(__key);\n synchronized (this) {\n customer = customerNew;\n \tcustomer__resolvedKey = __key;\n }\n }\n return customer;\n }", "@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}", "public Customer getCustomer(String cID, ArrayList<Customer> customers) throws NotFoundException\r\n\t{\t\r\n\t\tCustomer cust = null;\r\n\t\tfor(int i=0; i<customers.size(); i++)\r\n\t\t{\r\n\t\t\tif(customers.get(i).getcID().equals(cID))\r\n\t\t\t\tcust = customers.get(i);\r\n\t\t}\r\n\t\t\r\n\t\tif(cust == null)\r\n\t\t\tthrow new NotFoundException(cID);\r\n\t\t\r\n\t\treturn cust;\t\t\r\n\t}", "CustomerServiceProviderConfiguration getConfiguration(String serviceProviderId);", "public ProviderIdentity getProviderIdentity() {\n\t\treturn this.providerIdentity;\n\t}", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public Customer getCustomer(String customerID, DataPool allData){\r\n\t\t\r\n\t\tif (allData == null || customerID== null) \r\n\t\t\treturn null;\r\n\t\treturn treeData.get(customerID);\r\n\t\t\r\n\t}", "public Long getExternalCustomerId() {\r\n return externalCustomerId;\r\n }", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}", "public Integer getCustomerId()\n {\n return customerId;\n }", "@Override\n @Transactional\n public Customer getCustomer(int customerId) {\n Optional<Customer> queryResult = customerRepository.findById(customerId);\n // if null return new Customer(), otherwise return the Customer\n return queryResult.orElseGet(Customer::new);\n }", "public com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer getCustomer() {\r\n return customer;\r\n }", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\n\t\treturn customer;\n\t}", "static customer getCustomer(String uid) {\n return null;\n }", "public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }", "Customer getCustomer() {\n\t\treturn customer;\n\t}", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n }", "public Long getCustomerId() {\n return customerId;\n }", "public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}", "java.lang.String getProvider();", "public String getProvider() {\n return provider;\n }", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}", "public CustomerPath customer() {\n if (_customer == null)\n _customer = new CustomerPath(this, Keys.PAYMENT_P2007_03__PAYMENT_P2007_03_CUSTOMER_ID_FKEY, null);\n\n return _customer;\n }", "public String getProvider() {\n\t\treturn provider;\n\t}", "public String getProvider() {\r\n return provider;\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 }", "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}", "@Override\n public String getCustomer() {\n return this.customerName;\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public Integer getCustomer() {\n return customer;\n }", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}", "@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}", "public java.lang.String getOrgCustomer() {\n\treturn orgCustomer;\n}", "public static Customer getCustomerByKey(int customerKey) {\r\n\t\tCustomer customer = null;\r\n\t\tConnection conn = ConnectionFactory.getConnection();\r\n\t\tString query = \"SELECT customerUuid, customerType, customerName, personKey, addressKey FROM Customer WHERE customerKey = ?\";\r\n\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tps = conn.prepareStatement(query);\r\n\t\t\tps.setInt(1, customerKey);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\t\r\n\t\t\t\tString customerType = rs.getString(\"customerType\");\r\n\t\t\t\tString customerUuid = rs.getString(\"customerUuid\");\r\n\t\t\t\tString customerName = rs.getString(\"customerName\");\r\n\t\t\t\tint personKey = rs.getInt(\"personKey\");\r\n\t\t\t\tPerson person = Person.getPersonByKey(personKey);\r\n\t\t\t\tint addressKey = rs.getInt(\"addressKey\");\r\n\t\t\t\tAddress address = Address.getAddressByKey(addressKey);\r\n\t\t\t\t\r\n\t\t\t\tif (customerType.equals(\"G\")) {\r\n\t\t\t\t\tcustomer = new GovernmentCustomer(customerUuid, person, customerName, address);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomer = new CorporateCustomer(customerUuid, person, customerName, address);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"SQLException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\t\r\n\t\t\tConnectionFactory.closeConnection(conn, ps, rs);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn customer;\r\n\t}", "public GFRecordDataModel getCustomerLocalCustomerInformation()\n\t{\n\t\treturn getCustomerLocalCustomerInformation(system, unit, customerNumber);\n\t}", "public String getProviderID() {\n return PROVIDER_ID;\n }", "@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}", "public String getCustomerid() {\n return customerid;\n }", "CompletableFuture<BonusCustomer> findById(int customerNumber);", "public static Customer getCustomer(int id_cust) {\n Connection c = connection();\n PreparedStatement stmt;\n int id = 0;\n String name = null;\n String email = null;\n String password = null;\n Customer customer = null;\n try {\n String sql = \"SELECT * FROM customer WHERE id=?;\";\n stmt = c.prepareStatement(sql);\n stmt.setInt(1, id_cust);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n id = rs.getInt(\"id\");\n name = rs.getString(\"name\");\n email = rs.getString(\"email\");\n password = rs.getString(\"password\");\n }\n stmt.close();\n c.close();\n customer = new Customer(id, name, email, password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return customer;\n }", "public IProvider lookupProvider(Class<? extends IProvider> providerType);", "public String getCustomerWorkbenchOperatingSessionRetrieveActionTaskReference() {\n return customerWorkbenchOperatingSessionRetrieveActionTaskReference;\n }", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n\t\treturn customerId;\n\t}", "public Customer searchCustomerByPhone() {\r\n\t\t//Input customer phone.\r\n\t\tString phone = readString(\"Input the customer phone: \");\r\n\t\tCustomer f = my.findByPhone(phone);\r\n\t\treturn f;\r\n\t}", "public String getProvider() {\n\t\treturn this.provider;\n\t}", "public Collection<FixupTask> getFixupTaskByCustomer(final Customer c) {\n\t\tfinal Collection<FixupTask> res = c.getFixupTasks();\n\t\treturn res;\n\t}", "public String getProvider() {\n return mProvider;\n }", "String getPrimaryToken();", "public int currentCustomerId() {\n if (this.currentCustomerAuthenticated()) {\n return this.currentCustomer.getId();\n }\n return 0;\n }", "public int getCustomerID() {\n\t\treturn customerID;\n\t}", "public Integer getCustomerID() {\n return customerID;\n }", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "public CustomerProfile getCustomerProfile();", "@Override\r\n\tpublic PostpaidAccount getCustomerPostPaidAccount(int customerID, long mobileNo) {\n\t\treturn null;\r\n\t}", "Customer getCustomerByMobileNumber(String mobileNumber) throws EOTException;", "public com.commercetools.api.models.customer.CustomerReference getCustomer() {\n return this.customer;\n }", "@Override\n\tpublic Customer findById(Long customerId) {\n\t\tOptional<Customer> optional = custRepository.findById(customerId);\n\t\tif(!optional.isPresent()) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id \"+customerId+\" not found\");\n\t\t}\n\t\treturn optional.get();\n\t\t\n\t}", "Customer findById(Long id);" ]
[ "0.60801405", "0.58089626", "0.5495044", "0.5495044", "0.5438822", "0.5305601", "0.52894056", "0.5230795", "0.5211832", "0.51652545", "0.5164927", "0.51437825", "0.51322705", "0.50677294", "0.5054218", "0.50369495", "0.501502", "0.5006555", "0.5002358", "0.50011104", "0.49983817", "0.49937677", "0.49833822", "0.49798244", "0.4962582", "0.4961291", "0.4943802", "0.4943802", "0.49390507", "0.49351907", "0.4927215", "0.49178025", "0.49127445", "0.48902187", "0.4887487", "0.48820862", "0.48773703", "0.4877169", "0.48728105", "0.48437935", "0.48369718", "0.4824581", "0.48217994", "0.48169172", "0.48087937", "0.48087937", "0.480749", "0.48008415", "0.4800219", "0.47907472", "0.47895828", "0.47892714", "0.47880498", "0.47855946", "0.47783378", "0.47756222", "0.47743368", "0.47717845", "0.47634497", "0.4760064", "0.47586802", "0.47536218", "0.47520995", "0.47425893", "0.47359762", "0.47283837", "0.47255933", "0.47255933", "0.47253937", "0.47221097", "0.47213033", "0.471685", "0.4713813", "0.47096714", "0.47091576", "0.46986496", "0.46984428", "0.4698087", "0.4697572", "0.46963638", "0.46923268", "0.46923268", "0.4689135", "0.46849912", "0.46825495", "0.46819216", "0.46812564", "0.4676524", "0.46752775", "0.46664622", "0.46636194", "0.46510515", "0.46496484", "0.46476194", "0.46435902", "0.46426976", "0.4641978", "0.46371284", "0.46344298", "0.46298584" ]
0.5874288
1
Retrieves a particular task provider based on the storage account ID.
public TaskProvider getTaskProvider(String storageAccountId) throws TaskException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TaskProvider getTaskProvider();", "StorageEntity getStorageById(Integer id);", "@Override\r\n\tpublic Provider findProvider(Long providerId) {\n\t\treturn providerRepository.findOne(providerId);\r\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 }", "java.lang.String getProvider();", "@Override\n @Path(\"/storages/{sid}\")\n public IStorageResource findStorage(@PathParam(\"sid\") int storageId) {\n return new StorageResource(provider.getProviderId(), cluster.getClusterId(), storageId);\n }", "public Task getTask(Integer tid);", "public StorageDTO getStorage(Long storage_id) {\n EntityManager em = getEntityManager();\n Storage storageDTO = em.find(Storage.class, storage_id);\n return new StorageDTO(storageDTO);\n }", "eu.europeana.uim.repox.rest.client.xml.Provider retrieveProvider(String providerId)\n throws RepoxException;", "@Override\n public Optional<Task> getTaskById(UUID id)\n {\n return null;\n }", "public Task getTask(final int id) {\n return tasks.get(id);\n }", "@GET\n\t@Path(\"/{id}\")\n\t@Produces({MediaType.APPLICATION_JSON})\n\t@ApiOperation(value = \"Returns the Provider with the given id\"\n\t\t, notes = \"\"\n\t\t, response = Provider.class\n\t\t, responseContainer = \"\")\n\tpublic Provider getProvider(@PathParam(\"id\") Long id) {\n\t\treturn null;\n\t}", "@NonNull\n public StorageReference getStorage() {\n return getTask().getStorage();\n }", "ServiceProducer getServiceProvider(int id);", "public IProvider lookupProvider(Class<? extends IProvider> providerType);", "Storage selectByPrimaryKey(StorageKey key);", "public interface Storage {\n\n String getId();\n}", "public static Class<?> getProvider() {\n return provider;\n }", "@Transactional(Transactional.TxType.REQUIRES_NEW)\n public TaskDef retrieve(Long task_id) {\n return TaskDefIntegrationService.find(task_id);\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 Storageplace getStorageplace(int storageplaceKey){\r\n\t\t List<Storageplace> storageplaces = getAll();\r\n\t for(Storageplace storageplace: storageplaces){\r\n\t if(storageplace.getStorageplaceKey() == storageplaceKey){\r\n\t return storageplace;\r\n\t }\r\n\t }\r\n\t return null;\r\n\t }", "public String storageAccountId() {\n return this.storageAccountId;\n }", "@NonnullAfterInit public Function<ProfileRequestContext, String> getStorageKeyLookupStrategy() {\n return storageKeyLookupStrategy;\n }", "String getStorageVendor();", "public String storageAccount() {\n return this.storageAccount;\n }", "Storage selectByPrimaryKey(Integer recordId);", "public StorageAccount storageAccount() {\n return this.storageAccount;\n }", "public StorageAccount storageAccount() {\n return this.storageAccount;\n }", "@objid (\"13e63a4b-fab3-4b16-b7f9-69b4d6187c94\")\n ProvidedInterface getProvider();", "public String getProviderClassName();", "@NonnullAfterInit public Function<ProfileRequestContext, String> getStorageContextLookupStrategy() {\n return storageContextLookupStrategy;\n }", "public <E extends Retrievable> E getObject(Class<E> clazz, int id);", "@Override\r\n\tpublic ExecuteTask getById(int id) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_id = ?\";\r\n\t\treturn get(sql,id);\r\n\t}", "@Override\r\n\tpublic Optional<Task> findTask(Integer taskId) {\n\t\treturn taskRepository.findById(taskId);\r\n\t}", "public TutorStripe retrieveAccount(int tutorId) throws StripeException;", "public static Identity get(String provider, String id)\n\t{\n\t\tString key=Identity.composeKey(provider, id);\n\t\treturn VertexFactory.getInstance().getByPropertyExact(Identity.class, \"identifier\", key);\n\t}", "public String getProvider() {\n return provider;\n }", "public String getProvider() {\r\n return provider;\r\n }", "final public CredentialStore getCredentialStore(CardID cardID, Class clazz)\n {\n if (clazz == null)\n clazz = CredentialStore.class;\n\n CredentialStore store = null;\n int size = credentialBag.size();\n\n for(int i=0; ((store==null)&&(i<size)); i++)\n {\n CredentialStore cs = (CredentialStore) credentialBag.elementAt(i);\n\n if (clazz.isInstance(cs) && cs.supports(cardID))\n store = cs;\n }\n\n return store;\n }", "public Object retrieveGrant(final String id, final String grantId) throws Exception {\r\n return null;\r\n }", "public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}", "Object getTaskId();", "com.google.privacy.dlp.v2.CloudStorageOptions getCloudStorageOptions();", "@Override\n\tpublic Teatask getById(int taskid)\n\t{\n\t\treturn teataskMapper.getById(taskid);\n\t}", "String GetTaskName(int Catalog_ID);", "String get(int partitionID, String key);", "net.zyuiop.ovhapi.api.objects.license.Task getServiceNameTasksTaskId(java.lang.String serviceName, long taskId) throws java.io.IOException;", "Callable<E> getTask();", "String getProviderString();", "public String getProviderID() {\n return PROVIDER_ID;\n }", "public MaskingProvider getProviderFromType(MaskingProviderTypes providerType,\r\n DeidMaskingConfig deidMaskingConfig, MaskingProviderConfig config, String tenantId,\r\n String localizationProperty);", "@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 }", "Task selectByPrimaryKey(String taskid);", "public TaskDetails getSpecificTask (int position){\n return taskList.get(position);\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 <T extends Base> T get(Class<T> T, String id) throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn Core.get(T, id, getHttpMethodExecutor());\n\t}", "Providers selectByPrimaryKey(Long id);", "<T> T get(Class<T> entityClass, Serializable id);", "public String getProvider() {\n\t\treturn provider;\n\t}", "public String getProvider() {\n\t\treturn this.provider;\n\t}", "public FingerprintManager getFingerprintOnSplitscreen(Context context, Task task) {\n DisplayContent display = task.getDisplayContent();\n if (display == null || !display.hasSplitScreenPrimaryStack()) {\n return null;\n }\n if (this.mFingerprintManager == null) {\n this.mFingerprintManager = (FingerprintManager) context.getSystemService(FingerprintManager.class);\n }\n FingerprintManager fingerprintManager = this.mFingerprintManager;\n if (fingerprintManager != null) {\n return fingerprintManager;\n }\n return null;\n }", "public java.lang.String getProviderId() {\n java.lang.Object ref = providerId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n providerId_ = s;\n return s;\n }\n }", "TrackerTasks getTrackerTasks(final Integer id);", "java.lang.String getArtifactStorage();", "RemoteStorageContext getParentRemoteStorageContext();", "<T> T get(Class<T> clazz, Serializable id);", "public DownloadProvider getProvider() {\n return provider;\n }", "<T> AbstractMultiTenantPool.Entry<T> getEntry();", "public String getProviderId() {\n\t\treturn providerId;\n\t}", "public String getProviderId() {\n\t\treturn providerId;\n\t}", "public static Task fetchByUUID_G(String uuid, long groupId,\n\t\tboolean retrieveFromCache) {\n\t\treturn getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);\n\t}", "TrackerTasks loadTrackerTasks(final Integer id);", "public Task getTaskById(Long id ) {\n\t\treturn taskRepo.getOne(id);\n\t}", "String getTaskId();", "public AccountStorage getStore() {\n\t\t@SuppressWarnings(\"resource\")\n\t\tApplicationContext springContext = new AnnotationConfigApplicationContext(AccountServerConfig.class);\n return (AccountStorage) springContext.getBean(\"getStorage\");\n\t}", "public String getProvider() {\n return mProvider;\n }", "@Override\n public PGPPublicKey getPGPPublicKeyById(String id) throws IOException, PGPException {\n // TODO: bring that back after LocalEGA key server becomes able to register itself against Eureka\n // ResponseEntity<Resource> responseEntity =\n // restTemplate.getForEntity(keyServiceURL + \"/pgp/\" + id, Resource.class);\n\n InputStream in = PGPUtil.getDecoderStream(new URL(cegaURL + \"/pgp/\" + id).openStream());\n PGPPublicKeyRingCollection pgpPublicKeyRings = new PGPPublicKeyRingCollection(in, new BcKeyFingerprintCalculator());\n PGPPublicKey pgpPublicKey = null;\n Iterator keyRings = pgpPublicKeyRings.getKeyRings();\n while (pgpPublicKey == null && keyRings.hasNext()) {\n PGPPublicKeyRing kRing = (PGPPublicKeyRing) keyRings.next();\n Iterator publicKeys = kRing.getPublicKeys();\n while (publicKeys.hasNext()) {\n PGPPublicKey key = (PGPPublicKey) publicKeys.next();\n if (key.isEncryptionKey()) {\n pgpPublicKey = key;\n break;\n }\n }\n }\n if (pgpPublicKey == null) {\n throw new IllegalArgumentException(\"Can't find encryption key in key ring.\");\n }\n return pgpPublicKey;\n }", "LockStorage getLockStorage();", "private ProviderLoader loadFileProvider(final cacheItem cached) {\n final File file = cached.getFirst();\n final PluginScanner second = cached.getSecond();\n return filecache.get(file, second);\n }", "<K extends BasicEntity> K get(Class<K> clazz, Object id);", "public Object retrieveCurrentGrants(final String id) throws Exception {\r\n return null;\r\n }", "public List<TaskMaster> retrieveTaskByProjectId(Long projectId);", "public <T extends SecretsStorage> T getSecretsStorage(Class<T> implementation, WithSecrets config) {\n\n return null;\n }", "private ExportPkg pickProvider(ImportPkg ip) {\n if (Debug.packages) {\n Debug.println(\"pickProvider: for - \" + ip);\n }\n ExportPkg provider = null;\n for (Iterator i = ip.pkg.exporters.iterator(); i.hasNext(); ) {\n ExportPkg ep = (ExportPkg)i.next();\n tempBlackListChecks++;\n if (tempBlackList.contains(ep)) {\n tempBlackListHits++;\n continue;\n }\n if (!checkAttributes(ep, ip)) {\n if (Debug.packages) {\n Debug.println(\"pickProvider: attribute match failed for - \" + ep);\n }\n continue;\n }\n if (tempResolved.contains(ep.bpkgs.bundle)) {\n provider = ep;\n break;\n }\n if ((ep.bpkgs.bundle.state & BundleImpl.RESOLVED_FLAGS) != 0) {\n HashMap oldTempProvider = (HashMap)tempProvider.clone();\n if (checkUses(ep)) {\n provider = ep;\n break;\n } else {\n tempProvider = oldTempProvider;\n tempBlackList.add(ep);\n continue;\n }\n }\n if (ep.bpkgs.bundle.state == Bundle.INSTALLED && checkResolve(ep.bpkgs.bundle)) { \n provider = ep;\n break;\n }\n }\n if (Debug.packages) {\n if (provider != null) {\n Debug.println(\"pickProvider: \" + ip + \" - got provider - \" + provider);\n } else {\n Debug.println(\"pickProvider: \" + ip + \" - found no provider\");\n }\n }\n return provider;\n }", "public FileStorageAccount getAccount() {\n return account;\n }", "public java.lang.String getProviderId() {\n java.lang.Object ref = providerId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n providerId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "TaskFactory getTaskFactory();", "public static Task fetchByPrimaryKey(long taskId) {\n\t\treturn getPersistence().fetchByPrimaryKey(taskId);\n\t}", "public java.lang.String getProvider() {\n java.lang.Object ref = provider_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n provider_ = s;\n }\n return s;\n }\n }", "@GET(\"v3/accounts/{account_id}/identity-providers/{identity_provider_id}\")\n Call<IdentityProviderInfo>\n getAccountIdentityProvider(@retrofit2.http.Path(value = \"account_id\", encoded = true) String accountId,\n @retrofit2.http.Path(value = \"identity_provider_id\",\n encoded = true) String identityProviderId);", "String get(String id);", "public interface IStorageManager {\n\n\tpublic String getStorageType();\n\n\tpublic String getStorageId();\n\n\tpublic void initialize(String configFile) throws Exception;\n}", "private static EndpointProvider\n getEndpointProvider(final String providerClass) {\n ServiceLoader<EndpointProvider> providerServices\n = ServiceLoader.load(EndpointProvider.class);\n for (EndpointProvider provider : providerServices) {\n if (providerClass.equals(provider.getClass().getName())) {\n return provider;\n }\n }\n return null;\n }", "public java.lang.String getProvider() {\n java.lang.Object ref = provider_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n provider_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public interface KeyPairProvider {\n\n KeyPair getJWTKey();\n\n /**\n * Get a key with the specified alias;\n * If there is no key of this alias, return\n * {@code null}\n *\n * @param alias the alias of key to load\n * @return a valid key pair or {@code null} if a key with this alias is not available\n */\n KeyPair getKey(String alias);\n}", "TrackerListTasktype getTrackerListTasktype(final Integer id);", "public interface TaskStorage {\n\n public long addTask(Task task);\n public int removeTask(long id);\n public List<Task> findAllTasks();\n public long numberOfTasks();\n}", "@Override\r\n\tpublic ExecuteTask get(int memberId,int taskId) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_member_id = ? AND er_task_id = ?\";\r\n\t\treturn get(sql,memberId,taskId);\r\n\t}", "@Override\r\n\tpublic List<ExecuteTask> getByType(String taskType) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_task_id IN(SELECT task_id FROM task WHERE task_type = ?)\";\r\n\t\treturn getForList(sql,taskType);\r\n\t}", "public static String lookupProviderNameFromId(int protocol) {\n switch (protocol) {\n case Im.PROTOCOL_GOOGLE_TALK:\n return ProviderNames.GTALK;\n case Im.PROTOCOL_AIM:\n return ProviderNames.AIM;\n case Im.PROTOCOL_MSN:\n return ProviderNames.MSN;\n case Im.PROTOCOL_YAHOO:\n return ProviderNames.YAHOO;\n case Im.PROTOCOL_ICQ:\n return ProviderNames.ICQ;\n case Im.PROTOCOL_JABBER:\n return ProviderNames.JABBER;\n case Im.PROTOCOL_SKYPE:\n return ProviderNames.SKYPE;\n case Im.PROTOCOL_QQ:\n return ProviderNames.QQ;\n }\n return null;\n }" ]
[ "0.6139584", "0.58817375", "0.53974134", "0.52710193", "0.5213247", "0.52039456", "0.5168155", "0.51515007", "0.5128753", "0.50718683", "0.50514686", "0.5044852", "0.5009175", "0.50046253", "0.49950197", "0.49883252", "0.49529678", "0.4944824", "0.49297133", "0.48902178", "0.4887412", "0.48615286", "0.48417932", "0.4816905", "0.47977412", "0.4786505", "0.47752607", "0.47752607", "0.47684416", "0.47243348", "0.47158262", "0.47135726", "0.47110233", "0.47048816", "0.46847722", "0.46727848", "0.46681306", "0.46599036", "0.4656645", "0.46511918", "0.46510366", "0.46488148", "0.4648026", "0.4634722", "0.46345875", "0.46204993", "0.46139205", "0.46084604", "0.45997605", "0.4585621", "0.45830783", "0.45786762", "0.45687005", "0.45663896", "0.4558411", "0.45489967", "0.45449388", "0.45438492", "0.45380765", "0.45232263", "0.45222607", "0.45188296", "0.45180985", "0.45178288", "0.45115283", "0.45069495", "0.45010805", "0.45008907", "0.44817212", "0.44817212", "0.44812414", "0.44798288", "0.44785267", "0.44778177", "0.44777465", "0.4469871", "0.44658574", "0.44617987", "0.44479248", "0.44421503", "0.4441961", "0.44402543", "0.44401285", "0.44396737", "0.44355223", "0.44306466", "0.44304076", "0.4430173", "0.44263577", "0.44212458", "0.44146475", "0.44118264", "0.43987396", "0.4395132", "0.43950942", "0.4391178", "0.4388881", "0.43868187", "0.43599612", "0.4355204" ]
0.796185
0
/ renamed from: a
public final int mo15605a(Bitmap bitmap) { if (bitmap == null) { C3900je.m17429b("Bitmap is null. Skipping putting into the Memory Map."); return -1; } int andIncrement = this.f13511b.getAndIncrement(); this.f13510a.put(Integer.valueOf(andIncrement), bitmap); return andIncrement; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public final Bitmap mo15606a(Integer num) { return (Bitmap) this.f13510a.get(num); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: b
public final void mo15607b(Integer num) { this.f13510a.remove(num); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "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 int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ 36: / 37:
protected RemoteInvocation readRemoteInvocation(HttpExchange exchange) /* 38: */ throws IOException, ClassNotFoundException /* 39: */ { /* 40: 91 */ return readRemoteInvocation(exchange, exchange.getRequestBody()); /* 41: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int mo36g() {\n return 8;\n }", "public int mo36g() {\n return 4;\n }", "public int mo36g() {\n return 2;\n }", "public int method_2436() {\r\n return 16;\r\n }", "void mo33731Pw();", "private int hash2(T key) { //first two char length\r\n\r\n if(key.toString().length() ==1){ //in the case that the key is only one char long\r\n return key.toString().charAt(0)%newTable.length;\r\n }\r\n return (26 * key.toString().charAt(0)+key.toString().charAt(1))% newTable.length;\r\n\r\n }", "public static void main(String[] args) {\n\n\n\n\n\n System.out.println((char) ('a' - 32));\n }", "public int hash2 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal = (37 * hashVal) + key.charAt(i);\n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }", "private int funcaoHash(int x) {\n\t\treturn (x % 37);\n\t}", "public static void main(String[] args) {\n String key = \"4071321\";\n String strToDecode = \"Li, ailu jw au facntll\";\n StringBuilder ES = new StringBuilder();\n long spCount = 0;\n for(int i= 0;i<strToDecode.length();i++)\n {\n int ascii = strToDecode.charAt(i);\n\n if((ascii<65 || ascii>122) || (ascii > 90 && ascii < 97))\n {\n char a = strToDecode.charAt(i);\n System.out.println(a);\n ES.append(a);\n spCount++;\n }\n else\n {\n int keyPos = (int)(i - spCount)%7;\n int subKey = Character.getNumericValue(key.charAt(keyPos));\n long strAscii = ascii - subKey;\n\n if(strAscii<65)\n {\n strAscii = 91-(65- strAscii);\n }\n\n if(ascii >=97 && strAscii< 97) {\n strAscii = 123 - (97 - strAscii);\n }\n ES.append((char)strAscii);\n }\n\n }\n System.out.println(ES);\n\n }", "int toHashKey(String s)\n\t{\n\t\tint A = 1952786893;\n\t\tint B = 367257;\n\t\tint v = B;\n\t\tfor (int j = 0; j < s.length(); j++)\n\t\t{\n\t\t\tchar c = s.charAt(j);\n\t\t\tv = A * (v + (int) c + j) + B;\n\t\t}\n\n\t\tif (v < 0) v = -v;\n\t\treturn v;\n\t}", "private static char[] m3268z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 18);\n }\n return toCharArray;\n }", "public void uneHeureDePlus() {\n\t\tthis.h = h+1 > 23 ? 0 : h+1 ;\n\t}", "public abstract int mo9736c(int i);", "public java.lang.CharSequence getVar36() {\n return var36;\n }", "public static void main(String[] args) {\r\n long randomNumber = System.currentTimeMillis();\r\n // Get number less than 26\r\n randomNumber = randomNumber % 26;\r\n \r\n // add 65 to the number\r\n randomNumber += 65;\r\n System.out.println((char) randomNumber);\r\n }", "public int mo3836t() {\n return this.f1467ap;\n }", "public static C0118e1 m386a() {\n return f359h;\n }", "public int hash3 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ ){\n hashVal = (37 * hashVal) + key.charAt(i);}\n hashVal %= tableSize;\n if(hashVal<0)\n hashVal += tableSize; \n if(hashVal != 0)\n return hashVal;\n else\n return 0;\n }\n else\n {\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "public java.lang.CharSequence getVar36() {\n return var36;\n }", "private int convert(int keyCode) {\n\t\tif (keyCode >= 96 && keyCode <= 105) {\n\t\t\treturn keyCode - 48;\n\t\t} else if (keyCode == 81) { // qwertyuiop -> 0-9\n\t\t\tkeyCode = 49;\n\t\t} else if (keyCode == 87) {\n\t\t\tkeyCode = 50;\n\t\t} else if (keyCode == 69) {\n\t\t\tkeyCode = 51;\n\t\t} else if (keyCode == 82) {\n\t\t\tkeyCode = 52;\n\t\t} else if (keyCode == 84) {\n\t\t\tkeyCode = 53;\n\t\t} else if (keyCode == 89) {\n\t\t\tkeyCode = 54;\n\t\t} else if (keyCode == 85) {\n\t\t\tkeyCode = 55;\n\t\t} else if (keyCode == 37) {\n\t\t\tkeyCode = 56;\n\t\t} else if (keyCode == 79) {\n\t\t\tkeyCode = 57;\n\t\t} else if (keyCode == 80) {\n\t\t\tkeyCode = 48;\n\t\t}\n\t\treturn keyCode;\n\t}", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }", "private int getHash(String word){\n\t\tif (word == null){\n\t\t\treturn INVALID;\n\t\t}\n\n\t\tint hash = 52;\n\t\tif ((word.charAt(0) >= 'a') && (word.charAt(0) <= 'z')){\n\t\t\thash = word.charAt(0) - 'a';\n\t\t}\n\t\telse if ((word.charAt(0) >= 'A') && (word.charAt(0) <= 'Z')){\n\t\t\thash = word.charAt(0) - 'A' + 26;\n\t\t}\n\t\treturn hash;\n\t}", "private static String m10f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n return stringBuilder.toString();\n }", "@Override\n\tpublic int hash(String str) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint temp = (int) str.charAt(i);\n\t\t\tresult += (temp * (Math.pow(37, i)));\n\t\t}\n\t\treturn result;\n\t}", "private int getValueFromBase64Alphabet(char character)\r\n {\r\n if (character >= 'A' && character <= 'Z')\r\n {\r\n return character - 'A';\r\n }\r\n if (character >= 'a' && character <= 'z')\r\n {\r\n return character - 'a' + 26;\r\n }\r\n if (character >= '0' && character <= '9')\r\n {\r\n return character - '0' + 52;\r\n }\r\n if (character == '+')\r\n {\r\n return 62;\r\n }\r\n if (character == '/')\r\n {\r\n return 63;\r\n }\r\n if (character == '=')\r\n {\r\n return 0;\r\n }\r\n return -1;\r\n }", "private char hallarLetra() {\r\n\t\tchar[] letra= {'T','R','W','A','G','M','Y','F','P','D','X',\r\n\t\t\t\t\t'B','N','J','Z','S','Q','V','H','L','C','K','E'};\r\n\t\treturn letra[numeroDNI%23];\r\n\t}", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "private C1201f m6938h() {\n C1219t b = C1217q.m6361a().m6364b();\n return b != null ? b.f3525f : null;\n }", "public int mo34973b() {\n return 48;\n }", "char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}", "public int aa() {\n return this.am * 121064660;\n }", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}", "public abstract C3635j mo9738d();", "public abstract Integer mo36210m();", "private static char[] m7947z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 16);\n }\n return toCharArray;\n }", "public abstract int mo9732a();", "private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }", "public abstract long mo9748m();", "private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }", "private int hash3(T key) { //last char + length of word\r\n char lastchar = key.toString().charAt( key.toString().length()-1 );\r\n return (lastchar + key.toString().length())%newTable.length;\r\n }", "private int createPosition (String s) {\r\n\t\tint x = 37;\r\n\t\tdouble hashCode=0;\r\n\t\tfor (int i=0; i<s.length(); i++) {\r\n\t\t\thashCode = (double) (hashCode+ (int)(s.charAt(s.length()-(i+1)))*(Math.pow(x,i)));\r\n\t\t}\r\n\t\treturn (int)(hashCode % size);\r\n\t}", "Aweme mo62993e();", "public static int m8636a(String str) {\n int i;\n try {\n i = C3700r1.m8884a((CharSequence) str);\n } catch (C3703c unused) {\n i = str.getBytes(C3594b0.f8972a).length;\n }\n return m8656e(i);\n }", "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "public static void main(String[] args) {\n\t\tint num=(int) (Math.random()*36 ) ;\r\n\t\tSystem.out.println( Math.random());WW\r\n\t\tSystem.out.println(num);\r\n\t}", "public static String randAlnumSym(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(94);\n if (n>83){\n result = String.valueOf(n-84);\n }else {\n result = String.valueOf(KEYBOARD.charAt(rand.nextInt(84))); //both\n }\n break;\n case 1:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randLower();\n }\n break;\n case 2:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randUpper();\n }\n break;\n }\n return result;\n }", "public interface KeyCode {\n\n // Alphabet keys:\n int A_UPPER_CASE = 65;\n int B_UPPER_CASE = 66;\n int C_UPPER_CASE = 67;\n int D_UPPER_CASE = 68;\n int E_UPPER_CASE = 69;\n int F_UPPER_CASE = 70;\n int G_UPPER_CASE = 71;\n int H_UPPER_CASE = 72;\n int I_UPPER_CASE = 73;\n int J_UPPER_CASE = 74;\n int K_UPPER_CASE = 75;\n int L_UPPER_CASE = 76;\n int M_UPPER_CASE = 77;\n int N_UPPER_CASE = 78;\n int O_UPPER_CASE = 79;\n int P_UPPER_CASE = 80;\n int Q_UPPER_CASE = 81;\n int R_UPPER_CASE = 82;\n int S_UPPER_CASE = 83;\n int T_UPPER_CASE = 84;\n int U_UPPER_CASE = 85;\n int V_UPPER_CASE = 86;\n int W_UPPER_CASE = 87;\n int X_UPPER_CASE = 88;\n int Y_UPPER_CASE = 89;\n int Z_UPPER_CASE = 90;\n\n // int A_LOWER_CASE = 97;\n // int B_LOWER_CASE = 98;\n // int C_LOWER_CASE = 99;\n // int D_LOWER_CASE = 100;\n // int E_LOWER_CASE = 101;\n // int F_LOWER_CASE = 102;\n // int G_LOWER_CASE = 103;\n // int H_LOWER_CASE = 104;\n // int I_LOWER_CASE = 105;\n // int J_LOWER_CASE = 106;\n // int K_LOWER_CASE = 107;\n // int L_LOWER_CASE = 108;\n // int M_LOWER_CASE = 109;\n // int N_LOWER_CASE = 110;\n // int O_LOWER_CASE = 111;\n // int P_LOWER_CASE = 112;\n // int Q_LOWER_CASE = 113;\n // int R_LOWER_CASE = 114;\n // int S_LOWER_CASE = 115;\n // int T_LOWER_CASE = 116;\n // int U_LOWER_CASE = 117;\n // int V_LOWER_CASE = 118;\n // int W_LOWER_CASE = 119;\n // int X_LOWER_CASE = 120;\n // int Y_LOWER_CASE = 121;\n // int Z_LOWER_CASE = 122;\n\n // Numeric keys:\n int NUMPAD_0 = 96;\n int NUMPAD_1 = 97;\n int NUMPAD_2 = 98;\n int NUMPAD_3 = 99;\n int NUMPAD_4 = 100;\n int NUMPAD_5 = 101;\n int NUMPAD_6 = 102;\n int NUMPAD_7 = 103;\n int NUMPAD_8 = 104;\n int NUMPAD_9 = 105;\n\n int NUM_0 = 48;\n int NUM_1 = 49;\n int NUM_2 = 50;\n int NUM_3 = 51;\n int NUM_4 = 52;\n int NUM_5 = 53;\n int NUM_6 = 54;\n int NUM_7 = 55;\n int NUM_8 = 56;\n int NUM_9 = 57;\n\n int PERSIAN_0 = 1776;\n int PERSIAN_1 = 1777;\n int PERSIAN_2 = 1778;\n int PERSIAN_3 = 1779;\n int PERSIAN_4 = 1780;\n int PERSIAN_5 = 1781;\n int PERSIAN_6 = 1782;\n int PERSIAN_7 = 1783;\n int PERSIAN_8 = 1784;\n int PERSIAN_9 = 1785;\n\n // Function keys:\n int F1 = 112;\n int F2 = 113;\n int F3 = 114;\n int F4 = 115;\n int F5 = 116;\n int F6 = 117;\n int F7 = 118;\n int F8 = 119;\n int F9 = 120;\n int F10 = 121;\n int F11 = 122;\n int F12 = 123;\n\n // Control Keys:\n int BACKSPACE = 8;\n int TAB = 9;\n int ENTER = 13;\n int SHIFT = 16;\n int CTRL = 17;\n int ALT = 18;\n int PAUSE_BREAK = 19;\n int CAPS_LOCK = 20;\n int ESCAPE = 27;\n int PAGEUP = 33;\n int PAGEDOWN = 34;\n int END = 35;\n int HOME = 36;\n int LEFT = 37;\n int UP = 38;\n int RIGHT = 39;\n int DOWN = 40;\n int PRINT_SCREEN = 44;\n int INSERT = 45;\n int DELETE = 46;\n\n // Other Keys:\n int SPACE = 32;\n int EQUALITY = 61;\n int LEFT_WINDOW_KEY = 91;\n int RIGHT_WINDOW_KEY = 92;\n int SELECT_KEY = 93; // besides of right control key (context menu key, usually works like right click)\n int MULTIPLY = 106;\n int ADD = 107;\n int SUBTRACT = 109;\n int DECIMAL_POINT = 110;// . in numpad section\n int DIVIDE = 111;\n int NUM_LOCK = 144;\n int SCROLL_LOCK = 145;\n int SEMI_COLON = 186;// ;\n int EQUAL_SIGN = 187;// =\n int COMMA = 188;// ,\n int DASH = 189;// -\n int PERIOD = 190;// . in alphabet section\n int FORWARD_SLASH = 191;// /\n int GRAVE_ACCENT = 192; // `\n int OPEN_BRACKET = 219; // [\n int BACK_SLASH = 220; // \\\n int CLOSE_BRAKET = 221; // ]\n int SINGLE_QUOTE = 222; // '\n}", "public String getLowestChromKey();", "private static char[] m6491z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 108);\n }\n return toCharArray;\n }", "private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }", "public String mo7638a() {\n int i = this.f4379a;\n if (i == 1) {\n return \"add\";\n }\n if (i == 2) {\n return \"rm\";\n }\n if (i != 4) {\n return i != 8 ? \"??\" : \"mv\";\n }\n return \"up\";\n }", "private int hash1(K key) {\n int h = 0;\n int seed = 31;//素数\n String s = key.toString();\n for (int i = 0; i != s.length(); ++i) {\n h = seed * h + s.charAt(i);\n }\n return h % length;\n }", "long mo1636a(long j, alb alb);", "dkj mo4367a(dkk dkk);", "public int m9737f() {\r\n return this.f6260b;\r\n }", "private static char[] m619z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 20);\n }\n return toCharArray;\n }", "private static void cryptanalysis() {\n\t for (char cipherChar : cipherText.toCharArray()) {\n\t if (Character.isLetter(cipherChar)) { // only letters are encrypted, punctuation marks and whitespace are not\n\t // following line converts letters to numbers between 0 and 25\n\t int cipher = (int) cipherChar - alphaIndex;\n\t // following line increments the value at frequency[cipher] to count frequency of letters used\n\t frequency[cipher] = frequency[cipher] + 1;\n\t }\n\t } \n\t char currChar = 'A';\n \t for (int i = 0; i < 26; i++) {\n \t\t System.out.println(currChar++ + \" \" + frequency[i]);\n \t }\n }", "public short mo34e() {\n return 41;\n }", "private static int isIsolatedTashkeelChar(char ch){\n if (ch >= 0xfe70 && ch <= 0xfe7f && ch != NEW_TAIL_CHAR && ch != 0xFE75){\n return (1 - tashkeelMedial [ch - 0xFE70]);\n } else if(ch >= 0xfc5e && ch <= 0xfc63){\n return 1;\n } else{\n return 0;\n }\n }", "public static void main(String args[]) {\n Scanner sc=new Scanner(System.in);\n String s =sc.nextLine();\n int key =sc.nextInt();\n int len =s.length();\n for(int i=0;i<len;i++)\n {\n char ch =s.charAt(i);\n if(ch == ' ')\n System.out.print(\" \");\n else{\n\t\t if(ch >= 65 && ch<= 90){\n\t\t ch = (char)(ch -65);\n\t\t\t ch = (char)((26+ch-key)%26);\n\t\t\t ch =(char)(ch +65);\n\t\t\t System.out.print(ch);\n\t\t }\n\t\t else{\n\t\t ch = (char)(ch -97);\n\t\t\t ch = (char)((26+ch-key)%26);\n\t\t\t ch =(char)(ch +97);\n\t\t\t System.out.print(ch);\n\t\t }\n\t\t \n }\n \n }\n }", "static int makeAnagram(String a, String b) {\n int[] letters = new int[26];\n\n for (char c: a.toCharArray()){\n letters[c-'a']++;\n }\n\n for (char c: b.toCharArray()){\n letters[c-'a']--;\n }\n\n int sum = 0;\n\n for (int x:letters){\n sum+=Math.abs(x);\n }\n return sum;\n\n }", "public int mo29670a(String str) {\n int length = str.length();\n int i = this.f19526c;\n for (int i2 = 0; i2 < length; i2++) {\n i = (i * 33) + str.charAt(i2);\n }\n if (i == 0) {\n return 1;\n }\n return i;\n }", "public void mo3946e() {\n m25427g();\n }", "long getLetterId();", "long getLetterId();", "private int hashFunc(String input) {\n\t\tBigInteger value = BigInteger.valueOf(0);\n\t\tBigInteger k2 = new BigInteger(\"27\");\n\t\tchar c = input.charAt(0);\n\t\tlong i1 = (int) c - 96;\n\t\tBigInteger k1 = new BigInteger(\"0\");\n\t\tk1 = k1.add(BigInteger.valueOf(i1));\n\t\tvalue = k1;\n\n\t\tfor (int i = 1; i < input.length(); i++) {\n\n\t\t\tchar c2 = input.charAt(i);\n\n\t\t\tvalue = value.multiply(k2);\n\n\t\t\tlong i2 = (int) c2 - 96;\n\t\t\tBigInteger k3 = new BigInteger(\"0\");\n\t\t\tk3 = k3.add(BigInteger.valueOf(i2));\n\n\t\t\tvalue = value.add(k3);\n\n\t\t}\n\t\tBigInteger size = new BigInteger(\"0\");\n\t\tsize = size.add(BigInteger.valueOf(this.size));\n\t\tvalue = value.mod(size);\n\n\t\treturn value.intValue();\n\t}", "private static int letterToNumber(String str) {\n return (\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\".indexOf(str))%26+1;\n }", "int fixIndex(int i) {\n int ALPHABET_SCOPE = 26;\n char ch = (char) (isEncryption ? i - shift : i + shift);\n int index = i;\n\n if (ch >= 65 && ch <= 90) {\n while (index < 65)\n index += ALPHABET_SCOPE;\n while (index > 90)\n index -= ALPHABET_SCOPE;\n } else {\n while (index < 97)\n index += ALPHABET_SCOPE;\n while (index > 122)\n index -= ALPHABET_SCOPE;\n }\n return index;\n }", "C5727e mo33224a();", "static int getAnchor(int a){\n return a-((a-1)%3);\n }", "private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }", "public static zzcyw m29017a() {\n return f27663a;\n }", "String mo38971b();", "long mo20406a();", "public void setVar36(java.lang.CharSequence value) {\n this.var36 = value;\n }", "public final void mo7596sH(String str) {\n }", "public String getHighestChromKey();", "public int mo9736c(int i) {\n if (i >= 0) {\n int a = mo9732a() + i;\n int i2 = this.f9077l;\n if (a <= i2) {\n this.f9077l = a;\n mo9756A();\n return i2;\n }\n throw C3606c0.m8181h();\n }\n throw C3606c0.m8179f();\n }", "@Override\n\tpublic void challenge17() {\n\n\t}", "public abstract long mo9743h();", "private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }", "public static asw m47155c() {\n return zzfkz;\n }", "public int mo3839u() {\n return this.f1462ak + this.f1438M;\n }", "public abstract int mo123249h();", "public String getAAE036() {\n return AAE036;\n }", "private static char toHexDigit(int h) {\n char out;\n if (h <= 9) out = (char) (h + 0x30);\n else out = (char) (h + 0x37);\n //System.err.println(h + \": \" + out);\n return out;\n }", "public static int hash(String key) {\n int result = 1;\n\n for (int i=0; i<key.length(); ++i) {\n char c = key.charAt(i);\n int c_int = (int) c; //Gjør om ved å bruke ascii-tabellen ('A' = 65, ...\n\n result = (result*31) + c_int;\n }\n\n if (result < 0) {\n result = result * -1;\n }\n\n return result;\n }", "public long mo9743h() {\n return mo9760w();\n }", "String mo21078i();", "public int mo9736c(int i) {\n if (i >= 0) {\n int a = mo9732a() + i;\n int i2 = this.f9095m;\n if (a <= i2) {\n this.f9095m = a;\n mo9778A();\n return i2;\n }\n throw C3606c0.m8181h();\n }\n throw C3606c0.m8179f();\n }", "int getAlphaMod(){\n return getPercentageValue(\"alphaMod\");\n }", "public static void main(String[] args) {\n \t\n \tlong ashok;\n \tashok=(long)Math.pow(26,5);\n \t\n \tfor(long i=ashok;i>0;i--)\n \t{\n \t\tlong j=i;\n \t\tString s=\"\";\n \t\twhile(j>0)\n \t{\n \t\tlong sp=(j)%26;\n \t\tj=j/26;\n \t\ts+=(char)(sp+65);\n \t\t\n \t\t\n \t}\n \tSystem.out.println(s);\n \t}\n // TODO code application logic here\n }", "public int mo9867a() {\n return this.f2526a;\n }", "public static int convert26to10(String s) {\n if (null != s && !\"\".equals(s)) {\n int n = 0;\n char[] tmp = s.toCharArray();\n for (int i = tmp.length - 1, j = 1; i >= 0; i--, j *= 26) {\n char c = Character.toUpperCase(tmp[i]);\n if (c < 'A' || c > 'Z') return 0;\n n += ((int) c - 64) * j;\n }\n return n;\n }\n return 0;\n }", "public static void main(String[] args) {\nString given=\"hello im jaiprashanth hw are you\";\nchar ch[]=given.toCharArray();\n\nfor(int i=0;i<ch.length;i++) {\n\tif(ch[i]==' ') {\n\tch[i+1]=(char)(ch[i+1]-32);\n\t}\nSystem.out.println(ch);\n}\n}", "public String doHash(String str) {\n String key = \"\";\n int offset = str.charAt(0) - 'a';\n for (int i=0; i<str.length(); i++) {\n char res = str.charAt(i) - offset;\n if (res < 'a') res += 26;\n key += res;\n }\n return key;\n }", "public abstract Integer mo36212o();", "short digits();" ]
[ "0.65359914", "0.64565927", "0.62169176", "0.57769096", "0.56730235", "0.55864763", "0.5585528", "0.5524674", "0.5500363", "0.5496521", "0.5462278", "0.5460473", "0.5426655", "0.5426231", "0.54231566", "0.5414338", "0.5387402", "0.5383913", "0.53662795", "0.5365847", "0.53589946", "0.5356332", "0.53474295", "0.5347097", "0.5338944", "0.53278977", "0.53220576", "0.5315585", "0.5312961", "0.5303354", "0.5301268", "0.52902764", "0.52819514", "0.5275784", "0.52690005", "0.5268796", "0.5266333", "0.52618104", "0.5259014", "0.52460355", "0.52409995", "0.5240911", "0.5239904", "0.5236092", "0.52333844", "0.5232709", "0.523223", "0.5231541", "0.5226726", "0.5217578", "0.52163357", "0.52049243", "0.5191474", "0.51842403", "0.5181163", "0.5175482", "0.51605636", "0.5157153", "0.5152431", "0.5150483", "0.5132115", "0.51297796", "0.5127132", "0.51141244", "0.5108513", "0.5108069", "0.5106687", "0.5106687", "0.50989604", "0.50968313", "0.5092226", "0.5083398", "0.5083056", "0.5078943", "0.5077453", "0.5075155", "0.50718147", "0.50717336", "0.5071008", "0.5069529", "0.5068457", "0.50671", "0.5066507", "0.50664246", "0.5059722", "0.5057651", "0.5055556", "0.50550896", "0.5055077", "0.50546116", "0.5053722", "0.50531393", "0.5048271", "0.50427604", "0.50303924", "0.5022213", "0.50221926", "0.5021665", "0.5021231", "0.50210935", "0.5017812" ]
0.0
-1
/ 42: / 43:
protected RemoteInvocation readRemoteInvocation(HttpExchange exchange, InputStream is) /* 44: */ throws IOException, ClassNotFoundException /* 45: */ { /* 46:110 */ ObjectInputStream ois = createObjectInputStream(decorateInputStream(exchange, is)); /* 47:111 */ return doReadRemoteInvocation(ois); /* 48: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }", "@Test\r\n public void testRegexp() throws Exception {\n\r\n String a = \"a/b/100/test\";\r\n\r\n Pattern pattern = Pattern.compile(\".+/(\\\\d+)/test\");\r\n\r\n System.out.println(parseIdFromUriPath(a, pattern));\r\n\r\n }", "void mo34677H(String str, int i, int i2);", "void mo34684de(int i, int i2);", "dkj mo4367a(dkk dkk);", "public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }", "public void mo5332a(int i) {\n }", "void mo34676dd(int i, int i2);", "public void mo23438b() {\n }", "public void mo44231a(int i) {\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "public void mo4683c() {\n mo4679a(3);\n }", "public void mo9233aH() {\n }", "public void method_4270() {}", "public void mo32111rr(int i) {\n }", "void mo9075h(String str, int i, int i2);", "public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }", "void mo11024a(int i, int i2, String str);", "public void mo3350a(int i) {\n }", "void mo7445h(int i, int i2);", "void mo54446k(int i);", "public abstract void mo4386e(int i, int i2);", "public static void main(String[] arg) {\n int /* The delimited comment can extend over a part of the line */ x = 42;\n System.out.printf(\"%d\",x);\n }", "public int a_(int paramInt)\r\n/* 594: */ {\r\n/* 595:636 */ return 0;\r\n/* 596: */ }", "void mo54436d(int i);", "public abstract void mo4367a(int i, String str);", "public void mo5369d(int i, int i2) {\n }", "void mo7444g(int i, int i2);", "void mo54407a(int i, int i2);", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public int method_2436() {\r\n return 16;\r\n }", "void mo63037a(int i, int i2);", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public void a(eq ☃) {}\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ public int k() {\r\n/* 55 */ return 9;\r\n/* */ }", "private void kk12() {\n\n\t}", "public void mo3749d() {\n }", "public abstract void mo70708a(String str, int i, int i2);", "void mo1334i(String str, String str2);", "public void mo6944a() {\n }", "void mo56156a(int i, int i2);", "void mo54406a(int i);", "void mo7304b(int i, int i2);", "public void mo44053a() {\n }", "public abstract void mo4362a(int i, int i2);", "void mo63039b(int i, int i2);", "@Test\n\tpublic void test_doubleANumber() {\n\t\t\n\t}", "void mo64942a(String str, long j, long j2);", "void mo54452q(int i);", "@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }", "public void mo5356b(int i, int i2) {\n }", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "void mo1329d(String str, String str2);", "String d(String paramString, int paramInt)\r\n/* 613: */ {\r\n/* 614:609 */ int i1 = e(paramString, paramInt);\r\n/* 615:610 */ if (paramString.length() <= i1) {\r\n/* 616:611 */ return paramString;\r\n/* 617: */ }\r\n/* 618:614 */ String str1 = paramString.substring(0, i1);\r\n/* 619: */ \r\n/* 620:616 */ int i2 = paramString.charAt(i1);\r\n/* 621:617 */ int i3 = (i2 == 32) || (i2 == 10) ? 1 : 0;\r\n/* 622:618 */ String str2 = b(str1) + paramString.substring(i1 + (i3 != 0 ? 1 : 0));\r\n/* 623: */ \r\n/* 624:620 */ return str1 + \"\\n\" + d(str2, paramInt);\r\n/* 625: */ }", "private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }", "void mo4102a(int i, int i2);", "void mo4872a(int i, String str);", "int mo23351i(String str, String str2);", "public abstract void mo4377b(int i, int i2);", "@Test\n public void delims() {\n }", "int mo23347d(String str, String str2);", "public void mo21789N() {\n }", "int mo54403a(String str, String str2);", "void id(int id) {}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "void mo54408a(int i, int i2, int i3, int i4);", "public static void main002(String[] args) {\n\n\t\tint number\t= 20;\n\t\tSystem.out.println(\"Start = \" + number);\n\t\t\n\t\tnumber += 10;\t// number\t= number + 10;\n\t\tnumber -= 10;\t// number\t= number - 10\n\t\tnumber *= 10;\t// number\t= number * 10\n\t\tnumber /= 10;\t// number\t= number / 10\n\t\tnumber %= 10;\t// number\t= number % 10\n\t\tSystem.out.println(\"End = \" + number);\n\t}", "public void mo21782G() {\n }", "public int a(String paramString, float paramFloat1, float paramFloat2, int paramInt)\r\n/* 234: */ {\r\n/* 235:243 */ return a(paramString, paramFloat1, paramFloat2, paramInt, true);\r\n/* 236: */ }", "void mo32046rn(int i);", "public abstract String division();", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "public String digit(String digit);", "void mo54437e(int i);", "public String get_integer_part();", "private static void drawNumDiamondRec(int h) {\n double hd = h;\r\n boolean odd = hd % 2 == 1;\r\n int middle = (int) Math.ceil(hd / 2);\r\n\r\n actual_recursion(h, middle, odd, 1, 0);\r\n\r\n }", "public static void main(String args[]) {\n\tSystem.out.println(\"1 2 + 4 * 4 2 - + = \" + execute(\"1 2 + 4 * 4 2 - +\"));\r\n\t\r\n\t// (1 + 4) * (3 + 7) / 5 == 10\r\n\t/*System.out.println(\"1 4 + 3 7 + * 5 / = \" \r\n\t\t\t + execute(\"1 4 + 3 7 + * 5 /\"));\r\n\t\r\n\t// 10 + 2 == 12\r\n\tSystem.out.println(\"10 2 + = \" \r\n\t\t\t + execute(\"10 2 +\"));\r\n\t\r\n\t// 10 / 2 == 5\r\n\tSystem.out.println(\"10 2 / = \"\r\n\t\t\t + execute(\"10 2 /\"));*/\r\n }", "public void mo21779D() {\n }", "public void mo23980a(int i, String str) {\n }", "int mo5882g(String str);", "static void pyramid(){\n\t}", "public void mo21877s() {\n }", "void mo56161e();", "void mo28889a(int i, String str) throws zzlm;", "void mo122221a(int i);", "public void prlns(int a) {\n\t\tSystem.out.println(a);\r\n\t}", "public void mo21793R() {\n }", "void doStuff() {\n System.out.println(7/0);\r\n }", "public abstract String mo24851a(String str);", "public void mo21788M() {\n }", "void mo7438a(int i, int i2);", "public static void main(String[] args) {\n\t\tSystem.out.println(123/10);\n\t}", "public void mo21783H() {\n }", "public void mo21800a() {\n }", "public void uneHeureDePlus() {\n\t\tthis.h = h+1 > 23 ? 0 : h+1 ;\n\t}", "public abstract void mo102900a(int i, int i2);", "void m15859a(int i, int i2);", "public abstract void mo9800a(int i, int i2);", "public static void main(String[] args) {\npat(16);\r\nint a[]= {2,0,2};\r\nSystem.out.println(fillthewater(a));\r\npascalstri(6);\r\n\t}" ]
[ "0.5325339", "0.5310362", "0.5183086", "0.51077896", "0.5084251", "0.507947", "0.5060151", "0.50458235", "0.50335866", "0.50310236", "0.5003105", "0.500184", "0.4998642", "0.49835026", "0.4946689", "0.49243575", "0.49101445", "0.49017608", "0.48986745", "0.48807946", "0.48805827", "0.48685282", "0.4856098", "0.4852774", "0.48510608", "0.48478812", "0.48452738", "0.4840205", "0.48365575", "0.48327264", "0.48262632", "0.48180905", "0.47969386", "0.4781882", "0.47784746", "0.47782356", "0.4776016", "0.47757137", "0.47710344", "0.47679335", "0.4767322", "0.47574553", "0.4756993", "0.4754587", "0.47532794", "0.47401357", "0.47391862", "0.47382763", "0.47368085", "0.47326168", "0.47302547", "0.47145954", "0.4714435", "0.47127104", "0.4712146", "0.47006875", "0.4696912", "0.4691917", "0.46903938", "0.4684962", "0.4683155", "0.46808824", "0.46776754", "0.46747026", "0.46685794", "0.4662035", "0.46601596", "0.46599036", "0.4657854", "0.46467212", "0.46423593", "0.46401858", "0.4637734", "0.4627916", "0.46269482", "0.46250173", "0.46231163", "0.4618049", "0.46178347", "0.4615515", "0.4613192", "0.46076557", "0.46064836", "0.460462", "0.46008986", "0.4599693", "0.45948002", "0.45893192", "0.45843777", "0.45832068", "0.45756656", "0.45745683", "0.45713675", "0.45682243", "0.4564902", "0.45625067", "0.4560815", "0.45539036", "0.45504382", "0.45444468", "0.45408913" ]
0.0
-1
/ 49: / 50:
protected InputStream decorateInputStream(HttpExchange exchange, InputStream is) /* 51: */ throws IOException /* 52: */ { /* 53:125 */ return is; /* 54: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "@Override\n public double tuition(){\n return 2500;\n }", "public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }", "public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }", "public int mo34973b() {\n return 48;\n }", "public int mo36g() {\n return 8;\n }", "public int mo36g() {\n return 4;\n }", "private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }", "public static void main(String[] args) {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tdouble dRND = Math.random();\n\t\t\tdouble dRND1 = dRND * 100; // 0부터 99까지\n\t\t\tdRND1 = dRND * 50; // 0부터 49.xx까지\n\t\t\tdRND1 = dRND * 30; // 0부터 29.xx까지\n\t\t\tint intRND = (int) dRND1; // 0부터 29까지\n\t\t\tintRND += 1; // 1부터 30까지\n\t\t\tintRND += 20; // 21부터 50까지\n\n\t\t\tint intStars = (int) (dRND * (10 - 5 + 1)) + 5; // 5부터 10까지\n\n\t\t\tintStars = (int) (dRND * (100 - 50 + 1)) + 50; // 50부터 100까지 숫자 만들어내기\n\t\t\tSystem.out.println(intStars);\n\n\t\t}\n\t}", "public void Down4()\r\n {\r\n if(By2>0 && By2<900){\r\n \r\n By2+=2.5;\r\n }\r\n }", "private int h1(int p){\n\t\t return p % table.length;\n\t}", "public void mo5097b() {\n }", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t/*80\r\n\t\tint matches = 3162;\r\n\t\tint results = 1218;\r\n\t\tint pairs = 146;\r\n\t\t*/\r\n\t\t//70\r\n\t\t/*int matches = 3302;\r\n\t\tint results = 909;\r\n\t\tint pairs = 59;*/\r\n\r\n\t\tfor(int i=1;i<=10;i++)\r\n\t\t{\r\n\t\t\tdouble b = (0.1*i)*((matches*3)+(results*3)+(pairs*3));\r\n\t\t\tSystem.out.print(Math.round(b)+\",\");\r\n\t\t}\t\r\n\t\r\n\t}", "public int mo36g() {\n return 2;\n }", "private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }", "public final int mo50059a() {\n return 2;\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public void mo3350a(int i) {\n }", "int getAlphaMod(){\n return getPercentageValue(\"alphaMod\");\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\tint a= 50;\n\t\ta= --a + a++ + a-- + a++;// pre hemen post bir sonrakinde\n\n\t\t//a= 49+49+50+49 = 197\n\t\t\n\t\t\n\t\tSystem.out.println(a);\n\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tint height = 5;\n\t\tint value = 1;\n\t\tint a = 0;\n\t\tint num = 1;\n\t\tint numCount = 1;\n\t\tint spaceCount = height - 1;\n\t\tSystem.out.println(\"below is numeric Traiangle Program\");\n\t\tfor (int i = 0; height > i; i++) {\n\t\t\tfor (a = 0; a < spaceCount ; ++a) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\n\t\t\t}\n\t\t\tspaceCount = spaceCount-1 ;\n\t\t\tfor (int b = 0; b < numCount; b++) {\n\t\t\t\tSystem.out.print(num);\n\t\t\t\tnum = num + 1;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tnumCount = numCount + 2;\n\t\t\tnum = 1;\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Test\n public void test4() {\n Integer[] data = new Integer[]{//\n 50,\n 100,\n 75, //\n };\n baseRotateTest(data);\n }", "int getCap();", "int getAlpha(){\n return getPercentageValue(\"alpha\"); \n }", "public void mo5099c() {\n }", "public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }", "private static void eval5(){\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n Evaluator.evaluate(i, j, k, l, m);\n }\n }\n }\n }\n }\n }", "public void mo3749d() {\n }", "@Test\n public void FiveAndSpareWithFinalFiveExpected_150(){\n String input = \"5/5/5/5/5/5/5/5/5/5/5\";\n assertEquals(game.scoreOfGame(input),150);\n }", "int mo4095a(int i);", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "int getBaseline() {\n\treturn ascent;\n}", "void mo54446k(int i);", "public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }", "void mo3796b(int i);", "public static void main(String[] args) {\n Random y = new Random(); //아무값 랜덤\r\n //0~ 99 까지의 1000개 중 50보다 큰값들을 프린트 \r\n int[] in = new int [1000]; \r\n for (int i = 0; i < in.length; i++) {\r\n \tin[i] = y.nextInt(100);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n int count=0;\r\n for (int i = 0; i < 100; i++) {\r\n \tif (in[i] >= 50) {\r\n\t\t\t\t\t\tSystem.out.println(i+\":\"+in[i]);\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n System.out.println(\"50보다 큰개수는 : \" + count\r\n \t\t);\r\n\t}", "int getNextGap(int gap)\n {\n gap = (gap*10)/13;\n if (gap < 1)\n return 1;\n return gap;\n }", "public void mo9848a() {\n }", "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "public static void testTalletUlige() {\n\n if (21 % 2 == 0) {\n System.out.println(\"** \" + 21 + \" er et lige tal.\");\n }\n else\n System.out.println(\"** \" + 21 + \" er et ulige tal.\");\n }", "private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }", "void increaseStarsBy(final int amount);", "public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }", "private void giveScords(){\n \t//bingo 題數, seconds花費秒數\n \tint totalSec = (int)seconds;\n \t\n \tif(correct){\n \t\tif(totalSec<=5){\n \t\t\tuserPoints = userPoints + 150;\n \t\t}else if(totalSec<=10){\n \t\t\tuserPoints = userPoints + 125;\n \t\t}else if(totalSec<=15){\n \t\t\tuserPoints = userPoints + 100;\n \t\t}else if(totalSec<=20){\n \t\t\tuserPoints = userPoints + 80;\n \t\t}\n \t}\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "public int method_2436() {\r\n return 16;\r\n }", "public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }", "C5537g mo4096b(int i);", "int getLineHeight() {\n\treturn ascent + descent;\n}", "public static void main(String[] args) {\n\t\t\n double p = 3048;\n int i;\n\t\t\n\t\t\n\t\tfor (i=1; i <=40; i++) {\n\t\t\t\n\t\t p = p * 2 / 3;\n\t\t \n\t\t}\n\t\t\n\t\tSystem.out.println(\"La distancia que habra recorrido la bola al momento de realizar su rebote numero 40 es de : \"+ p+ \" mts\");\n\n\t}", "void mo33732Px();", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "int getBlue(){\n return getPercentageValue(\"blue\");\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\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 }", "public void mo55254a() {\n }", "@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }", "private static int m3066a(int i, int i2, int i3, int i4, int i5) {\n if (i5 == 0) {\n return 0;\n }\n return (((i * NormalGiftView.ALPHA_255) * i2) + ((i3 * i4) * (255 - i2))) / (i5 * NormalGiftView.ALPHA_255);\n }", "public static void printSigthBlockade() {\n for (int i = 0; i < 60; i++) {\n System.out.println(\"*\");\n }\n }", "public static void main(String[] args) {\n\t\tint i = 0, hap = 0;\n\t\t\n\t\tfor (;i <= 100; i++) { \t\t//만약 while문을 통해 증감식을 수행하도록 하면 45가 아닌 46이 값으로 나온다. 주의할 것.\n\t\t\thap += i;\n\t\t\t\n\t\t\t\n\t\t\tif (hap >= 1000) break;\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\" 총합이 1000을 넘기는 시점은 %d를 더하는 시점입니다.\\n\", i);\n\t}", "@Override\n public void init()\n {\n out = mul(num(100.0/Math.log10(length)), log10(div(sum(truerange(), length), diff(highest(length), lowest(length)))));\n }", "int stepsToGo();", "public int arn() {\n return 383;\n }", "@Test\n public void testSegmentationGreedyness() {\n assertMetrics(\"match:0.3717\",\"a b c\",\"a x b x x x x x x x x b c\");\n assertMetrics(\"match:0.4981\",\"a b c\",\"a x z x x x x x x x x b c\");\n }", "public void mo21782G() {\n }", "public void oneToTwoFiftyFive() {\n for (int i = 1; i<=255; i++) {\n System.out.print(i + \"\\n\");\n }\n }", "public int generateRoshambo(){\n ;]\n\n }", "public static void main(String[] args){\n\n for(int n = 2; n < 102; n+=2)System.out.printf(\"%d\\n\",n);\n \n \n }", "public static void main(String[] args) {\n int arr[]= new int[100];\n for(int i=0;i<=99;i++)\n {\n \t if(i!=55)\n \t\t arr[i]=i+1;\n \t System.out.print(arr[i]+\" \");\n }\n int sum=0,sum1=0;\n for(int i=0;i<100;i++)\n {\n \t sum=sum+(i+1);\n \t sum1=sum1+arr[i];\n \t \n }\n System.out.println(\"\\n\"+(sum-sum1));\n\t}", "int mo54450o(int i);", "public static void testTalletLige() {\n\n if (20 % 2 == 0) {\n System.out.println(\"** \" + 20 + \" er et lige tal.\");\n }\n else\n System.out.println(\"** \" + 20 + \" er et ulige tal.\");\n }", "public static int offset_quality() {\n return (48 / 8);\n }", "public int getHgap() {\n/* */ return this.hgap;\n/* */ }", "void mo54448m(int i);", "void mo21050ml(int i);", "public void mo55254a() {\n }", "public static void main(String[] args) {\n\n\t\tint i = 80;\n\t\tint j = 20;\n\t\t\n\t\tdouble b = (double)(j)/(double)(i);\n\t\tdouble b_1 = b*100;\n\t\tSystem.out.println(b_1+\"%\");\n\t\t\n\t\tdouble b_2 = (double)(j)/(double)(i)*100;\n\t\tSystem.out.println(b_2+\"%\");\n\t\t\n\t\tdouble b_3 = (double)j/i;\n\t\tSystem.out.println(b_3);\n\t\tdouble b_4 =(double) b_3*100;\n\t\tSystem.out.println(b_4+\"%\");\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public static void main(String[] args) {\n\t\tfor(int i=2;i<=50;i++) {\n\t\t\tif(i%2==0) {\n\t\t\t\tSystem.out.println(i+\"\\t\");\n\t\t\t}\n\t\t}\n\t}", "public void setHgap(int paramInt) {\n/* */ this.hgap = paramInt;\n/* */ }", "protected int bytesPerLine() {\n return (48);\n }", "protected int bytesPerLine() {\n return (48);\n }", "public static void main(String[] args) {\n int height;\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Nhập chiều cao hình tam giác\");\n height = scan.nextInt();\n for(int i = 1; i <= height; ++i) {\n for(int j = height; j >i; --j) \n System.out.print(\" \");\n for(int j = 1 ; j <= 2 * i - 1; ++j) \n System.out.print(\"*\");\n System.out.println(\"\");\n }\n }", "private double getPseudoLoadingFactor( int... plus ) {\n if (plus.length > 0 && plus.length < 2) {\n return (double) (int) (((double) (n + nd + plus[0]) / N) * 10000) / 10000; \n }\n return (double) (int) (((double) (n + nd) / N) * 10000) / 10000;\n }", "void mo1763h(int i);", "public static void main(String[] args) {\n\n double valorTotal = 36000;\n\n for (int parcela = (int) valorTotal; parcela >= 1; parcela--) {\n double valorParcela = valorTotal / parcela;\n if (valorParcela >= 1000) {\n System.out.println(parcela + \" parcelas de \" + valorParcela + \"R$\");\n }\n }\n }", "public static void main (String[] args){\n Scanner in = new Scanner (System.in);\n \n for (int n1=30;n1<=50;n1=n1+1)\n System.out.println(n1);\n\t}", "public void mo21786K() {\n }", "private void printSeparation(){\n\t\tfor (int i = 0; i < 50; i++) {\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "void mo38565a(int i);", "public static void main(String[] args) {\n for (int i = 0; i <= 1000; i++) {\n if (i % 5 == 0) {\n System.out.print(i + \"\\t\");\n }\n if (i % (5 * 3) == 0) {\n System.out.println();//换行\n }\n }\n }", "@Test\n public void test3() {\n Integer[] data = new Integer[]{//\n 100,\n 50,\n 75, //\n };\n baseRotateTest(data);\n }", "@Test\n public void testSignificance() {\n assertMetrics(\"significance:1\", \"a\",\"a\");\n assertMetrics(\"significance:0\", \"a\",\"x\");\n assertMetrics(\"significance:0.3333\",\"a a a\",\"a\");\n assertMetrics(\"significance:1\", \"a\",\"a a a\");\n assertMetrics(\"significance:1\", \"a b c\",\"a b c\");\n assertMetrics(\"significance:1\", \"a b c\",\"x x a b x a x c x x a b x c c x\");\n\n assertMetrics(\"significance:0.3333\",\"a b c\",\"a\");\n assertMetrics(\"significance:0.6667\",\"a b c\",\"a b\");\n\n assertMetrics(\"significance:1\", \"a b c%0.2\",\"a b c\"); // Best\n assertMetrics(\"significance:0.75\",\"a b c%0.2\",\"b c\"); // Middle\n assertMetrics(\"significance:0.5\", \"a b c%0.2\",\"a b\"); // Worst\n\n assertMetrics(\"significance:1\",\"a%0.3 b c%0.2\",\"a b c\"); // Best too\n\n assertMetrics(\"significance:1\", \"a b c%0.05\",\"a b c\"); // Best\n assertMetrics(\"significance:0.6\",\"a b c%0.05\",\"b c\"); // Worse\n assertMetrics(\"significance:0.4\",\"a b c%0.05\",\"b\"); // Worse\n assertMetrics(\"significance:0.2\",\"a b c%0.05\",\"c\"); // Worst\n assertMetrics(\"significance:0.8\",\"a b c%0.05\",\"a b\"); // Middle\n\n assertMetrics(\"significance:1\", \"a b c%0\",\"a b c\"); // Best\n assertMetrics(\"significance:0.5\",\"a b c%0\",\"b c\"); // Worst\n assertMetrics(\"significance:1\", \"a b c%0\",\"a b\"); // As good as best\n assertMetrics(\"significance:0\", \"a b c%0\",\"c\"); // No contribution\n\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"a b\");\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"\");\n\n // The query also has other terms having a total significance of 0.3\n // so we add a significance parameter which is the sum of the significances of this query terms + 0.3\n assertMetrics(\"significance:0.25\", \"a\",\"a\",0.4f);\n assertMetrics(\"significance:0\", \"y\",\"a\",0.4f);\n assertMetrics(\"significance:0.1667\",\"a a a\",\"a\",0.6f);\n assertMetrics(\"significance:0.25\", \"a\",\"a a a\",0.4f);\n assertMetrics(\"significance:0.5\", \"a b c\",\"a b c\",0.6f);\n assertMetrics(\"significance:0.5\", \"a b c\",\"x x a b x a x c x x a b x c c x\",0.6f);\n\n assertMetrics(\"significance:0.1667\",\"a b c\",\"a\",0.6f);\n assertMetrics(\"significance:0.3333\",\"a b c\",\"a b\",0.6f);\n\n assertMetrics(\"significance:0.5714\",\"a b c%0.2\",\"a b c\",0.7f); // Best\n assertMetrics(\"significance:0.4286\",\"a b c%0.2\",\"b c\",0.7f); // Middle\n assertMetrics(\"significance:0.2857\",\"a b c%0.2\",\"a b\",0.7f); // Worst\n\n assertMetrics(\"significance:0.6667\",\"a%0.3 b c%0.2\",\"a b c\",0.9f); // Better than best\n\n assertMetrics(\"significance:0.4545\",\"a b c%0.05\",\"a b c\",0.55f); // Best\n assertMetrics(\"significance:0.2727\",\"a b c%0.05\",\"b c\",0.55f); // Worse\n assertMetrics(\"significance:0.1818\",\"a b c%0.05\",\"b\",0.55f); // Worse\n assertMetrics(\"significance:0.0909\",\"a b c%0.05\",\"c\",0.55f); // Worst\n assertMetrics(\"significance:0.3636\",\"a b c%0.05\",\"a b\",0.55f); // Middle\n\n assertMetrics(\"significance:0.4\",\"a b c%0\",\"a b c\",0.5f); // Best\n assertMetrics(\"significance:0.2\",\"a b c%0\",\"b c\",0.5f); // Worst\n assertMetrics(\"significance:0.4\",\"a b c%0\",\"a b\",0.5f); // As good as best\n assertMetrics(\"significance:0\", \"a b c%0\",\"c\",0.5f); // No contribution\n\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"a b\",0.3f);\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"\",0.3f);\n }", "public int getAmplifier()\r\n/* 75: */ {\r\n/* 76: 75 */ return this.amplifier;\r\n/* 77: */ }", "public void print1T0255(){\n StringBuilder out = new StringBuilder();\n for (int i = 1; i <= 255; i++){\n out.append( i + \" \");\n }\n System.out.println( out.toString());\n }", "void mo25956a(int i);" ]
[ "0.54969376", "0.5413934", "0.5317563", "0.52572405", "0.5210302", "0.5205403", "0.5195352", "0.5175231", "0.5129415", "0.51282424", "0.5117077", "0.5111618", "0.5110557", "0.5109198", "0.5108744", "0.50974005", "0.50916034", "0.506957", "0.5066224", "0.5064782", "0.50579226", "0.50555444", "0.5039842", "0.5037953", "0.5023398", "0.50135523", "0.5011142", "0.50077754", "0.49981612", "0.49879926", "0.49829653", "0.49814513", "0.4980127", "0.49710357", "0.4966806", "0.4966392", "0.49655613", "0.49623948", "0.49562207", "0.49544293", "0.4948755", "0.49438354", "0.49337357", "0.49262047", "0.49236122", "0.49234864", "0.4914136", "0.4912336", "0.49052608", "0.49030396", "0.48990294", "0.4890701", "0.48794526", "0.48750424", "0.4869672", "0.4869672", "0.4869672", "0.4869672", "0.4869672", "0.4869672", "0.4869672", "0.48694846", "0.48655182", "0.48593032", "0.48577815", "0.485555", "0.48551825", "0.4851999", "0.48474732", "0.48461574", "0.48440045", "0.48438388", "0.48430446", "0.48400757", "0.48343456", "0.48341122", "0.48340845", "0.48292813", "0.4825843", "0.48209545", "0.48175585", "0.48170674", "0.4816394", "0.48129034", "0.48032448", "0.48017162", "0.48017162", "0.4801706", "0.47994605", "0.4798266", "0.4795797", "0.47957176", "0.47946155", "0.47939017", "0.47931683", "0.47854605", "0.47820333", "0.4780395", "0.47758678", "0.47720453", "0.47718143" ]
0.0
-1
/ 55: / 56:
protected void writeRemoteInvocationResult(HttpExchange exchange, RemoteInvocationResult result) /* 57: */ throws IOException /* 58: */ { /* 59:137 */ exchange.getResponseHeaders().set("Content-Type", getContentType()); /* 60:138 */ exchange.sendResponseHeaders(200, 0L); /* 61:139 */ writeRemoteInvocationResult(exchange, result, exchange.getResponseBody()); /* 62: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int mo36g() {\n return 4;\n }", "public int mo36g() {\n return 8;\n }", "@Test\n public void FiveAndSpareWithFinalFiveExpected_150(){\n String input = \"5/5/5/5/5/5/5/5/5/5/5\";\n assertEquals(game.scoreOfGame(input),150);\n }", "public int mo36g() {\n return 2;\n }", "int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}", "public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }", "@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }", "public int method_2436() {\r\n return 16;\r\n }", "public int getSnakeStartLength();", "static int getNumPatterns() { return 64; }", "@Test\n public void NineAndMissExpected_90(){\n String input = \"9-9-9-9-9-9-9-9-9-9-\";\n assertEquals(game.scoreOfGame(input),90);\n }", "public static int m8655e() {\n return 8;\n }", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateMktDepthL2(2146794261, 927, \"@\", 2146889800, (-180), 2146794261, (-1940));\n assertEquals(\"updateMktDepth: 2146794261 927 @ 2146889800 -180 2.146794261E9 -1940\", string0);\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "private void m3935R() {\n int i;\n int i2;\n if (mo4322L() == 1) {\n i2 = mo4758r() - mo4756p();\n i = mo4754o();\n } else {\n i2 = mo4741h() - mo4752n();\n i = mo4757q();\n }\n m3945n(i2 - i);\n }", "@Test(timeout = 4000)\n public void test60() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader(pipedWriter0);\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 752.0;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"752\", string0);\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "@Test(timeout = 4000)\n public void test56() throws Throwable {\n String string0 = SQLUtil.normalize(\")]*/f/f2Nx{fI.* \", false);\n assertEquals(\") ] */ f / f2Nx { fI.*\", string0);\n }", "private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }", "@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }", "private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }", "public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }", "public int mo34973b() {\n return 48;\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }", "int getMid(int s, int e) {\n return s + (e - s) / 2;\n }", "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "static int m22556b(zzwt zzwt, cu cuVar) {\n zztw zztw = (zztw) zzwt;\n int d = zztw.mo4835d();\n if (d == -1) {\n d = cuVar.mo3068b(zztw);\n zztw.mo4833a(d);\n }\n return m22576g(d) + d;\n }", "public void uneHeureDePlus() {\n\t\tthis.h = h+1 > 23 ? 0 : h+1 ;\n\t}", "@Test public void shouldGive240MinFor950cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 4 * 60 /*minutes*/ , rs.calculateTime(950) ); \r\n }", "private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }", "@Test\n public void testSegmentationGreedyness() {\n assertMetrics(\"match:0.3717\",\"a b c\",\"a x b x x x x x x x x b c\");\n assertMetrics(\"match:0.4981\",\"a b c\",\"a x z x x x x x x x x b c\");\n }", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "int method20()\n {\n return 579190;\n }", "private static String computeReminder(String stream) {\n String end, remainder, padding, paddedRemainder = stream;\n String bytesStream;\n for(int i = 0; i <= paddedRemainder.length() - generator.length(); i++) {\n // Compute division\n if(paddedRemainder.charAt(i) == '1') {\n bytesStream = paddedRemainder.substring(i, i + generator.length());\n end = stream.substring(i + generator.length());\n remainder = divideBytesByGenerator(bytesStream) + end;\n padding = new String(new char[stream.length() - remainder.length()]).replace(\"\\0\", \"0\");\n paddedRemainder = padding + remainder;\n }\n }\n return paddedRemainder.substring(paddedRemainder.length() - generator.length());\n }", "@Test\n public void testRedundant2version() {\n String ver2 = Textile.straighten_weft2(\"aad.bbd+d*ac\");\n assertEquals(\"d.bbac\",ver2);\n }", "private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }", "int mo5882g(String str);", "@Test public void shouldGive180MinFor650cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 3 * 60 /*minutes*/ , rs.calculateTime(650) ); \r\n }", "public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }", "public abstract long mo9755t();", "@Test\n public void testSplitTime(){\n \tCountDownTimer s = new CountDownTimer();\n \ts.splitTime(3975);\n \tassertEquals(s.toString(), \"1:06:15\");\n \t\n \ts.splitTime(45);\n \tassertEquals(s.toString(), \"0:00:45\");\n \t\n }", "@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickEFP((-2147), 10, 10, \".^|7={wR>bl,rlfYN\", 10, 484, \".^|7={wR>bl,rlfYN\", 484, 484);\n assertEquals(\"id=-2147 bidOptComp: basisPoints = 10.0/.^|7={wR>bl,rlfYN impliedFuture = 10.0 holdDays = 484 futureExpiry = .^|7={wR>bl,rlfYN dividendImpact = 484.0 dividends to expiry = 484.0\", string0);\n }", "public static void main(String[] args) {\n System.out.println(getDurationString(65,45));\n\n System.out.println(getDurationString(3945));\n }", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }", "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "public void mo9824b(String str) {\n int i;\n int i2;\n try {\n int length = str.length() * 3;\n int i3 = C3670m.m8671i(length);\n int i4 = i3 + length;\n if (i4 > this.f9107e) {\n byte[] bArr = new byte[length];\n int a = C3700r1.m8885a(str, bArr, 0, length);\n mo9814c(a);\n mo9826b(bArr, 0, a);\n return;\n }\n if (i4 > this.f9107e - this.f9108f) {\n mo9827i();\n }\n int i5 = C3670m.m8671i(str.length());\n i = this.f9108f;\n if (i5 == i3) {\n int i6 = i + i5;\n this.f9108f = i6;\n int a2 = C3700r1.m8885a(str, this.f9106d, i6, this.f9107e - i6);\n this.f9108f = i;\n i2 = (a2 - i) - i5;\n mo9820l(i2);\n this.f9108f = a2;\n } else {\n i2 = C3700r1.m8884a((CharSequence) str);\n mo9820l(i2);\n this.f9108f = C3700r1.m8885a(str, this.f9106d, this.f9108f, i2);\n }\n this.f9109g += i2;\n } catch (C3703c e) {\n this.f9109g -= this.f9108f - i;\n this.f9108f = i;\n throw e;\n } catch (ArrayIndexOutOfBoundsException e2) {\n throw new C3674d(e2);\n } catch (C3703c e3) {\n mo9808a(str, e3);\n }\n }", "C4945r5 mo19056B();", "public static void main(String[] args) {\n\t\tSystem.out.println(\"1. Dialing code for Tucson, AZ: \" + 520);\r\n\t\tSystem.out.println(\"2. Dialing code for Tempe, AZ: \" + 480);\r\n\t\tSystem.out.println(\"3. It is good to be \" + 9 + 9);\r\n\t\tSystem.out.println(\"4. It is good to be \" + (9 + 9));\r\n\t\tSystem.out.println(\"5. \" + 15.0 / 4.0);\r\n\t\tSystem.out.println(\"6. \" + 15.0 / 4);\r\n\t\tSystem.out.println(\"7. \" + 15 / 4.0);\r\n\t\tSystem.out.println(\"8. \" + 15 / 4);\r\n\t\tSystem.out.println(\"9. \" + 27 % 5);\r\n\t\tSystem.out.println(\"10. \" + 43 % 11);\r\n\t\tSystem.out.println(\"11. \" + -20 % 6);\r\n\t\tSystem.out.println(\"12. \" + (11 + 7 * 4));\r\n\t\tSystem.out.println(\"13. \" + ((11 + 7) * 4));\r\n\t\tSystem.out.println(\"14. \" + (8 * 4 + 10 / 2 + 7));\r\n\t\tSystem.out.println(\"15. \" + (28 % 6 + 9 % 4));\r\n\t\tSystem.out.println(\"16. \" + ((3 + 56 % 9) / 4));\r\n\t\tSystem.out.println(\"17. \" + ((3 + 56 % 9) / 4.0));\r\n\t\tSystem.out.println(\"18. \" + (150 / 2 / 2 / 2));\r\n\t\tSystem.out.println(\"19. \" + (150.0 / 2 / 2 / 2));\r\n\t\tSystem.out.println(\"20. \" + (150 / (2 / 2) / 2));\r\n\t\tint num;\r\n\t\tnum = 4;\r\n\t\tnum = num * 3;\r\n\t\tSystem.out.println(\"21. \" + num);\r\n\t\tint ber;\r\n\t\tber = 4;\r\n\t\tber = ber / 5;\r\n\t\tSystem.out.println(\"22. \" + ber);\r\n\t\tdouble total;\r\n\t\ttotal = 67;\r\n\t\ttotal = total + 2;\r\n\t\ttotal = total * 3;\r\n\t\ttotal = total / 9.0;\r\n\t\tSystem.out.println(\"23. \" + total);\r\n\t\tdouble width;\r\n\t\twidth = 1.8;\r\n\t\twidth = (43 - width * 10);\r\n\t\twidth = width / 6;\r\n\t\tSystem.out.println(\"24. \" + width);\r\n\t\tint count;\r\n\t\tdouble frac;\r\n\t\tcount = 17;\r\n\t\tfrac = 3.0 / 4.0;\r\n\t\tfrac = count * frac;\r\n\t\tcount = ((count + 7) / 3);\r\n\t\tfrac = count + frac;\r\n\t\tSystem.out.println(\"25. \" + count);\r\n\t\tSystem.out.println(\" \" + frac);\r\n\t\t\t\t\t\r\n\t}", "public final void mo7596sH(String str) {\n }", "public static void incorrect5() {\r\n\r\n System.out.println(\" *---*\");\r\n System.out.println(\" | |\");\r\n System.out.println(\" 0 |\");\r\n System.out.println(\" /|\\\\ | Incorrect - 5\");\r\n System.out.println(\" / |\");\r\n System.out.println(\" |\");\r\n System.out.println(\"==========\");\r\n }", "@Test\n\tpublic void checkNumberOfDifferentRoutes() {\n\t\tassertEquals(Trains.numberDifferentRoutes(\"C\",\"C\",30), 7);\n\t}", "void mo9075h(String str, int i, int i2);", "public static void incorrect6() {\r\n\r\n System.out.println(\" *---*\");\r\n System.out.println(\" | |\");\r\n System.out.println(\" 0 |\");\r\n System.out.println(\" /|\\\\ | Incorrect - 6\");\r\n System.out.println(\" / \\\\ |\");\r\n System.out.println(\" |\");\r\n System.out.println(\"==========\");\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tint myNumber=356;\n\t\tint stepOne=myNumber*myNumber;\n\t\tint step2=stepOne+myNumber;\n\t\tint step3=step2/myNumber;\n\t\tint step4=step3+17;\n\t\tint step5=step4-myNumber;\n\t\tint step6=step5/6;\n\t\t\n\t\tSystem.out.println(\"The magic number is \"+step6);\n\n\t}", "@Test\n public void calculationOnElevenDigitMsgIsCorrect() {\n final String msg = \"00110001110\";\n final int[] expectedMsg = {0,0,1,0, 1,0,1,1, 1,0,0,0, 1,1,1,0};\n\n // When\n int[] transformedMsg = HammingAlgorithm.calculate(msg);\n\n // Then\n assertThat(transformedMsg).isEqualTo(expectedMsg);\n }", "public int mo11550h() {\n int i = 0;\n for (C4929d f : this.f11878e) {\n i += f.mo11569f().mo11550h();\n }\n return i + 2 + 2;\n }", "@Test\n public void testGetInversions5by5() {\n int inversions = board5by5.getInversions();\n assertEquals(62, inversions);\n }", "void mo5875b(String str, long j);", "public final int mo50059a() {\n return 2;\n }", "public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }", "C1458cs mo7613iS();", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }", "public int hamming() {\n return ham;\n }", "public int mo1534c() {\n return 2;\n }", "public int mo3356c() {\n return 0;\n }", "public static void main(String[] args) {\n\t\tint orgnum1=1634,orgnum;\r\n\t\tfloat res=0,rem=0;\r\n\t\torgnum=orgnum1;\r\n\t\r\n\t\twhile(orgnum!=0)\r\n\t\t{\r\n\t\trem=(orgnum%10);\t\r\n\t\tres+=(rem*rem*rem);\r\n\t\torgnum/=10;\r\n\t\t}\r\n\t\tSystem.out.println(\"res\"+ res + \" \"+ orgnum+\" n value\"+orgnum1);\r\n if(orgnum1==res)\r\n \tSystem.out.println(\"arms strong\");\r\n else\r\n \t System.out.println(\"not arms strong\");\r\n \t \r\n\t}", "private static float m590o(Context context) {\r\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\r\n Point point = new Point(displayMetrics.widthPixels, displayMetrics.heightPixels);\r\n return ((float) point.y) / ((float) point.x);\r\n }", "@org.junit.Test\n public void testTicksForDesiredAngle90From540() {\n int resultsTicks = SwerveDriveMath.ticksForDesiredAngle(testConfig,540, 90);\n\n // Shortest path is to go left 90 (360 + 90 = 460)\n assertEquals(450, resultsTicks);\n }", "public static int m22555b(zzwt zzwt) {\n int f = zzwt.mo4836f();\n return m22576g(f) + f;\n }", "private void m6556g() {\n m6561c();\n m6557h();\n m6558i();\n }", "public static void main(String[] args) {\n\t\tint num = 10 + 20 -5;\n\t\t\n\t\tnum = 10 + 20/5; // 14\n\t\t\n\t\t// division goes first!\n\t\tnum = (10+20) /5 ; // 6\n\t\t\n\t\tint i = 6+3*10/6;\n\t\t// i = 6+5\n\n\t}", "public abstract int mo9754s();", "int mo54441g(int i);", "public static void main(String[] args) {\n// System.out.println(Math.floor(12.34));/\n// System.out.println(Math.(12.34));/\n// System.out.println(Math.ceil(12.34));/\n// System.out.println(Math.ceil(12.34));/\n int start=5;\n int end=66;\n int i=start+(int)(Math.round(Math.random()*(end-start)) );\n System.out.println(i);\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 }", "public void mo55254a() {\n }", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t/*80\r\n\t\tint matches = 3162;\r\n\t\tint results = 1218;\r\n\t\tint pairs = 146;\r\n\t\t*/\r\n\t\t//70\r\n\t\t/*int matches = 3302;\r\n\t\tint results = 909;\r\n\t\tint pairs = 59;*/\r\n\r\n\t\tfor(int i=1;i<=10;i++)\r\n\t\t{\r\n\t\t\tdouble b = (0.1*i)*((matches*3)+(results*3)+(pairs*3));\r\n\t\t\tSystem.out.print(Math.round(b)+\",\");\r\n\t\t}\t\r\n\t\r\n\t}", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }", "private int DirectionCalculation(int angle)\r\n\t{\t\r\n\t\treturn (int) ((angle/14.28)+1); //Angle divided by (100/(parts-1)) = 1-8\r\n\t}", "private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }", "public int captureCodeFragment05(int x) {\r\n return x * x;\r\n }", "public int mo55652b(Builder builder, Rect rect) {\n return 0;\n }", "public void mo55562a() {\n new C3547h(this, System.currentTimeMillis(), new C3623h()).mo55437a();\n C3754u5.m1743f().mo55859a();\n }", "@Test\n\tpublic void repeatingIndexOfLastDigitTest() {\n\t\tAssert.assertTrue(ifn.repeatingIndexOfLastDigit() == 60);\n\t}", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "static long m5599a(String str) {\n String[] split = str.split(\"\\\\:\");\n byte[] bArr = new byte[6];\n int i = 0;\n while (i < 6) {\n try {\n bArr[i] = (byte) Integer.parseInt(split[i], 16);\n i++;\n } catch (NumberFormatException unused) {\n return 0;\n }\n }\n return ((((long) bArr[0]) & 255) << 40) | ((((long) bArr[3]) & 255) << 16) | (((long) bArr[5]) & 255) | ((((long) bArr[4]) & 255) << 8) | ((((long) bArr[2]) & 255) << 24) | ((((long) bArr[1]) & 255) << 32);\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickGeneric(13, 48, (-2212.2532659315993));\n assertEquals(\"id=13 RTVolume=-2212.2532659315993\", string0);\n }", "public void mo55254a() {\n }", "public short mo34e() {\n return 41;\n }", "float mo56157b();" ]
[ "0.5854902", "0.58257186", "0.5622369", "0.56086475", "0.55814636", "0.55739284", "0.549142", "0.545428", "0.544874", "0.54197836", "0.5379329", "0.5355008", "0.5328852", "0.5327109", "0.53213686", "0.53080857", "0.5287323", "0.52857417", "0.5272054", "0.52713454", "0.5263688", "0.5259032", "0.5254283", "0.52337605", "0.51956505", "0.5184341", "0.51824516", "0.5179391", "0.5170553", "0.51566654", "0.51281416", "0.5124785", "0.51182437", "0.51170117", "0.5113254", "0.509914", "0.50980127", "0.50938076", "0.50884867", "0.5085573", "0.508359", "0.5081228", "0.50800025", "0.50757694", "0.5074148", "0.5061153", "0.5059781", "0.505154", "0.5047334", "0.5046386", "0.5027028", "0.5025254", "0.50231653", "0.50003475", "0.49960333", "0.4984223", "0.49802086", "0.49743566", "0.49736527", "0.49719036", "0.49679923", "0.4963396", "0.49633506", "0.49611807", "0.4960422", "0.49570698", "0.49538818", "0.4953322", "0.4949043", "0.494782", "0.49468416", "0.49452558", "0.4940871", "0.4935208", "0.49344286", "0.4928162", "0.49263602", "0.49215788", "0.49192753", "0.49179783", "0.49170846", "0.49170846", "0.49170846", "0.49170846", "0.49170846", "0.49170846", "0.49170846", "0.49135602", "0.4910682", "0.49106482", "0.49052578", "0.4903004", "0.4899603", "0.48989353", "0.48961142", "0.48916942", "0.48888707", "0.4883762", "0.48774204", "0.48738092", "0.48719457" ]
0.0
-1
/ 63: / 64:
protected void writeRemoteInvocationResult(HttpExchange exchange, RemoteInvocationResult result, OutputStream os) /* 65: */ throws IOException /* 66: */ { /* 67:159 */ ObjectOutputStream oos = createObjectOutputStream(decorateOutputStream(exchange, os)); /* 68:160 */ doWriteRemoteInvocationResult(result, oos); /* 69:161 */ oos.flush(); /* 70: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean multipleOf64(int num)\n {\n return (num & 0b111111) == 0;\n }", "private long m10267c(long j) {\r\n return (j << 1) ^ (j >> 63);\r\n }", "private long m682c(long j) {\n return (j >> 63) ^ (j << 1);\n }", "private int m10266c(int i) {\r\n return (i << 1) ^ (i >> 31);\r\n }", "public long mo9776z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9771u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }", "private static long m22586i(long j) {\n return (j >> 63) ^ (j << 1);\n }", "private int m690g(int i) {\n return (-(i & 1)) ^ (i >>> 1);\n }", "private int m10275g(int i) {\r\n return (i >>> 1) ^ (-(i & 1));\r\n }", "long mo25071a(long j);", "private int m681c(int i) {\n return (i >> 31) ^ (i << 1);\n }", "C3197iu mo30281b(long j);", "private long m685d(long j) {\n return (-(j & 1)) ^ (j >>> 1);\n }", "public abstract long mo20901UQ();", "public long mo9786y() {\n long j;\n long j2;\n long j3;\n byte b;\n long j4 = this.f9091i;\n if (this.f9090h != j4) {\n long j5 = j4 + 1;\n byte a = C3691q1.m8803a(j4);\n if (a >= 0) {\n this.f9091i = j5;\n return (long) a;\n } else if (this.f9090h - j5 >= 9) {\n long j6 = j5 + 1;\n byte a2 = a ^ (C3691q1.m8803a(j5) << 7);\n if (a2 < 0) {\n b = a2 ^ Byte.MIN_VALUE;\n } else {\n long j7 = j6 + 1;\n byte a3 = a2 ^ (C3691q1.m8803a(j6) << 14);\n if (a3 >= 0) {\n j = (long) (a3 ^ 16256);\n } else {\n j6 = j7 + 1;\n byte a4 = a3 ^ (C3691q1.m8803a(j7) << 21);\n if (a4 < 0) {\n b = a4 ^ -2080896;\n } else {\n j7 = j6 + 1;\n long a5 = ((long) a4) ^ (((long) C3691q1.m8803a(j6)) << 28);\n if (a5 >= 0) {\n j3 = 266354560;\n } else {\n long j8 = j7 + 1;\n long a6 = a5 ^ (((long) C3691q1.m8803a(j7)) << 35);\n if (a6 < 0) {\n j2 = -34093383808L;\n } else {\n j7 = j8 + 1;\n a5 = a6 ^ (((long) C3691q1.m8803a(j8)) << 42);\n if (a5 >= 0) {\n j3 = 4363953127296L;\n } else {\n j8 = j7 + 1;\n a6 = a5 ^ (((long) C3691q1.m8803a(j7)) << 49);\n if (a6 < 0) {\n j2 = -558586000294016L;\n } else {\n j7 = j8 + 1;\n j = (a6 ^ (((long) C3691q1.m8803a(j8)) << 56)) ^ 71499008037633920L;\n if (j < 0) {\n long j9 = 1 + j7;\n if (((long) C3691q1.m8803a(j7)) >= 0) {\n j6 = j9;\n this.f9091i = j6;\n return j;\n }\n }\n }\n }\n }\n j = a6 ^ j2;\n j6 = j8;\n this.f9091i = j6;\n return j;\n }\n j = a5 ^ j3;\n }\n }\n j6 = j7;\n this.f9091i = j6;\n return j;\n }\n j = (long) b;\n this.f9091i = j6;\n return j;\n }\n }\n return mo9787z();\n }", "public static long m8659e(long j) {\n return (j >> 63) ^ (j << 1);\n }", "private static long modInverse64(long d)\n {\n long x = d + (((d + 1L) & 4L) << 1); // d.x == 1 mod 2**4\n x *= 2 - d * x; // d.x == 1 mod 2**8\n x *= 2 - d * x; // d.x == 1 mod 2**16\n x *= 2 - d * x; // d.x == 1 mod 2**32\n x *= 2 - d * x; // d.x == 1 mod 2**64\n// assert d * x == 1L;\n return x;\n }", "private long m10270d(long j) {\r\n return (j >>> 1) ^ (-(1 & j));\r\n }", "public long mo9763z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9758u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }", "public final int mo6465d() {\n return 19729000;\n }", "long mo1636a(long j, alb alb);", "public abstract long mo9746k();", "public abstract long mo9748m();", "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 }", "public long mo9775y() {\n /*\n r11 = this;\n int r0 = r11.f9082i\n int r1 = r11.f9080g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9082i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\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_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\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_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\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_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9776z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9082i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9775y():long\");\n }", "void mo25957a(long j, long j2);", "void mo30275a(long j);", "private int mediePixeli(int pixel1, int pixel2) {\n\t return (int) (((((pixel1) ^ (pixel2)) & 0xfffefefeL) >> 1) + ((pixel1) & (pixel2)));\n\t }", "public abstract long mo9229aD();", "public long mo9787z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9782u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }", "String mo30285c(long j);", "public int mo36g() {\n return 8;\n }", "long getCollideBits();", "int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }", "void mo30290d(long j);", "public long mo9762y() {\n /*\n r11 = this;\n int r0 = r11.f9074i\n int r1 = r11.f9072g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9074i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\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_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\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_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\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_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9763z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9074i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9762y():long\");\n }", "void mo13371a(int i, long j);", "float mo106364f();", "public abstract long mo13679a();", "Info mo7564ix();", "public abstract long mo24412e();", "public abstract void mo4363a(int i, long j);", "public static int m22579g(long j) {\n return 8;\n }", "public static int offsetBits_sum_e() {\n return 104;\n }", "private long m674a(byte[] bArr) {\n return ((((long) bArr[7]) & 255) << 56) | ((((long) bArr[6]) & 255) << 48) | ((((long) bArr[5]) & 255) << 40) | ((((long) bArr[4]) & 255) << 32) | ((((long) bArr[3]) & 255) << 24) | ((((long) bArr[2]) & 255) << 16) | ((((long) bArr[1]) & 255) << 8) | (255 & ((long) bArr[0]));\n }", "public abstract long mo9755t();", "public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }", "public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }", "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 }", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "public final void mo4383c(long j) {\n try {\n byte[] bArr = this.f20653b;\n int i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) j);\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 8));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 16));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 24));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 32));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 40));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 48));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 56));\n } catch (long j2) {\n throw new zzc(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Integer.valueOf(this.f20656e), Integer.valueOf(this.f20655d), Integer.valueOf(1)}), j2);\n }\n }", "public abstract Integer mo36210m();", "private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }", "private static int m22592m(int i) {\n return (i >> 31) ^ (i << 1);\n }", "static void method_6617() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"3\u0012qêXI}@k\u0017ê\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_6523 = (new String((char[])var4)).intern();\r\n String var2 = field_6523;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 162;\r\n break;\r\n case 1:\r\n var10009 = 140;\r\n break;\r\n case 2:\r\n var10009 = 252;\r\n break;\r\n case 3:\r\n var10009 = 8;\r\n break;\r\n case 4:\r\n var10009 = 186;\r\n break;\r\n case 5:\r\n var10009 = 171;\r\n break;\r\n default:\r\n var10009 = 159;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "private void m76766d() {\n m76765c();\n this.f61649f += this.f61648e;\n if (this.f61649f > this.f61647d) {\n this.f61649f = this.f61647d;\n }\n m76768f();\n }", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "int ainverse(int z)\n {\n return (65536-z);\n }", "private int m145807c(int i) {\n int i2 = this.f119502d;\n this.f119502d = i2 + 1;\n return i | (i2 << 8);\n }", "public abstract long mo13681c();", "void mo33732Px();", "int mo5867a(String str, long j);", "public abstract void mo4382c(int i, long j);", "private static long m7404a(long j, long j2) {\n return (long) Math.floor(Math.pow((double) j, 1.0d / ((double) j2)));\n }", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static long m8444a(long j) {\n return (-(j & 1)) ^ (j >>> 1);\n }", "public abstract void mo4383c(long j);", "public long readRawVarint64() throws java.io.IOException {\n /*\n r9 = this;\n int r0 = r9.bufferPos\n int r1 = r9.bufferSize\n if (r1 != r0) goto L_0x0008\n goto L_0x00b8\n L_0x0008:\n byte[] r2 = r9.buffer\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r9.bufferPos = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b8\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n long r3 = (long) r0\n r5 = 0\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x002f\n r5 = -128(0xffffffffffffff80, double:NaN)\n L_0x002b:\n long r2 = r3 ^ r5\n goto L_0x00bf\n L_0x002f:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n long r7 = (long) r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0042\n r1 = 16256(0x3f80, double:8.0315E-320)\n L_0x003d:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bf\n L_0x0042:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n int r0 = r0 << 21\n long r7 = (long) r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0052\n r5 = -2080896(0xffffffffffe03f80, double:NaN)\n goto L_0x002b\n L_0x0052:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 28\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0063\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n goto L_0x003d\n L_0x0063:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0076\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n goto L_0x002b\n L_0x0076:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0089\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x003d\n L_0x0089:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009c\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x002b\n L_0x009c:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bd\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00be\n L_0x00b8:\n long r0 = r9.readRawVarint64SlowPath()\n return r0\n L_0x00bd:\n r1 = r0\n L_0x00be:\n r2 = r3\n L_0x00bf:\n r9.bufferPos = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.protobuf.CodedInputStream.readRawVarint64():long\");\n }", "public static int offsetBits_sum_a() {\n return 72;\n }", "public static int m8673j(int i) {\n return (i >> 31) ^ (i << 1);\n }", "protected static void endPartial(long[] h) {\n h[11] += h[1]; \n h[2] ^= h[11]; \n h[1] = (h[1] << 44) | (h[1] >>> 20);\n h[0] += h[2]; \n h[3] ^= h[0]; \n h[2] = (h[2] << 15) | (h[2] >>> 49);\n h[1] += h[3]; \n h[4] ^= h[1]; \n h[3] = (h[3] << 34) | (h[3] >>> 30);\n h[2] += h[4]; \n h[5] ^= h[2]; \n h[4] = (h[4] << 21) | (h[4] >>> 43);\n h[3] += h[5]; \n h[6] ^= h[3]; \n h[5] = (h[5] << 38) | (h[5] >>> 26);\n h[4] += h[6]; \n h[7] ^= h[4]; \n h[6] = (h[6] << 33) | (h[6] >>> 31);\n h[5] += h[7]; \n h[8] ^= h[5]; \n h[7] = (h[7] << 10) | (h[7] >>> 54);\n h[6] += h[8]; \n h[9] ^= h[6]; \n h[8] = (h[8] << 13) | (h[8] >>> 51);\n h[7] += h[9]; \n h[10] ^= h[7]; \n h[9] = (h[9] << 38) | (h[9] >>> 26);\n h[8] += h[10]; \n h[11] ^= h[8]; \n h[10] = (h[10] << 53) | (h[10] >>> 11);\n h[9] += h[11]; \n h[0] ^= h[9]; \n h[11] = (h[11] << 42) | (h[11] >>> 22);\n h[10] += h[0]; \n h[1] ^= h[10]; \n h[0] = (h[0] << 54) | (h[0] >>> 10);\t\t\n\t}", "private static byte[] getEightBits(byte[] bits56) {\n byte[] bits64 = new byte[8];\n System.arraycopy(bits56, 0, bits64, 0, 7);\n bits64[7] = (byte) (((bits56[0] & 1) << 1) | ((bits56[1] & 1) << 2) | ((bits56[2] & 1) << 3)\n | ((bits56[3] & 1) << 4) | ((bits56[4] & 1) << 5) | ((bits56[5] & 1) << 6)\n | ((bits56[6] & 1) << 7));\n return bits64;\n }", "public static int m8655e() {\n return 8;\n }", "public int mo36g() {\n return 4;\n }", "long mo133613a();", "C4135d0 mo1484a(int i, long j);", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "public abstract long mo9743h();", "private void m6556g() {\n m6561c();\n m6557h();\n m6558i();\n }", "public static int m8647c() {\n return 8;\n }", "private long mask(int n) {\n\t\treturn 1L << n;\n\t}", "public long mo9784w() {\n long j = this.f9091i;\n if (this.f9090h - j >= 8) {\n this.f9091i = 8 + j;\n return ((((long) C3691q1.m8803a(j + 7)) & 255) << 56) | (((long) C3691q1.m8803a(j)) & 255) | ((((long) C3691q1.m8803a(1 + j)) & 255) << 8) | ((((long) C3691q1.m8803a(2 + j)) & 255) << 16) | ((((long) C3691q1.m8803a(3 + j)) & 255) << 24) | ((((long) C3691q1.m8803a(4 + j)) & 255) << 32) | ((((long) C3691q1.m8803a(5 + j)) & 255) << 40) | ((((long) C3691q1.m8803a(6 + j)) & 255) << 48);\n }\n throw C3606c0.m8181h();\n }", "public static void main(String[] args) {\n System.out.println(32>>2);// 0010 0000>>2= 0000 1000=8\n\n System.out.println(32/4);//32除以2的2次幂\n\n System.out.println(8<<2);// 0000 1000<<2=0010 0000=32\n System.out.println(8*4);//8 乘以2的2次幂\n\n System.out.println(2<<2);//2*2(2)=8\n\n System.out.println(-32>>>2);//32除以2的2次幂\n\n\n }", "long mo107678c(Integer num);", "public static long FNVhash64(long val) {\n // from http://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash\n long hashval = FNV_offset_basis_64;\n\n for (int i = ZERO_UNDEF; i < 8; i++) {\n long octet = val & 0x00ff;\n val = val >> 8;\n\n hashval = hashval ^ octet;\n hashval = hashval * FNV_prime_64;\n // hashval = hashval ^ octet;\n }\n return Math.abs(hashval);\n }", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "public boolean hasVar64() {\n return fieldSetFlags()[65];\n }", "int baseHash(int hashKey,int length)\n\t{\n\t\tdouble constant = (Math.sqrt(3) - 1);\n\t\tint base = (int) Math.floor((length * ((constant* hashKey) - Math.floor(constant* hashKey)))); \n\t\treturn base; //mod value is not applied at the base hashLevel. It is in the insert/find/reinset respectively\n\t}", "public abstract long mo24409b();", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"/\\fë%mwH]s,\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1436 = (new String((char[])var4)).intern();\r\n String var2 = field_1436;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 240;\r\n break;\r\n case 2:\r\n var10009 = 4;\r\n break;\r\n case 3:\r\n var10009 = 165;\r\n break;\r\n case 4:\r\n var10009 = 237;\r\n break;\r\n case 5:\r\n var10009 = 247;\r\n break;\r\n default:\r\n var10009 = 200;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "byte[] mo38566a();", "int mo44965b();", "public static void main(String[] args) {\n\t\tint x = ~0;\r\n\t\tSystem.out.println(Integer.toBinaryString(x));\r\n\t\tint y = x>>>8;\r\n\t\tSystem.out.println(Integer.toBinaryString(y));\r\n\t\tSystem.out.println(x+\" \"+y);\r\n\t\t\r\n\t\tint N = 1<<31;\r\n\t\tint M = 0b11;\r\n\t\tint j=2;\r\n\t\tint i=1;\r\n\t\tSystem.out.println(Integer.toBinaryString(N));\r\n\t\tSystem.out.println(Integer.toBinaryString(M));\r\n\t\tSystem.out.println(Integer.toBinaryString(insertMIntoNFromJtoI(M, N, j, i)));\r\n\t\t\r\n\t}", "public abstract void mo9807a(long j);", "private static long find_fast(long u)\n {\n long a, b, r;\n long maxUInt = 4294967295L;\n\n u += 0xe91aaa35;\n u = maxUInt % u;\n u ^= u >> 16;\n u = maxUInt % u;\n u += u << 8;\n u = maxUInt % u;\n u ^= u >> 4;\n u = maxUInt % u;\n b = (u >> 8) & 0x1ff;\n b = maxUInt % b;\n a = (u + (u << 2)) >> 19;\n a = maxUInt % a;\n r = a ^ hash_adjust[(int)b];\n r = maxUInt % r;\n return r;\n }", "BigInteger getWidth();", "public long encode(long value) {\n\n return value ^ (value >> 1);\n }", "private void method_262(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16, int var17) {\n boolean var33 = field_759;\n int var21 = var13 >> 16 & 255;\n int var22 = var13 >> 8 & 255;\n int var23 = var13 & 255;\n int var24 = var14 >> 16 & 255;\n int var25 = var14 >> 8 & 255;\n int var26 = var14 & 255;\n\n try {\n int var27 = var5;\n int var28 = -var9;\n if(var33 || var28 < 0) {\n do {\n int var29 = (var6 >> 16) * var12;\n int var30 = var15 >> 16;\n int var31 = var8;\n int var32;\n if(var30 < this.field_745) {\n var32 = this.field_745 - var30;\n var31 = var8 - var32;\n var30 = this.field_745;\n var5 += var10 * var32;\n }\n\n if(var30 + var31 >= this.field_746) {\n var32 = var30 + var31 - this.field_746;\n var31 -= var32;\n }\n\n var17 = 1 - var17;\n if(var17 != 0) {\n var32 = var30;\n if(var33 || var30 < var30 + var31) {\n do {\n var4 = var2[(var5 >> 16) + var29] & 255;\n if(var4 != 0) {\n label69: {\n var4 = var3[var4];\n int var18 = var4 >> 16 & 255;\n int var19 = var4 >> 8 & 255;\n int var20 = var4 & 255;\n if(var18 == var19 && var19 == var20) {\n var1[var32 + var7] = (var18 * var21 >> 8 << 16) + (var19 * var22 >> 8 << 8) + (var20 * var23 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n if(var18 == 255 && var19 == var20) {\n var1[var32 + var7] = (var18 * var24 >> 8 << 16) + (var19 * var25 >> 8 << 8) + (var20 * var26 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n var1[var32 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var32;\n } while(var32 < var30 + var31);\n }\n }\n\n var6 += var11;\n var5 = var27;\n var7 += this.field_723;\n var15 += var16;\n ++var28;\n } while(var28 < 0);\n\n }\n } catch (Exception var34) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "@LargeTest\n public void testMandelbrotfp64() {\n TestAction ta = new TestAction(TestName.MANDELBROT_DOUBLE);\n runTest(ta, TestName.MANDELBROT_DOUBLE.name());\n }", "long mo117970a();", "public abstract boolean mo43853a(long j);" ]
[ "0.62848186", "0.62606674", "0.6138571", "0.61288476", "0.6106632", "0.6070605", "0.6054936", "0.6016896", "0.5948831", "0.5878737", "0.5876665", "0.58690417", "0.58669686", "0.5836528", "0.58223283", "0.58210135", "0.5793914", "0.57893205", "0.57599634", "0.57534266", "0.57284683", "0.5699408", "0.5672837", "0.56354135", "0.56309867", "0.56280786", "0.56014866", "0.55938464", "0.5587736", "0.55818653", "0.5564447", "0.555725", "0.5555342", "0.5551903", "0.55442095", "0.55350184", "0.5503734", "0.54956686", "0.54896677", "0.5482405", "0.5475732", "0.5467516", "0.5454678", "0.5451992", "0.54498684", "0.5444071", "0.5441628", "0.5439174", "0.5439153", "0.54335797", "0.5432977", "0.5427894", "0.54230374", "0.54027313", "0.5402209", "0.5401873", "0.53984445", "0.5376646", "0.5372038", "0.5368796", "0.53679687", "0.5361713", "0.53580284", "0.5346382", "0.53339547", "0.53312856", "0.5319859", "0.53190476", "0.53096396", "0.5299066", "0.5297524", "0.5295593", "0.5293033", "0.52928096", "0.5290947", "0.5286948", "0.52835613", "0.5280689", "0.52756834", "0.52703243", "0.52675754", "0.52664506", "0.5265615", "0.5264095", "0.52571845", "0.5255078", "0.5254015", "0.5249922", "0.5249229", "0.5248482", "0.52481127", "0.5238647", "0.5238043", "0.52371913", "0.5232605", "0.52316153", "0.5231134", "0.5224732", "0.5224483", "0.52234656", "0.522151" ]
0.0
-1
/ 71: / 72:
protected OutputStream decorateOutputStream(HttpExchange exchange, OutputStream os) /* 73: */ throws IOException /* 74: */ { /* 75:175 */ return os; /* 76: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo21783H() {\n }", "public int mo36g() {\n return 8;\n }", "long getUnknown72();", "private void m50366E() {\n }", "void mo33732Px();", "public void mo21782G() {\n }", "public void mo9233aH() {\n }", "public void mo21794S() {\n }", "private void m50367F() {\n }", "public int mo36g() {\n return 4;\n }", "public void mo21787L() {\n }", "public void mo21779D() {\n }", "public void mo21786K() {\n }", "public int method_2436() {\r\n return 16;\r\n }", "public void mo2471e() {\n }", "protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }", "public void mo2470d() {\n }", "public void mo21780E() {\n }", "public int mo36g() {\n return 2;\n }", "public void mo21785J() {\n }", "public void mo12628c() {\n }", "public void mo21877s() {\n }", "public void mo21788M() {\n }", "public void mo21781F() {\n }", "public static int m8655e() {\n return 8;\n }", "public void mo3749d() {\n }", "public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }", "C2841w mo7234g();", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public void mo21789N() {\n }", "public void mo3370l() {\n }", "public void mo3376r() {\n }", "public void mo21792Q() {\n }", "public void mo21784I() {\n }", "public void mo21879u() {\n }", "public void method_4270() {}", "public final void mo7596sH(String str) {\n }", "public void mo6081a() {\n }", "public void mo21867i() {\n mo21877s();\n }", "public void mo21791P() {\n }", "private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }", "C1458cs mo7613iS();", "private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }", "public abstract int mo8526p();", "public void mo21793R() {\n }", "public void mo44053a() {\n }", "Info mo7564ix();", "public void mo56167c() {\n }", "public void mo38117a() {\n }", "public void mo12930a() {\n }", "void mo72113b();", "public static int m22583h(long j) {\n return 8;\n }", "public void mo2740a() {\n }", "void mo7445h(int i, int i2);", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public void mo23813b() {\n }", "public abstract String mo9751p();", "void mo72114c();", "public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }", "public void mo8738a() {\n }", "public void m23075a() {\n }", "void mo12637b();", "void mo21076g();", "public abstract long mo13681c();", "public abstract int mo9754s();", "public void mo21878t() {\n }", "void mo21074e();", "C5727e mo33224a();", "public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }", "public void mo6944a() {\n }", "void mo1763h(int i);", "void mo72111a();", "public void mo9137b() {\n }", "public void mo97908d() {\n }", "void mo64942a(String str, long j, long j2);", "public int mo3361f() {\n return 1;\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public short mo34e() {\n return 41;\n }", "C7904c mo24084a();", "void mo1761g(int i);", "public void mo5248a() {\n }", "public void mo3946e() {\n m25427g();\n }", "void mo21073d();", "void mo5875b(String str, long j);", "void mo9075h(String str, int i, int i2);", "public abstract long mo9229aD();", "private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }", "private void kk12() {\n\n\t}", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }", "int getUnknown13();", "public abstract String mo13682d();", "String mo30285c(long j);", "void mo27575a();", "int mo23521Ly();", "public abstract int mo9749n();", "public abstract Integer mo36210m();", "public void skystonePos6() {\n }", "public void mo21795T() {\n }", "static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }", "int mo1756e(int i);" ]
[ "0.6325523", "0.62474996", "0.62075526", "0.6164197", "0.61580247", "0.6153241", "0.6142222", "0.6068121", "0.60557204", "0.6053832", "0.60443103", "0.6044202", "0.6043805", "0.6028422", "0.60247445", "0.60163224", "0.6013893", "0.5994779", "0.5983329", "0.597178", "0.59647113", "0.59560555", "0.5949334", "0.59362847", "0.59304154", "0.59265536", "0.59214544", "0.5903443", "0.58950466", "0.5890899", "0.5878614", "0.58533406", "0.58512485", "0.5846122", "0.58453983", "0.58310187", "0.58298194", "0.5821655", "0.5817616", "0.580431", "0.5797783", "0.5778813", "0.57681674", "0.5764212", "0.57568675", "0.57466704", "0.57413596", "0.57332623", "0.5727658", "0.5722572", "0.57183343", "0.57140774", "0.5711277", "0.57000613", "0.56912243", "0.5688521", "0.56856215", "0.5683752", "0.5677635", "0.5677076", "0.56716776", "0.5671314", "0.5669046", "0.5667976", "0.566513", "0.56555235", "0.5654206", "0.56518364", "0.56497365", "0.56494623", "0.5646611", "0.56445783", "0.5643259", "0.5638424", "0.56324637", "0.5629224", "0.56290287", "0.5624536", "0.5617729", "0.5611603", "0.56096345", "0.5609614", "0.56064665", "0.56013036", "0.55994326", "0.55987966", "0.55987424", "0.55978644", "0.55975074", "0.5592744", "0.5592442", "0.55916685", "0.5586299", "0.5584075", "0.5583412", "0.5582763", "0.558265", "0.55761254", "0.5575354", "0.5574827", "0.55693185" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_register, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Returns the value of the 'Feedback' reference. If the meaning of the 'Feedback' reference isn't clear, there really should be more of a description here...
Feedback getFeedback();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFeedback() {\n\t\treturn feedback;\n\t}", "public String getFeedback() {\n\t\treturn feedback;\n\t}", "int getFeedback();", "protected String getFeedback() {\n\t\t\n\t\tString feedback = new String();\n\t\t\n\t\treturn feedback;\n\t}", "lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback();", "public String getFeedbackResponse() {\n\t return this.feedbackResponse;\n\t}", "public String getFeedbackID() {\n\t return this.feedbackID;\n\t}", "public String getFeedbackId() {\n return feedbackId;\n }", "public lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback() {\n return feedback_;\n }", "public void setFeedback(String feedback) {\n\t\tthis.feedback = feedback;\n\t}", "public lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING getFeedback() {\n return feedback_;\n }", "public boolean hasFeedback() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasFeedback() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasFeedback();", "@Override\n\t/**\n\t * @return feedback\n\t * \t\t\treturns the feedback or status of the operation\n\t */\n\tpublic OperationFeedback getOpFeedback() {\n\t\treturn feedback;\n\t}", "protected IFigure getFeedbackLayer() {\n\t\treturn getLayer(LayerConstants.SCALED_FEEDBACK_LAYER);\n\t}", "public FeedbackOFCandidate getFeedbackObject() {\r\n\r\n\t\tFeedbackOFCandidate feedback = new FeedbackOFCandidate();\r\n\t\tfeedback.setFeedbackId(FEEDBACK_ID);\r\n\t\tfeedback.setCandidateName(CANDIDATE_NAME);\r\n\t\tfeedback.setInterviewerName(INTERVIEWER_NAME);\r\n\t\tfeedback.setRound(ROUND);\r\n\t\tfeedback.setExperience(EXPERIENCE);\r\n\t\tfeedback.setJobRole(JOB_ROLE);\r\n\t\tfeedback.setDateOfInterview(DATE_OF_INTERVIEW);\r\n\t\tfeedback.setTechnicalSkill(TECHNICAL_SKILL);\r\n\t\tfeedback.setOrganizationalSkill(ORGANIZATIONAL_SKILL);\r\n\t\tfeedback.setEducationSkill(EDUCATIONAL_SKILL);\r\n\t\tfeedback.setCommunicationSkill(COMMUNICATION_SKILL);\r\n\t\tfeedback.setOverallRating(OVERALL_RATING);\r\n\t\tfeedback.setCandidate(getCandidateObj());\r\n\t\tfeedback.setInterview(getInterview());\r\n\r\n\t\tfeedback.setUserDetails(getUserDetailsInterviewer());\r\n\t\tfeedback.setInterviewResult(INTERVIEW_RESULT);\r\n\t\tfeedback.setNextRound(NEXT_ROUND);\r\n\t\tfeedback.setHrleaderAbility(HR_ABILITY_SKILL);\r\n\t\treturn feedback;\r\n\t}", "public DealerFeedbackVOImpl getDealerFeedbackVO1() {\n return (DealerFeedbackVOImpl) findViewObject(\"DealerFeedbackVO1\");\n }", "public void setFeedbackID(String feedbackID) {\n\t this.feedbackID = feedbackID;\n\t}", "@Override\n public String getDescription() {\n return \"Digital goods feedback\";\n }", "public void Feedback_req()\n {\n\t boolean feedbackreqpresent =Feedbackreq.size()>0;\n\t if(feedbackreqpresent)\n\t {\n\t\t // System.out.println(\"Feedback Request report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Feedback Request report is not present\");\n\t }\n }", "public void testReceiveFeedback() {\n\n\t}", "public void setFeedbackResponse(String feedbackResponse) {\n\t this.feedbackResponse = feedbackResponse;\n\t}", "public String getITStandardsAndGuidelinesFeedbackActionTaskReference() {\n return iTStandardsAndGuidelinesFeedbackActionTaskReference;\n }", "public void setFeedbackLevel(int feedbackLevel) {\r\n\r\n\t\t// Value in the range 0..100\r\n\t\tthis.feedbackLevel = feedbackLevel;\r\n\t}", "public Feedback readOne(int id) {\n\t\treturn feedbackRepository.findOne(id);\n\t}", "@Override\r\n\tpublic List<Feedback> getFeedbacklist() {\n\t\tList<Feedback> flist= frepository.findAll();\r\n\t\treturn flist;\r\n\t}", "public Object getITStandardsAndGuidelinesFeedbackActionTaskRecord() {\n return iTStandardsAndGuidelinesFeedbackActionTaskRecord;\n }", "public void setFeedbackId(String feedbackId) {\n this.feedbackId = feedbackId == null ? null : feedbackId.trim();\n }", "@Override\r\n\tpublic List<Feedback> getFeedback(int tutorId) {\n\t\tList<Feedback> flist= frepository.getFeedback(tutorId);\r\n\t\treturn flist;\r\n\t}", "public List<Feedback> getFeedback(String eventId) {\r\n\r\n Event e = DatabaseManager.getDatabaseManager().getEventFromID(eventId);\r\n if (e == null)\r\n return new ArrayList<>();\r\n return e.getFeedback();\r\n }", "public Object getLeasingItemAdministrationFeedbackActionTaskRecord() {\n return leasingItemAdministrationFeedbackActionTaskRecord;\n }", "@Override\r\n\tpublic List<Feedback> getAll() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Feedback removeFeedback(int feedbackId) {\n\t\tFeedback feedback= frepository.getOne(feedbackId);\r\n\t\tfrepository.delete(feedback);\r\n\t\treturn feedback;\r\n\t}", "public void receiveFeedback(boolean success, String message) throws Throwable\n {\n Logger.log(\"Received feedback for Retrieve Pendings: Success=\"+success\n + \", \"+ message);\n }", "public static void setProvideFeedback(boolean b){\n\t\tprovideFeedback = b;\t \n\t}", "public static void m5835j() {\n if (f4669a != null) {\n f4669a.m12578a(\"Feedback_clicked\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"Feedback clicked\"));\n }", "public String feedback(boolean flag)\n\t{\n\t\tif(flag == false)\n\t\t\treturn \"Submit Feedback\\n\";\n\t\telse\n\t\t\treturn \"Feedback: \";\n\t}", "public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}", "public Float getBonusReference() {\n return bonusReference;\n }", "public String getREFERENCE() {\r\n return REFERENCE;\r\n }", "public String getReceiveNotice() {\n return receiveNotice;\n }", "public QFeedback<S> takedAction();", "public void sendFeedback(View view) {\n RatingBar ratingBar = (RatingBar) findViewById(R.id.ratingBar);\n Float feedback = ratingBar.getRating();\n\n EditText remarksText = (EditText) findViewById(R.id.remarks);\n String remarks = remarksText.getText().toString();\n\n // Build the params to be sent on the server.\n // Fill the value of the corresponding Hash map keys with\n // inputs from your own app.\n\n Map<String, String> params = new HashMap<>();\n params.put(\"apk_token\", BuildConfig.FEEDBACK_TOKEN);\n params.put(\"user_id\", user_id);\n params.put(\"doctor_id\", doctor_id);\n params.put(\"data[rating]\", feedback.toString());\n params.put(\"data[comments]\", remarks);\n\n if (user_id.equals(\"\") || doctor_id.equals(\"\")) {\n Toast toast = Toast.makeText(getApplicationContext(), \"No User/Doctor found.\", Toast.LENGTH_SHORT);\n toast.show();\n } else {\n // Previous prepared params will then used by the PostFeedback\n // class to send inputs to the server.\n //\n // For advance features, you can save the feedback inputs in a file/DB in a meantime\n // then use this when an internet connection is already available.\n new PostFeedback(getApplicationContext(), params);\n }\n }", "public void submitFeedback()\r\n {\n if(mechanicList.getValue() == null && ratingButtons.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Both Mechanic Name AND Desired Rating.\");\r\n } else if(mechanicList.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Mechanic Name.\");\r\n } else if(ratingButtons.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Desired Rating.\");\r\n } else {\r\n feedbackController.submitFeedback(mechanicList.getValue(), feedbackMsgField.getValue(), Integer.parseInt(ratingButtons.getValue()));\r\n feedbackController.updateMechanicStars(mechanicList.getValue());\r\n MainLayout.displayInformationPrompt(\"Review Submitted! Thanks For Your feedback!\");\r\n }\r\n }", "FeedbackFilter getFilter();", "public ArrayList<FeedbackDetail> gettingAllAvailableFeedbacks() throws Exception;", "public static Result feedbackPage() {\n\t\treturn ok(views.html.feedbackPage.render());\n\t}", "public Feedback save(Feedback feedback) {\n\t\treturn feedbackRepository.save(feedback);\n\t}", "public StringWithCustomFacts getRestrictionNotice() {\n return restrictionNotice;\n }", "public String getFeedBack_string() {\n return FeedBack_string;\n }", "FeedbackConsequence getConsequence();", "public void sendFeedbackNotifiction(EmpFeedback empFeedback) {\n\t\tLOGGER.debug(\"Invoking sendFeedbackNotifiction method\");\n\n\t\ttry {\n\t\t\temailMessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\tInternetAddress.parse(feedbackMailTo));\n\t\t\temailMessage.setRecipients(Message.RecipientType.CC, null);\n\t\t\temailMessage.setSentDate(new Date());\n\t\t\temailMessage.setSubject(empFeedbackEmailSubject);\n\t\t\tBodyPart messageBodyPart = new MimeBodyPart();\n\t\t\tString mailBody = empFeedbackEmailBody;\n\t\t\tmessageBodyPart.setText(replaceFeedback(empFeedback, mailBody));\n\t\t\tMultipart multipart = new MimeMultipart();\n\t\t\tmultipart.addBodyPart(messageBodyPart);\n\t\t\temailMessage.setContent(multipart);\n\t\t\tTransport.send(emailMessage);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Exception parsing mail address\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String getRef(){\r\n\t\treturn this.getAttribute(\"ref\").getValue();\r\n\t}", "public boolean insertFeedback(Feedback feedback) {\n\t\treturn iFeedbackDao.insertFeedback(feedback);\n\t}", "String getTraceabilityNotes();", "public FeedbackDTO getFeedbackDTO() {\r\n\r\n\t\tFeedbackDTO feedbackdto = new FeedbackDTO();\r\n\t\tfeedbackdto.setFeedbackId(FEEDBACK_ID);\r\n\t\tfeedbackdto.setCandidateName(CANDIDATE_NAME);\r\n\t\tfeedbackdto.setInterviewerName(INTERVIEWER_NAME);\r\n\t\tfeedbackdto.setRound(ROUND);\r\n\t\tfeedbackdto.setExperience(EXPERIENCE);\r\n\t\tfeedbackdto.setJobRole(JOB_ROLE);\r\n\t\tfeedbackdto.setDateOfInterview(DATE_OF_INTERVIEW);\r\n\t\tfeedbackdto.setTechnicalSkill(TECHNICAL_SKILL);\r\n\t\tfeedbackdto.setOrganizationalSkill(ORGANIZATIONAL_SKILL);\r\n\t\tfeedbackdto.setEducationSkill(EDUCATIONAL_SKILL);\r\n\t\tfeedbackdto.setCommunicationSkill(COMMUNICATION_SKILL);\r\n\t\tfeedbackdto.setOverallRating(OVERALL_RATING);\r\n\t\tfeedbackdto.setCandidate(CANDIDATE_ID);\r\n\t\tfeedbackdto.setInterview(INTERVIEW_ID);\r\n\t\tfeedbackdto.setInterviewer(INTERVIEWER_ID);\r\n\t\tfeedbackdto.setInterviewResult(INTERVIEW_RESULT);\r\n\t\tfeedbackdto.setNextRound(NEXT_ROUND);\r\n\t\tfeedbackdto.setHrLeaderAbility(HR_ABILITY_SKILL);\r\n\t\treturn feedbackdto;\r\n\t}", "public String getValue_txt_ThankYou_Message_Text(){\r\n\t\treturn txt_ThankYou_Message_Text.getAttribute(\"value\");\r\n\t}", "public java.lang.String getRemarks() {\n\t\treturn _tempNoTiceShipMessage.getRemarks();\n\t}", "public String getApplicableLawReference() {\n return applicableLawReference;\n }", "public String getReasonRejection()\n\t{\n\t\treturn reasonRejection;\n\t}", "public String getAnnouncement();", "public boolean updateFeedback(int is_used_0, int f_id) {\n\t\treturn iFeedbackDao.updateFeedback(is_used_0, f_id);\n\t}", "public String getAcCommentsMessage() {\n return acCommentsMessage;\n }", "EDataType getReactance();", "public ST getComment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }", "public Integer getRiskWarning() {\n return riskWarning;\n }", "private Map<String, Object> getRatingInfo(){\n Map<String, Object> ratingInfo = new HashMap<>();\n String text = feedbackText.getText().toString().trim();\n\n ratingInfo.put(Keys.RatingInfo.RATE, ratingBar.getRating());\n ratingInfo.put(Keys.RatingInfo.MESSAGE, text);\n\n return ratingInfo;\n }", "public String getFeeReason() {\n return feeReason;\n }", "float getPostGain();", "public java.lang.String getReasonText() {\n return reasonText;\n }", "@SuppressWarnings(\"StringBufferReplaceableByString\")\n private static String generateFeedbackBody(Context c) {\n StringBuilder sb = new StringBuilder(\"\\n\\n\\n\" +\n \"(only write above this line)\\n\\n\" +\n \"-----------\\n\" +\n \"System info\\n\" +\n \"-----------\\n\\n\");\n\n // HW information\n sb.append(\"Device model: \").append(Build.MODEL).append(\"\\n\");\n sb.append(\"Manifacturer: \").append(Build.MANUFACTURER).append(\"\\n\");\n sb.append(\"Brand: \").append(Build.BRAND).append(\"\\n\");\n sb.append(\"CPU ABI: \").append(Build.CPU_ABI).append(\"\\n\");\n sb.append(\"Product: \").append(Build.PRODUCT).append(\"\\n\").append(\"\\n\");\n\n // SW information\n sb.append(\"Android version: \").append(Build.VERSION.CODENAME).append(\"\\n\");\n sb.append(\"Release: \").append(Build.VERSION.RELEASE).append(\"\\n\");\n sb.append(\"Incremental: \").append(Build.VERSION.INCREMENTAL).append(\"\\n\");\n sb.append(\"Build: \").append(Build.FINGERPRINT).append(\"\\n\");\n sb.append(\"Kernel: \").append(getKernelVersion()).append(\"\\n\");\n\n // App info\n sb.append(\"App version: \").append(getAppVersionNumber(c));\n\n return sb.toString();\n }", "public int getConversionPenalty() {\n/* 277 */ return getConversionPenalty(null).getValue();\n/* */ }", "public String getLBR_DirectDebitNotice();", "public interface ITestFeedback {\n\t\t/** A sets has been completed with the supplied text\n\t\t * \n\t\t * @param msg\n\t\t */\n\t\tpublic void testComplete(String msg);\n\t}", "public String getReference() {\n return reference;\n }", "public boolean addFeedback(String eventCode, Feedback feedback) {\r\n // Gets the events collection and creates a query string for the event id\r\n MongoCollection<Document> events = mongoDB.getCollection(\"Events\");\r\n\r\n UpdateResult ur = events.updateOne(new Document(\"eventCode\", eventCode),\r\n Updates.addToSet(\"feedbackList\", feedback));\r\n WebSocketController.setEventAsModified(eventCode);\r\n if (ur.getMatchedCount() > 0)\r\n return true;\r\n\r\n return false;\r\n }", "public String getEvidence() {\n\t\treturn evidence;\r\n\t}", "public String getRef() {\n return ref;\n }", "public java.lang.String getHowToUse() {\n java.lang.Object ref = howToUse_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n howToUse_ = s;\n return s;\n }\n }", "public java.lang.String getHowToUse() {\n java.lang.Object ref = howToUse_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n howToUse_ = s;\n return s;\n }\n }", "public String getValue_click_Fuel_Rewards_Link(){\r\n\t\treturn click_Fuel_Rewards_Link.getAttribute(\"value\");\r\n\t}", "public String getSampleComment();", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tfeedbackText = parent.getItemAtPosition(position).toString();\n\t\t\t}", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "@Override\n\tpublic void update(Feedback feedback) throws SQLException {\n\n\t\tPreparedStatement ps=conn.prepareStatement(\"UPDATE feedback\"\n\t\t\t\t+ \" SET descrizione=?, voto=? where id_feedback=?\");\n\t\tps.setString(1, feedback.getDescrizione());\n\t\tps.setInt(2, feedback.getVoto());\n\t\tps.setInt(3, feedback.getIdFeedback());\n\t\tint n = ps.executeUpdate();\n\t\tif(n==0)\n\t\t\tthrow new SQLException(\"feedback: \" + feedback.getIdFeedback()+ \" non presente\");\n\n\t}", "public String getReject() {\n return reject;\n }", "public double getReview() {\r\n return review;\r\n }", "public Builder clearFeedback() {\n bitField0_ = (bitField0_ & ~0x00000002);\n feedback_ = lanyotech.cn.park.protoc.CommonProtoc.FEEDBACK4PARKING.NO_EXIST_PARKING;\n onChanged();\n return this;\n }", "public com.google.cloud.recommender.v1.Impact getAdditionalImpact(int index) {\n if (additionalImpactBuilder_ == null) {\n return additionalImpact_.get(index);\n } else {\n return additionalImpactBuilder_.getMessage(index);\n }\n }", "public Observable<ResponseBody> postQuestionFeedback(final QuestionFeedback questionFeedback) {\n return Observable.create(new ObservableOnSubscribe<ResponseBody>() {\n @Override\n public void subscribe(ObservableEmitter<ResponseBody> e) throws Exception {\n\n Call<ResponseBody> call = mNetworkModel.postQuestionFeedback(questionFeedback);\n Response<ResponseBody> response = call.execute();\n\n if (response != null && response.isSuccessful()) {\n Log.e(\"question feedback\", \"Successful\");\n e.onNext(response.body());\n } else if (response.code() == 404) {\n throw new Exception(mContext.getString(R.string.messageUnableToGetData));\n } else if (response.code() == 401 && SyncServiceHelper.refreshToken(mContext)) {\n Response<ResponseBody> response2 = call.clone().execute();\n if (response2 != null && response2.isSuccessful()) {\n Log.e(\"question feedback\", \"Successful\");\n e.onNext(response2.body());\n } else if (response2.code() == 401) {\n mContext.startActivity(LoginActivity.getUnauthorizedIntent(mContext));\n } else if (response2.code() == 404) {\n throw new Exception(mContext.getString(R.string.messageUnableToGetData));\n }\n } else {\n Log.e(\"question feedback\", \"Failed\");\n throw new Exception(mContext.getString(R.string.messageUnableToGetData));\n }\n\n e.onComplete();\n }\n });\n }", "public String getRemarks() {\r\n return (String) getAttributeInternal(REMARKS);\r\n }", "public boolean updateFeedback(String feedback, int orderId) throws DAOException {\n\n return executeQuery(UPDATE_FEEDBACK_QUERY, feedback, orderId);\n\n }", "public void addFeedbackToLastGuess(Feedback feedback) {\n\t\tint index = this.getLastPlayIndex();\n\n\t\tthis.guessList[index].setFeedback(feedback);\n\n\t\t// Notify all observers\n\t\tsuper.dataChanged();\n\t}", "public java.lang.String getFingerPrint() {\n java.lang.Object ref = fingerPrint_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fingerPrint_ = s;\n }\n return s;\n }\n }", "public ReasonerDescriptor getReasonerHint() {\r\n ReasonerDescriptor result = null;\r\n if (null != reasonerHint) {\r\n result = reasonerHint.getDescriptor();\r\n }\r\n return result;\r\n }", "public String getValue_click_My_Rewards_Link(){\r\n\t\treturn click_My_Rewards_Link.getAttribute(\"value\");\r\n\t}", "@Override\r\n\tpublic boolean addFeback(Feedback f) {\n\t\tString sql = \"insert into feedback(feedbackId,userId,feedbackInfo) values( ?,?, ? )\";\r\n\t\treturn BaseDao.execute(sql, f.getFeedbackId(), f.getUserId(), f.getFeedbackInfo()) > 0;\r\n\t}" ]
[ "0.8370088", "0.8370088", "0.7891121", "0.762098", "0.75026107", "0.74389786", "0.7380135", "0.7355387", "0.7171273", "0.711799", "0.70767605", "0.66012233", "0.6538231", "0.6506083", "0.62536836", "0.62411094", "0.61644214", "0.613834", "0.61368734", "0.60934055", "0.5994258", "0.59730995", "0.59279966", "0.59112257", "0.5876884", "0.5794091", "0.5787917", "0.5703492", "0.56964785", "0.569097", "0.5672895", "0.56056875", "0.559821", "0.5597489", "0.55438566", "0.55429864", "0.5494525", "0.54937184", "0.5486829", "0.54815006", "0.53880304", "0.53669345", "0.53232706", "0.5320094", "0.5312997", "0.531044", "0.5308476", "0.53033364", "0.52975696", "0.52941984", "0.52906024", "0.5257003", "0.52324355", "0.52214634", "0.5211568", "0.51952654", "0.516441", "0.51579887", "0.51553005", "0.5152514", "0.51491207", "0.5146467", "0.51442975", "0.51385725", "0.51117706", "0.5111605", "0.5106241", "0.5104279", "0.5080642", "0.50723386", "0.50641596", "0.50582945", "0.5030011", "0.5029512", "0.5019072", "0.5017978", "0.5007409", "0.5006627", "0.50008667", "0.4999271", "0.4999271", "0.49992448", "0.4993516", "0.49920052", "0.49901775", "0.49901775", "0.49901775", "0.49847534", "0.49815276", "0.49791718", "0.49667034", "0.49650392", "0.49619114", "0.49596795", "0.49579617", "0.495705", "0.49561456", "0.4955495", "0.4946245", "0.49436197" ]
0.8077732
2
Returns the value of the 'Immediate' attribute. If the meaning of the 'Immediate' attribute isn't clear, there really should be more of a description here...
boolean isImmediate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setImmediate(ValueExpression immediate) {\n this.immediate = immediate;\n }", "public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }", "@Transient\t//TODO\n\tpublic boolean getExpressFlag()\t{\n\t\treturn mExpressflag;\n\t}", "public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }", "public Integer getFirstGlobalAtt() {\r\n return firstGlobalAtt;\r\n }", "public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }", "public String getAttractionPhone() {\n return mAttractionPhone;\n }", "public String getExtAttribute15() {\n return (String) getAttributeInternal(EXTATTRIBUTE15);\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "public Boolean isExpectImmediateAuthorization() {\n return expectImmediateAuthorization;\n }", "public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }", "public String getShowFlag() {\r\n return (String) getAttributeInternal(SHOWFLAG);\r\n }", "public String getIndicative() {\n\t\treturn null;\r\n\t}", "double getActiveOperand();", "public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}", "public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}", "public Number getCurrentQtr() {\r\n return (Number) getAttributeInternal(CURRENTQTR);\r\n }", "public String getAttribute15() {\n return (String) getAttributeInternal(ATTRIBUTE15);\n }", "public String getExtAttribute10() {\n return (String) getAttributeInternal(EXTATTRIBUTE10);\n }", "public String getExtAttribute11() {\n return (String) getAttributeInternal(EXTATTRIBUTE11);\n }", "public String getIntAttribute15() {\n return (String) getAttributeInternal(INTATTRIBUTE15);\n }", "public String getAttribute15()\n {\n return (String)getAttributeInternal(ATTRIBUTE15);\n }", "public final XmlTextInfo value ()\r\n {\r\n return _value;\r\n }", "public String getAvailableForRentFlag() {\n return (String) getAttributeInternal(AVAILABLEFORRENTFLAG);\n }", "public String getLocalFlag() {\n return (String) getAttributeInternal(LOCALFLAG);\n }", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value xgetValue();", "public java.lang.String getTaxExemptDescription() {\n return taxExemptDescription;\n }", "public String getAttribute15() {\n return (String)getAttributeInternal(ATTRIBUTE15);\n }", "public String getAttribute15() {\n return (String)getAttributeInternal(ATTRIBUTE15);\n }", "public String getIncomingPaymentPurpose() {\n return incomingPaymentPurpose;\n }", "public ConfirmOrderReferenceRequest setExpectImmediateAuthorization(Boolean expectImmediateAuthorization) {\n this.expectImmediateAuthorization = expectImmediateAuthorization;\n return this;\n }", "@Override\n public final boolean hasSpecialDefenseValueAttribute() {\n return true;\n }", "public String getTaxCalculated()\n\t{\n\t\twaitForVisibility(taxCalculated);\n\t\treturn taxCalculated.getText();\n\t}", "public java.lang.String getPurposeSpecified() {\n\t\treturn _tempNoTiceShipMessage.getPurposeSpecified();\n\t}", "public Number getOperand() {\n return (Number)getAttributeInternal(OPERAND);\n }", "public C1426h mo1735a() {\n return C1426h.IMMEDIATE;\n }", "public String getLocalFlag() {\n return (String)getAttributeInternal(LOCALFLAG);\n }", "public Short getShortAttribute();", "public String getAttr15() {\n return attr15;\n }", "final public float getFloatAttr() {\r\n\t\t\tif(mName.length() == 0)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(mSaveAttr == null)\r\n\t\t\t\treturn getAttr(mName).Value;\r\n\t\t\treturn mSaveAttr.Value;\r\n\t\t}", "public String getIntAttribute7() {\n return (String) getAttributeInternal(INTATTRIBUTE7);\n }", "public String getShort() { \n\t\treturn getShortElement().getValue();\n\t}", "public /* synthetic */ String m125670A() {\n return mo69214d().mo109357b().get(this.f88307e.getCurrentItem()).mo109366b();\n }", "public String getIntAttribute11() {\n return (String) getAttributeInternal(INTATTRIBUTE11);\n }", "public String getSMemFax() {\n return sMemFax;\n }", "public String getExtAttribute7() {\n return (String) getAttributeInternal(EXTATTRIBUTE7);\n }", "@Override\r\n\tpublic boolean getIntentValue() {\n\t\treturn true;\r\n\t}", "public Integer getFirstAtt() {\r\n return firstAtt;\r\n }", "@objid (\"558d0de7-4bfc-4eaa-9317-4e9d49a2029c\")\n public static SmAttribute getIsExternalAtt() {\n return IsExternalAtt;\n }", "public String getExtAttribute1() {\n return (String) getAttributeInternal(EXTATTRIBUTE1);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttrVal() {\n return attrVal;\n }", "public String getQual() {\r\n return (String) getAttributeInternal(QUAL);\r\n }", "public String getAttribute11() {\n return (String) getAttributeInternal(ATTRIBUTE11);\n }", "public Number getIdexped()\n {\n return (Number)getAttributeInternal(IDEXPED);\n }", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getOnHoldFlag()\n {\n return (String)getAttributeInternal(ONHOLDFLAG);\n }", "public short getValue() {\n return value;\n }", "public String getRetentionMFlag() {\n return (String) getAttributeInternal(RETENTIONMFLAG);\n }", "public Number getTramo() {\n return (Number) getAttributeInternal(TRAMO);\n }", "public String getItsvalue() {\n return itsvalue;\n }", "public Number getActiveConsultants() {\r\n return (Number) getAttributeInternal(ACTIVECONSULTANTS);\r\n }", "org.apache.xmlbeans.XmlString xgetPurpose();", "public int getOne_time_only() {\n return one_time_only;\n }", "public XCN getExecutingPhysicianID() { \r\n\t\tXCN retVal = this.getTypedField(29, 0);\r\n\t\treturn retVal;\r\n }", "public short getValue() {\n return value;\n }", "public String getAttributeDisplay() {\r\n\t\treturn String.valueOf(this.getAttributeValue());\r\n\t}", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public int getAtt() {\n\t\treturn att;\n\t}", "public double getFirstExtreme(){\r\n return firstExtreme;\r\n }", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public String getBooltax() {\n return booltax;\n }", "public String getAttribute10()\n {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "@java.lang.Override\n public int getIndividualDefense() {\n return individualDefense_;\n }", "@java.lang.Override\n public int getIndividualDefense() {\n return individualDefense_;\n }", "String getAttributeStringValue(Object attr);", "public String getAttr7() {\n return attr7;\n }", "public short getIdentTurretee() {\n\n return m_identTurretee;\n }", "public java.lang.String getTaxExemptStatus() {\n return taxExemptStatus;\n }", "public Attraction getCurrentAttractionInScope() {\n return currentAttractionInScope;\n }", "public float fetchConstant() {\n\t\treturn fetchConstantService.getConstantValue();\n\t}", "public AXValue getValue() {\n return value;\n }", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public java.lang.String getFax () {\n\t\treturn fax;\n\t}", "public String getAttr11() {\n return attr11;\n }", "public int getAtomicCharge()\n\t{\n\t\treturn protons-electrons;\n\t}", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }", "public String getAttribute10() {\n return (String) getAttributeInternal(ATTRIBUTE10);\n }", "public String getExtAttribute9() {\n return (String) getAttributeInternal(EXTATTRIBUTE9);\n }", "public CFString value() {\n return lazyGlobalValue.value();\n }", "public int getAttribute() {\n return Attribute;\n }", "public int getDmaValue();", "public String getAttr() {\n return attr;\n }", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "public String getAtLeast() {\n return atLeast;\n }" ]
[ "0.5867826", "0.57908916", "0.56370634", "0.56095654", "0.5561214", "0.5510192", "0.5425444", "0.5413983", "0.5376775", "0.5343185", "0.533295", "0.532948", "0.5322856", "0.5321776", "0.5289589", "0.52801144", "0.5260858", "0.5260858", "0.5254132", "0.5249888", "0.52424926", "0.52313566", "0.52163607", "0.52053344", "0.51966065", "0.5189662", "0.5187749", "0.5183778", "0.5181777", "0.5173373", "0.5173373", "0.51725066", "0.5171485", "0.51591843", "0.5148679", "0.5119903", "0.51192594", "0.51025975", "0.50998163", "0.5092368", "0.5072602", "0.5068689", "0.50681007", "0.5062196", "0.5061038", "0.50539714", "0.5042332", "0.5039919", "0.50377446", "0.5033914", "0.50244224", "0.5022741", "0.5021342", "0.50171065", "0.50080603", "0.500596", "0.49953339", "0.49874026", "0.49841347", "0.4984061", "0.49815503", "0.49706995", "0.49679995", "0.49671736", "0.49624616", "0.49597", "0.4956953", "0.49549305", "0.49542665", "0.49470505", "0.49438918", "0.49407852", "0.49392822", "0.49385887", "0.49382675", "0.49376106", "0.49358723", "0.49358723", "0.4933361", "0.49320534", "0.49282762", "0.49256164", "0.49241698", "0.49232084", "0.49175358", "0.49117327", "0.49092454", "0.49019802", "0.49007967", "0.4897115", "0.48947588", "0.489362", "0.48918563", "0.4883664", "0.4882968", "0.48826754", "0.4880573", "0.48792756", "0.48766342", "0.48743004" ]
0.60877675
0
Returns the value of the 'Delayed' attribute. If the meaning of the 'Delayed' attribute isn't clear, there really should be more of a description here...
boolean isDelayed();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getDelay()\r\n {\r\n return this.delay;\r\n }", "public int getDelay() {\r\n\t\treturn delay;\r\n\t}", "public double getDelay();", "public float getDelay()\n\t{\n\t\treturn delay;\n\t}", "public BigDecimal getDelay() {\r\n return delay;\r\n }", "public int getDelay() {\n\t\treturn delay;\n\t}", "public int getDelay() {\r\n return delay;\r\n }", "public long getDelay()\n {\n return delay;\n }", "public int getDelay()\n {\n return delay;\n }", "public long getDelay() {\n return mDelay;\n }", "public int getDelay() {\n return delay;\n }", "public long getDelay();", "public org.apache.axis.types.UnsignedInt getDelay() {\n return delay;\n }", "public long getDelay() {\n return this.delay;\n }", "public int getDelay() {\n\t\treturn timer.getDelay();\n\t}", "public int getDelayTime()\n\t{\n\t\treturn delayTime;\n\t}", "public boolean isUpdateDelayed() {\n return (Boolean) getProperty(\"isUpdateDelayed\");\n }", "public long getDelayTime() {\n return (long) this.DELAY_TIME;\n }", "@JsonProperty(\"delay\")\n public Double getDelay() {\n return delay;\n }", "public int getFetchDelay() {\r\n return getAttributeAsInt(\"fetchDelay\");\r\n }", "public Long getDelaytime() {\n return delaytime;\n }", "public int getNumDelayedUpdates() {\n return (Integer) getProperty(\"numDelayedUpdates\");\n }", "public int getDelayedTimeout();", "public void setDelay(long d){delay = d;}", "public int getDelay() {\n return Math.abs(currentRequest.getRequestToFloor() - currentRequest.getRequestFromFloor()) * 1000;\n }", "public String getLstDelay() {\n return lstDelay;\n }", "int getNominalDelay();", "public boolean delayedReveiced () {\n\t\t\treturn resultDetected[RESULT_INDEX_DELAYED];\n\t\t}", "public long getNotificationDelay() {\n\t\treturn notificationDelay;\n\t}", "public double getSlowToFire();", "public int getDelayCounter() {\n return delayCounter;\n }", "public long getSleeping() { return sleeping; }", "public Integer getTolerableDelay() {\n\t\treturn tolerableDelay;\n\t}", "@Override\n public native int getAutoDelay();", "public Integer getBetDelay(){\n return betDelay;\n }", "public float getRepeatDelay()\n\t{\n\t\treturn repeatDelay;\n\t}", "public int getDroneDelay()\r\n {\r\n return droneDelay;\r\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.PaymentDelay getPaymentDelay();", "String getRedeliveryDelay();", "private int blockingDialogDelay()\r\n/* */ {\r\n/* 313 */ Integer delay = null;\r\n/* 314 */ String key = \"BlockingDialogTimer.delay\";\r\n/* 315 */ ApplicationAction action = getAction();\r\n/* 316 */ if (action != null) {\r\n/* 317 */ ResourceMap actionResourceMap = action.getResourceMap();\r\n/* 318 */ String actionName = action.getName();\r\n/* 319 */ delay = actionResourceMap.getInteger(actionName + \".\" + key);\r\n/* */ }\r\n/* 321 */ ResourceMap taskResourceMap = getTask().getResourceMap();\r\n/* 322 */ if ((delay == null) && (taskResourceMap != null)) {\r\n/* 323 */ delay = taskResourceMap.getInteger(key);\r\n/* */ }\r\n/* 325 */ return delay == null ? 0 : delay.intValue();\r\n/* */ }", "public static int getDelay() {\n\t\treturn ANIMATION_DELAY;\n\t}", "public double getTotalDelayTime() {\r\n return totalDelayTime;\r\n }", "public void setDelay(long delay) {\n this.delay = delay;\n }", "public int getDelayCount() {\r\n return delayCount;\r\n }", "long getInitialDelayInSeconds();", "public int[] getDelays() {\n return delays;\n }", "@WithName(\"schedule.delay\")\n @WithDefault(\"5s\")\n Duration scheduleDelay();", "private int get_delay() {\n double exp = slider1.getValue() / 100.0 - 9; // Range -9, 1\n exp = Math.min(0, exp); // Range -9, 0\n return (int) (Math.pow(10.0, exp) * 100000000.0);\n }", "public Duration getRetryDelay() {\n return retryDelay;\n }", "public float getDelayMove()\n\t{\n\t\treturn delayMove;\n\t}", "int getChronicDelayTime();", "@Override\n public double getExecutionDelayTime()\n {\n return executionDelayTime;\n }", "int getMaximumDelay();", "public DelayedEventHandler getDelayedEventHandler() {\n\t\treturn delayedEventHandler;\n\t}", "public int getAnimationDelay() {\n\t\treturn mAnimationDelay;\n\t}", "public Integer getClickHideDelay () {\r\n\t\treturn (Integer) getStateHelper().eval(PropertyKeys.clickHideDelay);\r\n\t}", "public int getExpiryDelay()\n {\n return m_cExpiryDelay;\n }", "@Override\n public long getDelay(TimeUnit unit) {\n return unit.convert( delayOffset + delayPerElement - System.currentTimeMillis(), TimeUnit.MILLISECONDS );\n }", "public Integer initialDelaySeconds() {\n return this.initialDelaySeconds;\n }", "public long getStartDelay() {\n/* 201 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@java.lang.Override\n public long getStateChangeDelayUntilTurn() {\n return stateChangeDelayUntilTurn_;\n }", "public int getVoteDelay() {\r\n\t\treturn voteDelay;\r\n\t}", "public long getDelay(TimeUnit timeUnit) {\n return future.getDelay(timeUnit);\n }", "public static String getDelay(int value) {\n try {\n return NETWORK_LATENCIES[value][1];\n } catch (ArrayIndexOutOfBoundsException e) {\n return NETWORK_LATENCIES[LaunchConfigDelegate.DEFAULT_DELAY][1];\n }\n }", "public int getFrameDelay() {\n\t\treturn frameDelay;\n\t}", "public Integer threadDelay();", "int getAbsoluteMaximumDelay();", "public native int getDelay() throws MagickException;", "public double getSleepEfficiency() {\n\t\treturn sleepEfficiency;\n\t}", "@JsonProperty(\"delay\")\n public void setDelay(Double delay) {\n this.delay = delay;\n }", "public long getSleepTime() {\n return sleepTime;\n }", "public Long getMaxDelayTime() {\n return this.MaxDelayTime;\n }", "public Delay(int sd){\n super(\"delay\");\n delay = sd;\n\n }", "private long getSleepTime()\n {\n return sleepTime;\n }", "@Override\n public int getSleepTime() {\n return this.sleepTime;\n }", "@java.lang.Override\n public long getStateChangeDelayUntilTurn() {\n return stateChangeDelayUntilTurn_;\n }", "public abstract int delay();", "java.lang.String getWaitTime();", "@SuppressLint(\"MethodNameUnits\")\n @IntRange(from = IKE_DPD_DELAY_SEC_MIN, to = IKE_DPD_DELAY_SEC_MAX)\n public int getDpdDelaySeconds() {\n return mDpdDelaySec;\n }", "public UGen getDelayUGen() {\r\n\t\tif (isDelayStatic) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\treturn delayUGen;\r\n\t\t}\r\n\t}", "public void setDelay(BigDecimal delay) {\r\n this.delay = delay;\r\n }", "public void setDelay(int delay)\n {\n this.delay = delay;\n }", "public boolean getIsDeferred() {\n return getAsBoolean(\"isDeferred\");\n }", "public long getBlinkCooldown() {\r\n\t\treturn (lastBlink + S.Server.sv_blink_cooldown)\r\n\t\t\t\t- System.currentTimeMillis();\r\n\t}", "@NullableDecl\n public String pendingToString() {\n if (!(this instanceof ScheduledFuture)) {\n return null;\n }\n long delay = ((ScheduledFuture) this).getDelay(TimeUnit.MILLISECONDS);\n StringBuilder sb = new StringBuilder(41);\n sb.append(\"remaining delay=[\");\n sb.append(delay);\n sb.append(\" ms]\");\n return sb.toString();\n }", "public long getMilliseconds()\n\t{\n\t\treturn unit.toMillis(period);\n\t}", "public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }", "public void setDelay(int delay) {\n this.delay = delay;\n }", "public double getTimeDelayActivation() {\r\n\t\tif (activation_count > 1) return last_activation;\r\n\t\telse return 0.0;\r\n\t}", "String getMaximumRedeliveryDelay();", "@Override\n public Duration getWait() {\n return duration;\n }", "public String getWaiting_lock_duration() {\n return waiting_lock_duration;\n }", "boolean isSetPaymentDelay();", "public long getMilliseconds() {\n\t\treturn milliseconds;\n\t}", "public double getDuration () {\n return duration;\n }", "@Override\n public java.lang.Number getDisplayWaitInterval() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.DISPLAY_WAIT_INTERVAL_);\n return (java.lang.Number)retnValue;\n }", "public int getTimingDelay(ImageAnimation animation)\n {\n if(timingMap.containsKey(animation))\n return timingMap.get(animation);\n else\n return 0; \n }", "public void setDelay(double clock);", "public int getDuration();", "public String getBlocking_lock_duration() {\n return blocking_lock_duration;\n }" ]
[ "0.7495217", "0.7406266", "0.740137", "0.7388409", "0.73865706", "0.73845345", "0.7367154", "0.735126", "0.72999746", "0.7299088", "0.7286074", "0.7234628", "0.7206514", "0.71877813", "0.70228344", "0.6987674", "0.6931878", "0.69033754", "0.6892228", "0.6877742", "0.68559724", "0.6817405", "0.67815596", "0.659513", "0.65893173", "0.6577982", "0.65743554", "0.6519204", "0.6504449", "0.6467244", "0.6463738", "0.64519185", "0.6425307", "0.64067894", "0.63925314", "0.63588935", "0.6336204", "0.6299497", "0.62750286", "0.62510264", "0.62437046", "0.62243235", "0.618878", "0.61862457", "0.61474264", "0.6147425", "0.6144148", "0.6127517", "0.6127451", "0.6115539", "0.60919017", "0.6085329", "0.6079629", "0.60792905", "0.60627764", "0.6049322", "0.60432374", "0.602227", "0.6016756", "0.6007778", "0.5955435", "0.59356505", "0.5934746", "0.5923999", "0.59146655", "0.5909187", "0.59021217", "0.5887341", "0.5875008", "0.5874307", "0.5859242", "0.58582956", "0.58556527", "0.58549666", "0.58529603", "0.58273596", "0.5819057", "0.58149713", "0.5758771", "0.572995", "0.5716071", "0.5710336", "0.5704219", "0.5645483", "0.5645001", "0.5637912", "0.56369823", "0.5625418", "0.5616196", "0.5607098", "0.5605723", "0.55817837", "0.5573719", "0.5563087", "0.5548618", "0.5526643", "0.551996", "0.5508964", "0.5506875", "0.550665" ]
0.6364167
35
Creates picture of how to play button on start screen
public howToPlayButton() { GreenfootImage howToGuide = new GreenfootImage("how to play.png"); setImage(howToGuide); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void play(){\n\n\t\tnew X.PlayXicon().root.setOnClickListener(Play_TestsPresenter::cc);\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tSystem.out.println(\"mousePressed\");\n\t\tbtnNewButton.setIcon(new ImageIcon(\"./res/img/startlogo.png\"));\n\t\tjsr.startCaptureAudio(); // 오디오 캡쳐 시작\n\n\t}", "private static void startButtonCreator(int startWidth, int startHeight){\n startButton = shadowEffect(configureImageView(\"\", \"button-start-game\", \".png\", 190, 90));\n }", "public void createPauseScreen(){\n\t\tTexture pauseBackTex = Assets.manager.get(AssetLord.pause_back_tex, Texture.class);\n\t\tpauseBackTex.setFilter(TextureFilter.Linear, TextureFilter.Linear);\n\t\t\n\t\tpauseBack = new Image(pauseBackTex);\n\t\tpauseBack.setSize(WIDTH, HEIGHT);\n\t\tpauseBack.setColor(1f, 1f, 1f ,0.95f);\n\t\tpauseBack.setPosition(0, 0);\n\t\tpauseBack.setVisible(false);\n\t\tstage.addActor(pauseBack);\n\t\t\n\t\tpauseScreen = new Group();\n\t\t\n\t\tTextButtonStyle smallStyle = new TextButtonStyle();\n\t\tsmallStyle.font = fontMedium;\n\t\t\n\t\tTextButton pausedText = new TextButton(\"PAUSED\", smallStyle);\n\t\tpausedText.setDisabled(true);\n\t\tpausedText.setPosition(WIDTH/2 - pausedText.getWidth()/2, HEIGHT/2 + HEIGHT/4 - pausedText.getHeight()/2);\n\t\t\n\t\tpauseScreen.addActor(pausedText);\n\t\t\n\t\tTextButtonStyle largeStyle = new TextButtonStyle();\n\t\tlargeStyle.font = fontLarge;\n\t\t\n\t\tTextButton continueText = new TextButton(\"CONTINUE\", largeStyle);\n\t\tcontinueText.setPosition(WIDTH/2 - continueText.getWidth()/2, HEIGHT/2 - continueText.getHeight()/2);\n\t\tcontinueText.addListener(new InputListener(){\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\t\n\t\t\t\tresumeGame();\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\t\n\t\tpauseScreen.addActor(continueText);\n\t\t\n\t\tTextButton menuText = new TextButton(\"MAIN MENU\", smallStyle);\n\t\t//menuText.setPosition(WIDTH/2 - menuText.getWidth()/2, HEIGHT/2 - HEIGHT/4 - menuText.getHeight()/2);\n\t\tmenuText.setPosition(WIDTH - menuText.getWidth() * 1.2f, menuText.getHeight()/2);\n\t\t//menuText.setRotation(90);\n\t\t\n\t\tmenuText.addListener(new InputListener(){\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\t\n\t\t\t\treturnToMainMenu();\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\t\n\t\tpauseScreen.addActor(menuText);\t\t\n\t\t\n\t\thidePauseScreen();\n\t\t\n\t\tstage.addActor(pauseScreen);\n\t}", "private void createButtons() {\n Texture playButtonIdle, playButtonPressed,settingsButtonIdle, settingsButtonPressed, creditsButtonIdle, creditsButtonPressed;\n\n if(game.getLocale().getCountry().equals(\"FI\")){\n playButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startgame_FIN.png\");\n playButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startgame_FIN_PRESSED.png\");\n\n settingsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startsettings_FIN.png\");\n settingsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startsettings_FIN_PRESSED.png\");\n\n creditsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_credits_FIN.png\");\n creditsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_credits_FIN_PRESSED.png\");\n }else{\n playButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startgame_ENG.png\");\n playButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startgame_ENG_PRESSED.png\");\n\n settingsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startsettings_ENG.png\");\n settingsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startsettings_ENG_PRESSED.png\");\n\n creditsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_credits_ENG.png\");\n creditsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_credits_ENG_PRESSED.png\");\n }\n\n ImageButton playButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(playButtonIdle)), new TextureRegionDrawable(new TextureRegion(playButtonPressed)));\n\n playButton.setPosition(95, 12);\n stage.addActor(playButton);\n\n playButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(gameScreen);\n }\n });\n\n ImageButton settingsButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(settingsButtonIdle)), new TextureRegionDrawable(new TextureRegion(settingsButtonPressed)));\n\n settingsButton.setPosition(175, 12);\n stage.addActor(settingsButton);\n\n settingsButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new OptionsScreen(game));\n }\n });\n\n ImageButton creditsButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(creditsButtonIdle)), new TextureRegionDrawable(new TextureRegion(creditsButtonPressed)));\n\n creditsButton.setPosition(15, 12);\n stage.addActor(creditsButton);\n\n creditsButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new CreditsScreen(game));\n }\n });\n }", "private void makePlay() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\n\t\tplay = new Sprite(6, 6, 360, 379, new Image(\"file:./res/images/basketball.png\"), 1, 1000);\n\t\tplay.setLayoutX(140);\n\t\tplay.setLayoutY(190);\n\t\tplay.setScaleX(0.5);\n\t\tplay.setScaleY(0.5);\n\t\tgrid.getChildren().addAll(play);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(1000));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(play);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().playWith();\n\t\t});\n\t\tpause.play();\n\n\t}", "private void createBeginningButtons() {\n\t createStartButtons(myResources.getString(\"game1\"), 0, 0);\n\t\tcreateStartButtons(myResources.getString(\"game2\"), 0, 1);\n\t\tcreateStartButtons(myResources.getString(\"game3\"), 0, 2);\n\t\tcreateStartButtons(myResources.getString(\"game4\"), 0, 3);\n\t\tcreateStartButtons(myResources.getString(\"game5\"), 0, 4);\n\t\tcreateInstructionButton();\n\t\tcreateStartingLabel();\n\t\tcreateGridSizeButton();\n }", "public LiveBtn() {\n\t\tsuper(\"L\");\n\t\tURL iconUrlLive = getClass().getResource(\"/res/icons/record.png\");\n\t\tif (iconUrlLive != null) {\n\t\t\tImageIcon icon = new ImageIcon(iconUrlLive);\n\t\t\tImage img = icon.getImage();\n\t\t\tImage newimg = img.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\n\t\t\tImageIcon newIcon = new ImageIcon(newimg);\n\t\t\tthis.setIcon(newIcon);\n\t\t\tthis.setText(\"\");\n\t\t\tthis.setBorderPainted(false);\n\t\t}\n\t}", "private void drawStartButton(int w,int h){\r\n g.setColor(Color.gray); \r\n g.fillRect(60,h-70,w-80,50);\r\n g.setColor(Color.black);\r\n g.drawRect(60,h-70,w-80,50); \r\n \r\n Font font=new Font(\"SanSerif\",Font.BOLD,50); \r\n g.setFont(font);\r\n g.drawString(\"Start Game\",120,h-25);\r\n }", "public void display_game_start_text() {\n\n fill(150, 100);\n rect(0, 0, displayW, displayH);\n\n textFont(myFont);\n textAlign(CENTER);\n textSize(displayH/30);\n fill(255);\n text(\"Get Ready!\", displayW/2, displayH/2);\n\n mySound.play_opening_song();\n\n isKeyInputAllowed = false;\n }", "public void startUpMain() {\r\n ImageIcon icon = new ImageIcon(\"./data/Untitled.png\");\r\n JLabel accountImage = new JLabel(icon);\r\n accountImage.setPreferredSize(new Dimension(938, 536));\r\n main.add(accountImage);\r\n playSound(\"./data/welcometolol.wav\");\r\n }", "public void setButton() {\n pan.add(playButton);\n }", "private void createInstructionManual() {\n TextButton mainMenuButton = new TextButton(\"Main Menu\", skin);\n mainMenuButton.addListener(\n new ChangeListener() {\n @Override\n public void changed(ChangeEvent changeEvent, Actor actor) {\n game.setScreen(GdxGame.ScreenType.MAIN_MENU);\n }\n });\n\n\n Image bgImage = new Image(ServiceLocator.getResourceService()\n .getAsset(\"game-instruction/tutorialScreen_new.png\", Texture.class));\n bgImage.setScaling(Scaling.fit);\n buttonTable = new Table();\n buttonTable.setFillParent(true);\n buttonTable.top().left();\n buttonTable.add(mainMenuButton);\n\n bgTable = new Table();\n bgTable.setFillParent(true);\n bgTable.center();\n bgTable.add(bgImage);\n // add the board to the stage first so that its can be under of score data\n stage.addActor(bgTable);\n stage.addActor(buttonTable);\n\n\n }", "public void drawPauseButton(){\r\n\t\tBatch b = canvas.getBatch();\r\n\t\tpauseButton.setPosition(camera.position.x+PAUSE_BUTTON_OFFSETX, camera.position.y+PAUSE_BUTTON_OFFSETY);\r\n\t\tpauseButton.draw(b, 1);\r\n\t}", "public void createGameButtons() {\n \tcreateGameButton(myResources.getString(\"startcommand\"), 1, GAME_BUTTON_XLOCATION, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"stopcommand\"), 0, GAME_BUTTON_XLOCATION * 3, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"speedup\"), SPEED_INCREASE, GAME_BUTTON_XLOCATION*5, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"slowdown\"), 1/SPEED_INCREASE, GAME_BUTTON_XLOCATION*7, GAME_BUTTON_YLOCATION);\n }", "private void createGUI() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"My first player\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.getContentPane().setBackground(Color.PINK);\n\t\tbtnPlay.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnPlay.setBounds(27, 80, 107, 22);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnStop.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnStop.setBounds(321, 79, 117, 25);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnPause.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnPause.setBounds(170, 79, 117, 25);\n\t\tbtnPause.setEnabled(false);\n\t\tbtnOpen.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnOpen.setBounds(113, 43, 249, 25);\n\t\tlblMyMusic.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblMyMusic.setForeground(new Color(51, 51, 51));\n\t\tlblMyMusic.setFont(new Font(\"FreeSerif\", Font.BOLD, 20));\n\t\tlblMyMusic.setBounds(101, 174, 261, 57);\n\n\t}", "public void startGame() {\n StartButton = (ImageButton) findViewById(R.id.imageButton_Start); //we are making a new Button\n StartButton.setOnClickListener(new View.OnClickListener() { //when we are pressing the button this will happen\n @Override\n public void onClick(View view) {\n stopPlaying();\n startGameActivity();\n }\n });\n }", "@Override\n public void onCompletion(MediaPlayer mp) {\n buttonPlayPause.setImageResource(R.mipmap.play);\n }", "public void start(){\n\t\tif (host.getGameSettings().isMusicOn()) {\r\n\t\t\tspr_btnMute.setFrame(0);\r\n\t\t}else{\r\n\t\t\tspr_btnMute.setFrame(1);\r\n\t\t}\r\n\t}", "private void createButton(){\n addButton();\n addStartButton();\n }", "private void showBack() {\n Drawable buttonDrawableBack = new TextureRegionDrawable(new TextureRegion((Texture)game.getAssetManager().get(\"buttonBack.png\")));\n BackButton = new ImageButton(buttonDrawableBack);\n BackButton.setSize(MENU_WIDTH/7,MENU_HEIGHT/7);\n BackButton.setPosition(7*MENU_WIDTH/8 - BackButton.getWidth()/2, MENU_HEIGHT/7 -DELTA_Y_MENU);\n stage.addActor(BackButton);\n }", "private void createButtons() {\n\tTexture startGameTex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_start.png\"));\n\tTexture plane_p1_tex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_player1.png\"));\n\tTexture plane_p2_tex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_player2.png\"));\n\n\tplayButton = new Button(\"\", font, 0, 0, new TextureRegion(startGameTex,\n\t\t0, 0, 161, 20), new TextureRegion(startGameTex, 0, 0, 161, 20),\n\t\tnew ScreenSwitchHandler(Screen.GAME));\n\tplaneButton_p1 = new Button(\"\", font, 0, 0, new TextureRegion(\n\t\tplane_p1_tex, 0, 0, 161, 20), new TextureRegion(plane_p1_tex,\n\t\t0, 0, 161, 20), new ScreenSwitchHandler(Screen.PLANE_P1));\n\tplaneButton_p2 = new Button(\"\", font, 0, 0, new TextureRegion(\n\t\tplane_p2_tex, 0, 0, 161, 20), new TextureRegion(plane_p2_tex,\n\t\t0, 0, 161, 20), new ScreenSwitchHandler(Screen.PLANE_P2));\n\toptionsButton = new Button(\"Options\", font, new ScreenSwitchHandler(\n\t\tScreen.OPTIONS));\n\texitButton = new Button(\"Exit\", font, new ButtonHandler() {\n\t @Override\n\t public void onClick() {\n\t\tGdx.app.exit();\n\t }\n\n\t @Override\n\t public void onRelease() {\n\t\t// TODO Auto-generated method stub\n\n\t }\n\t});\n }", "@Override\n public void create() {\n\n batch = new SpriteBatch();\n manager = new AssetManager();\n\n manager.load(\"audio/main_theme.mp3\", Music.class);\n // manager.load(\"String sonido\", Sound.class);\n manager.load(\"sprites/dragon.pack\", TextureAtlas.class);\n manager.load(\"sprites/vanyr.pack\", TextureAtlas.class);\n manager.finishLoading();\n\n setScreen(new PlayScreen(this));\n\n }", "public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }", "private void init(){\r\n\t\tImageIcon newTaskImg = new ImageIcon(\"resources/images/New.png\");\r\n\t\tImageIcon pauseImg = new ImageIcon(\"resources/images/Pause.png\");\r\n\t\tImageIcon resumeImg = new ImageIcon (\"resources/images/Begin.png\");\r\n\t\tImageIcon stopImg = new ImageIcon(\"resources/images/Stop.png\");\r\n\t\tImageIcon removeImg = new ImageIcon(\"resources/images/Remove.gif\");\r\n\t\tImageIcon shareImg = new ImageIcon(\"resources/images/Share.png\");\r\n\t\tImageIcon inboxImg = new ImageIcon(\"resources/images/Inbox.png\");\r\n\t\t\r\n\t\tnewTask = new JButton(newTaskImg);\r\n\t\tnewTask.setToolTipText(\"New Task\");\r\n\t\tpause = new JButton (pauseImg);\r\n\t\tpause.setToolTipText(\"Pause\");\r\n\t\trestart = new JButton (resumeImg);\r\n\t\trestart.setToolTipText(\"Restart\");\r\n\t\tstop = new JButton(stopImg);\r\n\t\tstop.setToolTipText(\"Stop\");\r\n\t\tremove = new JButton(removeImg);\r\n\t\tremove.setToolTipText(\"Remove\");\r\n\t\tshare = new JButton(shareImg);\r\n\t\tshare.setToolTipText(\"Share\");\r\n\t\tinbox = new JButton(inboxImg);\r\n\t\tinbox.setToolTipText(\"Inbox\");\r\n\t\t\r\n\t}", "public TitleScreen(Main m) {\r\n\t\tsuper();\r\n\t\tsetSize(960, 540);\r\n\t\tsetBackground(new Color(0, 11, 63));\r\n\t\tbackground = new ImageIcon(\"background.PNG\").getImage();\r\n\r\n\t\tthis.m = m;\r\n\t\tJPanel p = new JPanel();\r\n\t\tp.setOpaque(false);\r\n\t\tp.setLayout(new BoxLayout(p, BoxLayout.X_AXIS));\r\n\t\t\r\n\t\tplay = new JButton(\"Play\");\r\n\t\tplay.addActionListener(this);\r\n\t\tplay.setBackground(new Color(240, 240, 240, 200));\r\n\t\t\r\n\t\tinstructions = new JButton(\"Instructions\");\r\n\t\tinstructions.addActionListener(this);\r\n\t\tinstructions.setBackground(new Color(240, 240, 240, 200));\r\n\t\t\r\n\t\tp.add(Box.createVerticalStrut(900));\r\n\t\tp.add(play);\r\n\t\tp.add(Box.createHorizontalStrut(50));\r\n\t\tp.add(instructions);\t\t\r\n\t\t\r\n\t\tadd(p);\r\n\t}", "public void display() {\n\t\tapplet.image(applet.loadImage(\"/keypad.png\"), 22,410);\n\t\t// TODO Auto-generated method stub\n\n\t}", "private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }", "public LetsPlayGUI() {\n super(\"Let's Play!\");\n initComponents();\n setCardLayouts();\n showSplashPanel();\n }", "private void setPlayButtonToPause() {\n NowPlayingInformation.setPlayButtonStatus(1);\n MainActivity.displayPlayButton();\n }", "@Override\n public void playingAudioView() {\n btnPlay.setImageDrawable(getResources().getDrawable(R.drawable.ic_pause));\n }", "private void startGame() {\n gameCountDownTimer = getGameTimer();\n gameCountDownTimer.start();\n animateBalloonView(balloon1, true);\n animateBalloonView(balloon2, true);\n animateBalloonView(balloon3, true);\n animateBalloonView(balloon4, true);\n animateBalloonView(balloon5, true);\n currentScreenGameState = GameState.PLAYING;\n String controlButtonTitle = getResources().getString(R.string.pause_btn);\n conttroler.setText(controlButtonTitle);\n setCurrentScreenCover();\n invalidateOptionsMenu();\n }", "public Hard_Button()\n {\n GreenfootImage text1 = new GreenfootImage(100 , 50);\n\n hardButtonImage.setColor(Color.RED);\n hardButtonImage.fillRect(0, 0, 100, 50);\n text1.setColor( Color.WHITE );\n text1.setFont( new Font( \"Helvetica\", Font.BOLD, 30 ) );\n text1.drawString(\"Hard\", text1.getWidth()/6 + 1, text1.getHeight()/2 + 8);\n \n hardButtonImage.drawImage( text1, 0, 0 );\n \n setImage( hardButtonImage );\n }", "public pn_Creating() {\n initComponents();\n imageCreating.start();\n }", "@FXML\n private void pauseButtonAction(ActionEvent event) {\n if(isPaused){\n mediaPlayer.play();\n isPaused = false;\n nowPlaying.setText(currentSong.getName());\n //playIcon.setImage(new Image(\"icons//play.png\"));\n ImageView iv = new ImageView(pauseImage);\n iv.setFitHeight(34);\n iv.setFitWidth(34);\n pause.setGraphic(iv);\n }\n else{\n mediaPlayer.pause();\n isPaused = true;\n nowPlaying.setText(\"Paused...\");\n ImageView iv = new ImageView(playImage);\n iv.setFitHeight(34);\n iv.setFitWidth(34);\n pause.setGraphic(iv);\n }\n }", "public void init() {\n\t\tbg = new MyImg(\"gamepage/endgame/bg.png\");\n\t\tbut0 = new MyImg(\"paygame/qdbut.png\");\n\t\tbut1 = new MyImg(\"paygame/qxbut.png\");\n\t}", "@Override\n public void show() {\n stage = new Stage(new FitViewport(game.SCREEN_WIDTH, game.SCREEN_HEIGHT), batch);\n Gdx.input.setInputProcessor(stage);\n\n background = game.getAssetManager().get(\"startscreen.png\");\n bgViewPort = new StretchViewport(game.SCREEN_WIDTH, game.SCREEN_HEIGHT);\n\n fonts = new Fonts();\n fonts.createSmallestFont();\n fonts.createSmallFont();\n fonts.createMediumFont();\n fonts.createLargeFont();\n fonts.createTitleFont();\n\n createButtons();\n }", "@Override\n public void initialiseButtons() {\n resumeButton = new Button(buttonLeft, resumeButtonTop, buttonRight, resumeButtonBottom, Assets.resume);\n restartButton = new Button(buttonLeft, restartButtonTop, buttonRight, restartButtonBottom, Assets.restart);\n instructionsButton = new Button(buttonLeft, instructionsButtonTop, buttonRight, instructionsButtonBottom, Assets.instructions);\n quitButton = new Button(buttonLeft, quitButtonTop, buttonRight, quitButtonBottom, Assets.quit);\n backArrowButton = new Button(-8,-10,120,100, Assets.backArrowButton);\n saveGameButton = new Button(buttonLeft,saveGameButtonTop,buttonRight,saveGameButtonBottom,Assets.saveGame);\n }", "public void startClick() {\n if(!isRunning){\n startButton.setText(\"Pause\");\n isRunning = true;\n isMovable = false;\n board.finalizeBoard();\n setFocusTraversable(true);\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n draw();\n timeline.play();\n }else{\n startButton.setText(\"Start\");\n isRunning = false;\n isMovable = false;\n board.finalizeBoard();\n setFocusTraversable(true);\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n draw();\n timeline.pause();\n }\n }", "@Override\n public void pauseAudioView() {\n btnPlay.setImageDrawable(getResources().getDrawable(R.drawable.ic_play));\n }", "@Override\r\n public void onMouseUp(Mouse.ButtonEvent event){\n HomeScreen.settingSound(false);\r\n ss.push(new HomeScreen(ss));\r\n }", "@Override\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tg.drawImage(pImg, -10, 0, null);\n\t\tFont f = new Font(\"华文新魏\", Font.BOLD, 18);\n\t\tg.setFont(f);\n\t\tg.setColor(Color.red);\n\t\tg.drawString(\"选择任意飞机开始游戏!\", 50, 195);\n\t\t//System.out.println(1111);\n\t}", "@Override\n public void onPutCupRaised() {\n if (!theFSM.getCupPlaced()) {\n BufferedImage myPicture = null;\n try {\n myPicture = ImageIO.read(new File(\"./picts/gobeletPolluant.jpg\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n currentPicture.setIcon(new ImageIcon(myPicture));\n takeCupButton.setVisible(false);\n }\n }", "private void createYourMusicContent() {\n\t\t/**Creates all images we will use for the buttons*/\n\t\tImageIcon image1 = new ImageIcon(sURLFB1);\n\t\tImageIcon image2 = new ImageIcon(sURLFB2);\n\t\tImageIcon image3 = new ImageIcon(sURLFB3);\n\t\tImageIcon image4 = new ImageIcon(sURLFBS1);\n\t\tImageIcon image5 = new ImageIcon(sURLFBS2);\n\t\tImageIcon image6 = new ImageIcon(sURLFBS3);\n\t\tImageIcon image7 = new ImageIcon(sURLFBPL1);\n\t\tImageIcon image8 = new ImageIcon(sURLFBPL2);\n\t\tImageIcon image9 = new ImageIcon(sURLFBPL3);\n\t\n\t\t/**Creates the button of Favourites and configures it*/\n\t\tjbFavorites = new JButton(\"Favorites\");\n\t\tjbFavorites.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbFavorites.setForeground(new Color(150,100,100));\n\t\tjbFavorites.setIcon(image1);\n\t\tjbFavorites.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbFavorites.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbFavorites.setRolloverIcon(image2);\n\t\tjbFavorites.setSelectedIcon(image3);\n\t\tjbFavorites.setContentAreaFilled(false);\n\t\tjbFavorites.setFocusable(false);\n\t\tjbFavorites.setBorderPainted(false);\n\t\t\n\t\t/**Creates the button of Songs and configures it*/\n\t\tjbSongs = new JButton(\"Songs\");\n\t\tjbSongs.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbSongs.setForeground(new Color(150,100,100));\n\t\tjbSongs.setIcon(image4);\n\t\tjbSongs.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbSongs.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbSongs.setRolloverIcon(image5);\n\t\tjbSongs.setSelectedIcon(image6);\n\t\tjbSongs.setContentAreaFilled(false);\n\t\tjbSongs.setFocusable(false);\n\t\tjbSongs.setBorderPainted(false);\n\t\t\n\t\t/**Creates the button of PartyList and configures it*/\n\t\tjbPartyList = new JButton(\"PartyList\");\n\t\tjbPartyList.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbPartyList.setForeground(new Color(150,100,100));\n\t\tjbPartyList.setIcon(image7);\n\t\tjbPartyList.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbPartyList.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbPartyList.setRolloverIcon(image8);\n\t\tjbPartyList.setSelectedIcon(image9);\t\n\t\tjbPartyList.setContentAreaFilled(false);\n\t\tjbPartyList.setFocusable(false);\n\t\tjbPartyList.setBorderPainted(false);\n\t\t\n\t\t/**Creates the panel where we will put all buttons*/\n\t\tjpPreLists = new JPanel(new BorderLayout());\n jpPreLists.setOpaque(false);\n\t\tjpPreLists.add(jbFavorites,BorderLayout.NORTH);\n\t\tjpPreLists.add(jbSongs,BorderLayout.CENTER);\n\t\tjpPreLists.add(jbPartyList,BorderLayout.SOUTH);\n\t}", "private void initPlayModeView() {\n playMode = new Label(\"PLAY\");\n playMode.setPrefSize(200,100);\n playMode.setFont(Font.font(null, FontWeight.BOLD, 30));\n playMode.setTextFill(Color.BLUE);\n playMode.setEffect(getDropShadow());\n }", "public void mo5975l() {\n new C1292f(this.f5384D.getmImageView(), new int[]{R.drawable.iqoo_btn_play_15, R.drawable.iqoo_btn_play_14, R.drawable.iqoo_btn_play_13, R.drawable.iqoo_btn_play_12, R.drawable.iqoo_btn_play_11, R.drawable.iqoo_btn_play_10, R.drawable.iqoo_btn_play_9, R.drawable.iqoo_btn_play_8, R.drawable.iqoo_btn_play_7, R.drawable.iqoo_btn_play_6, R.drawable.iqoo_btn_play_5, R.drawable.iqoo_btn_play_4, R.drawable.iqoo_btn_play_3, R.drawable.iqoo_btn_play_2, R.drawable.iqoo_btn_play_1, R.drawable.iqoo_btn_play_0}, new int[]{3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3});\n }", "public void playPauseTrack() {\n //Switch the play/pause drawables\n if (isPlaying) {\n mPlayPauseBtn.setImageResource(android.R.drawable.ic_media_pause);\n mPlayerService.resumeTrack();\n } else {\n mPlayPauseBtn.setImageResource(android.R.drawable.ic_media_play);\n mPlayerService.pauseTrack();\n }\n }", "public void createButtons() {\n\t\tescapeBackground = new GRect(200, 150, 300, 400);\n\t\tescapeBackground.setFilled(true);\n\t\tescapeBackground.setColor(Color.gray);\n\n\t\tbutton1 = new GButton(\"Return to Game\", 250, 175, 200, 50, Color.cyan);\n\t\tbutton3 = new GButton(\"Exit Level\", 250, 330, 200, 50, Color.cyan);\n\t\tbutton4 = new GButton(\"Return to Menu\", 250, 475, 200, 50, Color.cyan);\n\n\t\tescapeButtons.add(button1);\n\t\tescapeButtons.add(button3);\n\t\tescapeButtons.add(button4);\n\n\t}", "@Override\n\tpublic void onCompletion(MediaPlayer mp) {\n\t\tbuttonPlayPause.setImageResource(R.drawable.icon_play);\n\t}", "public static void CrapsGameStart() throws IOException {\n\t\tJLabel label3 = new JLabel(new ImageIcon(\"craps.png\"));\r\n\t\t\t\t \r\n\t\tJFrame title3 = new JFrame();\r\n\t\ttitle3.add(label3);\r\n\t\ttitle3.getContentPane().add(label3);\r\n\t\ttitle3.pack();\r\n\t\ttitle3.setLocationRelativeTo(null);\r\n\t\tlabel3.repaint();\r\n\t\ttitle3.setVisible(true);\r\n\t\t\r\n\t}", "@Override\n\tpublic void drawButton(Minecraft par1Minecraft, int par2, int par3)\n {\n if (this.drawButton)\n {\n boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n par1Minecraft.renderEngine.bindTexture(par1Minecraft.renderEngine.getTexture(\"/gui/book.png\"));\n int var5 = 0;\n int var6 = 192;\n\n if (var4)\n {\n var5 += 23;\n }\n\n if (!this.nextPage)\n {\n var6 += 13;\n }\n\n this.drawTexturedModalRect(this.xPosition, this.yPosition, var5, var6, 23, 13);\n }\n }", "private void buttonDemo(Stage stage) {\n // this demonstrates how to create a button and attach a foreground and\n // background image to it.\n Button button = new Button();\n Image laserImg = new Image(getClass().getResourceAsStream(\"resources/laser.png\"));\n ImageView laserIcon = new ImageView(laserImg);\n button.setGraphic(laserIcon);\n setButtonBackground(button, \"yellow.png\");\n button.setOnAction(e -> {\n // toggles background between yellow and red\n if (!status) {\n setButtonBackground(button, \"yellow.png\");\n } else {\n setButtonBackground(button, \"red.png\");\n }\n status = !status;\n });\n\n Scene scene = new Scene(button);\n stage.setScene(scene);\n }", "private void buttonPlayerAction() {\n play.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View arg0) {\n // check for already playing\n if (mp.isPlaying()) {\n mp.pause();\n // Changing button image to play button\n play.setImageResource(R.drawable.ic_play_arrow);\n } else {\n // Resume song\n mp.start();\n // Changing button image to pause button\n play.setImageResource(R.drawable.ic_pause);\n mHandler.post(mUpdateTimeTask);\n }\n\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmainFrame.mainToolBar.jtb_play.doClick();\n\t\t\t}", "private static void continueButtonCreator(int continueWidth, int continueHeight){\n continueButton = shadowEffect(configureImageView(\"\",\"button-continue\",\".png\",continueWidth,continueHeight));\n }", "@Override\n public void onClick(View arg0) {\n if (mp.isPlaying()) {\n mp.pause();\n // Changing button image to play button\n play.setImageResource(R.drawable.ic_play_arrow);\n } else {\n // Resume song\n mp.start();\n // Changing button image to pause button\n play.setImageResource(R.drawable.ic_pause);\n mHandler.post(mUpdateTimeTask);\n }\n\n }", "public void drawStartScreen() {\n\t\tint highScore = getHighScore();\n\t\tdisplayText(\"High Score \" + String.valueOf(highScore), 0, 0, false);\n\t\tdisplayText(\"Press to Start Game\", 0, -100, false);\n\t}", "public static void GameStart() throws IOException {\n\t\tJLabel label = new JLabel(new ImageIcon(\"title.png\"));\r\n\t\t\t\t \r\n\t\tJFrame title = new JFrame();\r\n\t\ttitle.add(label);\r\n\t\ttitle.getContentPane().add(label);\r\n\t\ttitle.pack();\r\n\t\ttitle.setLocationRelativeTo(null);\r\n\t\tlabel.repaint();\r\n\t\ttitle.setVisible(true); \r\n\t}", "public static void WarGameStart() throws IOException {\n\t\tJLabel label2 = new JLabel(new ImageIcon(\"WarTitle.png\"));\r\n\t\t\t\t \r\n\t\tJFrame title2 = new JFrame();\r\n\t\ttitle2.add(label2);\r\n\t\ttitle2.getContentPane().add(label2);\r\n\t\ttitle2.pack();\r\n\t\ttitle2.setLocationRelativeTo(null);\r\n\t\tlabel2.repaint();\r\n\t\ttitle2.setVisible(true);\r\n\t\t\r\n\t}", "public MainScreen() {\r\n\t\tthis.playSound(\"assets/audios/1.wav\");\r\n\t}", "public Controls()\n {\n string = \"Controls\";\n getButtonImage();\n }", "public void createInstructionButton() {\n \tEventHandler<MouseEvent> eventHandler = new EventHandler<MouseEvent>() {\n\t @Override public void handle(MouseEvent e) {\n\t \tshowInstructions();}\n };\n \tcreateGenericButton(2, 0, myResources.getString(\"guide\"), eventHandler);\n }", "public void buttonSound()\n {\n InputStream pathSoundFile = getClass().getResourceAsStream(\"Button.wav\");\n playSound(pathSoundFile);\n }", "public void play() {\n\n showIntro();\n startGame();\n\n }", "private void transport_play() {\n timerReset();\n playing = true;\n now_playing_play_button.setForeground(getDrawable(R.drawable.ic_pause_50dp));\n }", "private void createYourMusicTitle() {\n\t\tjpYourMusic = new JPanel(new GridLayout(1,1));\n\t\tjpYourMusic.setOpaque(false);\n\t\tJLabel jlYourMusic = new JLabel(\"YOUR MUSIC\");\t\t\n\t\tjlYourMusic.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourMusic.setForeground(new Color(250,250,250));\n\t\tjpYourMusic.add(jlYourMusic);\n\t}", "private void youWin() {\r\n\t\tImage win = new Image(\"win.png\", 1000, 0, true, true);\r\n\t\tImageView winIV = new ImageView(win);\r\n\t\twinIV.setX(0);\r\n\t\twinIV.setY(500);\r\n\t\troot.getChildren().add(winIV);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setFont(null);\n\t\tframe.setBackground(new Color(240, 240, 240));\n\t\tframe.setBounds(400, 0, 800, 800);\n\t\t\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tbackground = new ImageIcon(\"image/heroplane.png\");\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnSp = new JButton(\"single player\");\n\t\tbtnSp.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew ChoseHero();\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnSp.setBackground(Color.LIGHT_GRAY);\n\t\tbtnSp.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 30));\n\t\tbtnSp.setBounds(280, 507, 240, 60);\n\t\tframe.getContentPane().add(btnSp);\n\t\t\n\t\tJButton btnDp = new JButton(\"Double players\");\n\t\tbtnDp.setBackground(Color.LIGHT_GRAY);\n\t\tbtnDp.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnDp.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 30));\n\t\tbtnDp.setBounds(280, 580, 240, 60);\n\t\tframe.getContentPane().add(btnDp);\n\n\t\tJLabel lblNewLabel = new JLabel(background);\n\t\tlblNewLabel.setBounds(0, 0,786, 763);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t}", "private Button createStartBtn(Stage stage, Scene gameScene) {\n Button startBtn = new Button(\"Start\");\n startBtn.setStyle(\"-fx-background-color: #991E1E; -fx-font-size: 2em; -fx-text-fill: #ffffff;\" +\n \" -fx-border-color: #ff0000; -fx-border-width: 2px; \");\n startBtn.setPrefWidth(200);\n startBtn.setPrefHeight(45);\n startBtn.setLayoutX(MainGUI.WIDTH / 2.0 - startBtn.getPrefWidth() / 2.0);\n startBtn.setLayoutY(225);\n\n DropShadow shadow = new DropShadow();\n startBtn.addEventHandler(MouseEvent.MOUSE_ENTERED, e -> startBtn.setEffect(shadow));\n //Removing the shadow when the mouse cursor is off\n startBtn.addEventHandler(MouseEvent.MOUSE_EXITED, e -> startBtn.setEffect(null));\n startBtn.setOnAction(e -> {\n stage.setScene(gameScene);\n game.start();\n });\n\n return startBtn;\n }", "public void Back(){\n setImage(\"button-blue.png\");\n }", "@Override\n\t\t\t\tpublic void onClick(View view) {\n\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\ttorch.release();\n\n\t\t\t\n\t\t\t\t\t MediaPlayer IO =MediaPlayer.create(MainActivity.this, R.raw.multimedia_button_click_028);\n\t IO.start();\n\t \n\t notificationManager.cancel(notificationId);\n\t\t\t\t\ttry {\ttorch.startPreview();\n\t\t\t\t\t \n\t\t\t \n\t\t\t } \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t ImageView img = (ImageView)findViewById(R.id.switchi);\n\t\t\t img.setVisibility(View.GONE);\n\t\t\t \tImageView oiip =(ImageView) findViewById(R.id.imageTOP);\n\t\t\t\t\t\n\t\t\t\t\toiip.setVisibility(View.VISIBLE);\n\t\t\t\t\t MediaPlayer op =MediaPlayer.create(MainActivity.this, R.raw.multimedia_button_click_028);\n\t op.start();\n\t \n\t \n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}", "default public void clickPlay() {\n\t\tremoteControlAction(RemoteControlKeyword.PLAY);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n bn_play = new javax.swing.JButton();\n bn_ex = new javax.swing.JButton();\n bn_how = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n bg = new javax.swing.JLabel();\n\n jButton1.setText(\"jButton1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n bn_play.setBackground(java.awt.SystemColor.textHighlightText);\n bn_play.setFont(new java.awt.Font(\"Gabriola\", 1, 48)); // NOI18N\n bn_play.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/bnplay.png\"))); // NOI18N\n bn_play.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n bn_playMouseEntered(evt);\n }\n });\n bn_play.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bn_playActionPerformed(evt);\n }\n });\n getContentPane().add(bn_play);\n bn_play.setBounds(460, 190, 220, 100);\n\n bn_ex.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/bnex1.png\"))); // NOI18N\n bn_ex.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bn_exActionPerformed(evt);\n }\n });\n getContentPane().add(bn_ex);\n bn_ex.setBounds(630, 340, 110, 50);\n\n bn_how.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/bnhow1.png\"))); // NOI18N\n bn_how.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bn_howActionPerformed(evt);\n }\n });\n getContentPane().add(bn_how);\n bn_how.setBounds(350, 340, 160, 50);\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/avatar2 (1)_1.gif\"))); // NOI18N\n getContentPane().add(jLabel1);\n jLabel1.setBounds(60, -20, 300, 470);\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/head2.png\"))); // NOI18N\n getContentPane().add(jLabel3);\n jLabel3.setBounds(360, 0, 540, 170);\n\n bg.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/main-2-1.png\"))); // NOI18N\n getContentPane().add(bg);\n bg.setBounds(0, 0, 800, 480);\n\n pack();\n setLocationRelativeTo(null);\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 562);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 0, 784, 523);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setIcon(new ImageIcon(\"C:\\\\\\uB9C8\\uB3C4\\uC694\\\\\\uD30C\\uC77C\\\\\\uC774\\uBAA8\\uD2F0\\uCF58\\\\\\uD558\\uD558.gif\"));\n\t\tbtnNewButton.setSelectedIcon(new ImageIcon(\"C:\\\\\\uB9C8\\uB3C4\\uC694\\\\\\uD30C\\uC77C\\\\\\uC774\\uBAA8\\uD2F0\\uCF58\\\\\\uD558\\uD558.gif\"));\n\t\tbtnNewButton.setBounds(105, 122, 144, 99);\n\t\tbtnNewButton.setPressedIcon(new ImageIcon(\"C:\\\\\\uB9C8\\uB3C4\\uC694\\\\\\uD30C\\uC77C\\\\\\uC774\\uBAA8\\uD2F0\\uCF58\\\\\\uC886\\uB410\\uB2E4.gif\"));\n\t\tpanel.add(btnNewButton);\n\t}", "public void preGameMode(){\n\n ImageIcon icon = new ImageIcon(getClass().getResource(\"/title.jpg\"));\n Image image=icon.getImage();\n background = new PBackground(image);\n this.repaint();\n background.setLayout(null);\n this.add(background);\n\n\n // Prepare the body container\n container = new PanelContainer();\n container.setBounds(230,170, 700, 400);\n background.add(container);\n\n this.setVisible(true);\n }", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tmyPlayer.release();\r\n\t\tstartButton.setImageResource(R.drawable.quick);\r\n\t\tselectButton.setImageResource(R.drawable.select);\t\r\n\t}", "@Override\n\tpublic void drawButton(Minecraft par1Minecraft, int par2, int par3)\n {\n if (this.drawButton)\n {\n boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n par1Minecraft.renderEngine.bindTexture(par1Minecraft.renderEngine.getTexture(SteamCraft.guiLocation + \"researchpaper.png\"));\n int var5 = 209;\n int var6 = 13;\n\n if (this.nextPage)\n {\n var6 += 91;\n var5 += 13;\n }\n\n this.drawTexturedModalRect(this.xPosition, this.yPosition, var5, 0, 10, var6);\n }\n }", "public void startGame() {\n\t\t// create a new button to start the game\n\t\tstart = new JButton(\"Start\");\n\t\t// add an actionListener\n\t\tstart.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcurrent = controller.tree.getRoot();\n\t\t\t\t// remove the start button\n\t\t\t\tsouth.remove(start);\n\t\t\t\tvalidate();\n\n\t\t\t\t// remove the picture + menu\n\t\t\t\tcenter.remove(image);\n\t\t\t\tcenter.remove(menuPanel);\n\n\t\t\t\t// add JTextArea to center panel and update text to whatever\n\t\t\t\t// current's data is\n\t\t\t\tquestion = new JTextField();\n\t\t\t\tquestion.setEditable(false);\n\t\t\t\tquestion.setBackground(new Color(#00aeef));\n\n\t\t\t\t// Insets constructor summary: (top, left, bottom, right)\n\t\t\t\tquestion.setText(current.getData().toString());\n\t\t\t\tquestion.setHorizontalAlignment(JTextField.CENTER);\n\t\t\t\tvalidate();\n\t\t\t\t// adds the question panel to the center\n\t\t\t\tcenter.add(question);\n\n\t\t\t\tvalidate();\n\n\t\t\t\t// create JPanel with GridLayout -- 1 rows, 2 columns\n\t\t\t\tsouth.setLayout(new GridLayout(1, 2));\n\t\t\t\tvalidate();\n\n\t\t\t\t// create yes button\n\t\t\t\tyes();\n\n\t\t\t\t// create no button\n\t\t\t\tno();\n\n\t\t\t}\n\t\t});\n\t\t// add the start button to the south panel\n\t\tsouth.add(start);\n\t\tvalidate();\n\t}", "private void initialize() throws IOException {\r\n\r\n\t\tplayername = JOptionPane.showInputDialog(\"What is your player name?\");\r\n\t\tJOptionPane.showMessageDialog(null, \"Welcome, \" + playername + \"!\");\r\n\t\t\r\n\t\tfrmSpotThenSequence = new JFrame();\r\n\t\tfrmSpotThenSequence.setLocationByPlatform(true);\r\n\t\tfrmSpotThenSequence.setResizable(false);\r\n\t\tfrmSpotThenSequence.setVisible(true);\r\n\t\tfrmSpotThenSequence.setFont(new Font(\"Courier New\", Font.PLAIN, 12));\r\n\t\tfrmSpotThenSequence.setForeground(SystemColor.desktop);\r\n\t\tfrmSpotThenSequence.setBackground(SystemColor.desktop);\r\n\t\tfrmSpotThenSequence.setTitle(\"Spot Then Sequence\");\r\n\t\tfrmSpotThenSequence.setBounds(100, 100, 554, 536);\r\n\t\tfrmSpotThenSequence.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmSpotThenSequence.getContentPane().setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\tString[] images = {\"/a.png\", \"/b.png\", \"/c.png\", \"/d.png\", \"/e.png\", \"/f.png\", \"/g.png\", \"/h.png\", \"/i.png\", \"/j.png\", \"/k.png\", \"/l.png\", \"/m.png\"};\r\n\t\tRandom rand = new Random();\r\n\t\tint num = rand.nextInt(images.length-1) + 1;\r\n\t\t\r\n\t\tRandom rand2 = new Random();\r\n\t\tint num2 = rand2.nextInt(images.length-1) + 1;\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\");\r\n\t\tlblNewLabel_1.setIcon(new ImageIcon(\"C:\\\\Users\\\\lauri\\\\Downloads\\\\rank.png\"));\r\n\t\tlblNewLabel_1.setBounds(398, 35, 39, 53);\r\n\t\tfrmSpotThenSequence.getContentPane().add(lblNewLabel_1);\r\n\t\tImage img = new ImageIcon(this.getClass().getResource(images[num])).getImage();\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"New button\");\r\n\t\tbtnNewButton.setBounds(698, 549, 115, 29);\r\n\t\tfrmSpotThenSequence.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(SystemColor.activeCaption);\r\n\t\tpanel.setBounds(0, 227, 548, 272);\r\n\t\tfrmSpotThenSequence.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBounds(15, 16, 518, 242);\r\n\t\tpanel.add(panel_1);\r\n\t\tpanel_1.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"\");\r\n\t\tlblNewLabel_2.setIcon(new ImageIcon(img));\r\n\t\t\r\n\t\tJTextArea textArea = new JTextArea();\r\n\t\ttextArea.setDisabledTextColor(SystemColor.desktop);\r\n\t\ttextArea.setBackground(SystemColor.menu);\r\n\t\ttextArea.setForeground(SystemColor.desktop);\r\n\t\ttextArea.setFont(new Font(\"SimSun\", Font.PLAIN, 12));\r\n\t\ttextArea.setEnabled(false);\r\n\t\ttextArea.setEditable(false);\r\n\t\ttextArea.setBounds(295, 83, 243, 128);\r\n\t\tfrmSpotThenSequence.getContentPane().add(textArea);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"\");\r\n\t\tlblNewLabel.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\ttextArea.append(playername + \" \" + cal.getTime());\r\n\r\n\t\t\t\tswitch (num){\r\n\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\tplayermatch = \"TREE\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tplayermatch = \"BALLOON\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tplayermatch = \"HAND\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tplayermatch = \"CANDLE\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tplayermatch = \"TARGET\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 5:\r\n\t\t\t\t\t\tplayermatch = \"ICE\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 6:\r\n\t\t\t\t\t\tplayermatch = \"BOMB\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 7:\r\n\t\t\t\t\t\tplayermatch = \"LIPS\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 8:\r\n\t\t\t\t\t\tplayermatch = \"DOLPHIN\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 9:\r\n\t\t\t\t\t\tplayermatch = \"SHADES\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 10:\r\n\t\t\t\t\t\tplayermatch = \"BULB\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 11:\r\n\t\t\t\t\t\tplayermatch = \"YINYANG\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 12:\r\n\t\t\t\t\t\tplayermatch = \"TARGET\";\r\n\t\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlblNewLabel.setBounds(176, 16, 63, 76);\r\n\t\tpanel_1.add(lblNewLabel);\r\n\t\t\r\n\t\t// RIGHT\r\n\t\tJLabel label = new JLabel(\"\");\r\n\t\tlabel.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\ttextArea.append(playername + \" \" + cal.getTime());\r\n\t\t\t\t\r\n\t\t\t\tswitch (num){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tplayermatch = \"DOLPHIN\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tplayermatch = \"SHADES\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tplayermatch = \"CHEESE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tplayermatch = \"TREE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tplayermatch = \"ICE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tplayermatch = \"YINYANG\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tplayermatch = \"LIPS\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tplayermatch = \"BALLOON\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\tplayermatch = \"TARGET\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 9:\r\n\t\t\t\t\tplayermatch = \"CHEESE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\tplayermatch = \"BOMB\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 11:\r\n\t\t\t\t\tplayermatch = \"BULB\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 12:\r\n\t\t\t\t\tplayermatch = \"HAND\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlabel.setBounds(236, 73, 63, 97);\r\n\t\tpanel_1.add(label);\r\n\t\t\r\n\t\t// BOTTOM\r\n\t\tJLabel label_1 = new JLabel(\"\");\r\n\t\tlabel_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\ttextArea.append(playername + \" \" + cal.getTime());\r\n\t\t\t\t\r\n\t\t\t\tswitch (num){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tplayermatch = \"BULB\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tplayermatch = \"TREE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tplayermatch = \"BOMB\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tplayermatch = \"TARGET\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tplayermatch = \"BALLOON\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tplayermatch = \"CANDLE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tplayermatch = \"ICE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tplayermatch = \"HAND\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\tplayermatch = \"YINYANG\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 9:\r\n\t\t\t\t\tplayermatch = \"DOLPHIN\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\tplayermatch = \"CANDLE\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 11:\r\n\t\t\t\t\tplayermatch = \"LIPS\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 12:\r\n\t\t\t\t\tplayermatch = \"SHADES\";\r\n\t\t\t\t\tmatching(playermatch, num, num2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlabel_1.setBounds(176, 124, 57, 76);\r\n\t\tpanel_1.add(label_1);\r\n\t\t\r\n\t\t// LEFT\r\n\t\tJLabel label_2 = new JLabel(\"\");\r\n\t\tlabel_2.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\ttextArea.setText(\"\" + cal.getTime());\r\n\t\t\t\t\r\n\t\t\t\tswitch (num){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tplayermatch = \"ICE\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ICE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tplayermatch = \"YINYANG\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"YINYANG\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tplayermatch = \"TREE\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"TREE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tplayermatch = \"LIPS\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"LIPS\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tplayermatch = \"CHEESE\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"CHEESE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tplayermatch = \"HAND\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"HAND\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tplayermatch = \"SHADES\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"SHADES\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tplayermatch = \"DOLPHIN\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"DOLPHIN\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\tplayermatch = \"BOMB\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"BOMB\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 9:\r\n\t\t\t\t\tplayermatch = \"CANDLE\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"CANDLE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\tplayermatch = \"BALLOON\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"BALLOON\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 11:\r\n\t\t\t\t\tplayermatch = \"CHEESE\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"CHEESE\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 12:\r\n\t\t\t\t\tplayermatch = \"BULB\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"BULB\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlabel_2.setBounds(119, 73, 63, 81);\r\n\t\tpanel_1.add(label_2);\r\n\t\tlblNewLabel_2.setBounds(108, 0, 211, 236);\r\n\t\tpanel_1.add(lblNewLabel_2);\r\n\t\t\r\n\t\tSystem.out.println(\"NUM: \" + num);\r\n\t\tSystem.out.println(\"NUM2 (Server): \" + num2);\r\n\t\t\r\n\t\tJButton btnPass = new JButton(\"PASS\");\r\n\t\tbtnPass.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));\r\n\t\tbtnPass.setBackground(SystemColor.activeCaption);\r\n\t\tbtnPass.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tbtnPass.setVerticalAlignment(SwingConstants.BOTTOM);\r\n\t\tbtnPass.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnPass.setFont(new Font(\"Surabanglus\", Font.PLAIN, 25));\r\n\t\tbtnPass.setBounds(370, 97, 115, 40);\r\n\t\tpanel_1.add(btnPass);\r\n\t\tbtnPass.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\r\n\t\tJTextArea txtrPlayerName = new JTextArea();\r\n\t\ttxtrPlayerName.setEditable(false);\r\n\t\ttxtrPlayerName.setLineWrap(true);\r\n\t\ttxtrPlayerName.setText(playername);\r\n\t\ttxtrPlayerName.setFont(new Font(\"Surabanglus\", Font.PLAIN, 20));\r\n\t\ttxtrPlayerName.setBackground(SystemColor.menu);\r\n\t\ttxtrPlayerName.setBounds(398, 0, 135, 42);\r\n\t\tfrmSpotThenSequence.getContentPane().add(txtrPlayerName);\r\n\t\t\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_3.setBounds(65, 16, 202, 197);\r\n\t\tfrmSpotThenSequence.getContentPane().add(lblNewLabel_3);\r\n\t\tImage img_server = new ImageIcon(this.getClass().getResource(images[num2])).getImage();\r\n\t\tlblNewLabel_3.setIcon(new ImageIcon(img_server));\r\n\t\t\r\n\t\tJLabel lblNewLabel_4 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_4.setIcon(new ImageIcon(\"C:\\\\Users\\\\lauri\\\\Downloads\\\\spot-then-sequence-master\\\\spot-then-sequence-master\\\\Back_1.png\"));\r\n\t\tlblNewLabel_4.setBounds(40, 16, 202, 195);\r\n\t\tfrmSpotThenSequence.getContentPane().add(lblNewLabel_4);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJTextArea txtrRanks = new JTextArea();\r\n\t\ttxtrRanks.setEditable(false);\r\n\t\ttxtrRanks.setFont(new Font(\"Surabanglus\", Font.BOLD, 35));\r\n\t\ttxtrRanks.setBackground(SystemColor.control);\r\n\t\ttxtrRanks.setText(\"RANKS\");\r\n\t\ttxtrRanks.setBounds(435, 19, 98, 69);\r\n\t\tfrmSpotThenSequence.getContentPane().add(txtrRanks);\r\n\t}", "private Image makeShot(Control control, boolean type) {\n\t\tColor greenScreen = new Color(control.getDisplay(), 222, 223, 224);\n\n\t\tShell shell = new Shell(control.getShell(), SWT.NO_TRIM);\n\n\t\t// otherwise we have a default gray color\n\t\tshell.setBackground(greenScreen);\n\n\t\tButton button = new Button(shell, SWT.CHECK);\n\t\tbutton.setBackground(greenScreen);\n\t\tbutton.setSelection(type);\n\n\t\t// otherwise an image is located in a corner\n\t\tbutton.setLocation(1, 1);\n\t\tPoint bsize = button.computeSize(SWT.DEFAULT, SWT.DEFAULT);\n\n\t\t// otherwise an image is stretched by width\n\t\tbsize.x = Math.max(bsize.x - 1, bsize.y - 1);\n\t\tbsize.y = Math.max(bsize.x - 1, bsize.y - 1);\n\t\tbutton.setSize(bsize);\n\t\tshell.setSize(bsize);\n\n\t\tshell.open();\n\t\tGC gc = new GC(shell);\n\t\tImage image = new Image(control.getDisplay(), bsize.x, bsize.y);\n\t\tgc.copyArea(image, 0, 0);\n\t\tgc.dispose();\n\t\tshell.close();\n\n\t\tImageData imageData = image.getImageData();\n\t\timageData.transparentPixel = imageData.palette.getPixel(greenScreen.getRGB());\n\n\t\treturn new Image(control.getDisplay(), imageData);\n\t}", "public static void setupNewGamePlay() {\r\n\t\tSTATUS = Gamestatus.PREPARED;\r\n\t\tGameplay.getInstance().start();\r\n\t\tgui.setMenu(new GameplayMenu(), true);\r\n\t}", "private void setupButtons() {\n\n\t\tstart = (ToggleButton) findViewById(R.id.start);\n\t\tprevious = (ImageButton) findViewById(R.id.prev);\n\t\tnext = (ImageButton) findViewById(R.id.next);\n\t\tplay = (ImageButton) findViewById(R.id.play);\n\t\tpause = (ImageButton) findViewById(R.id.pause);\n\t\tstart.setOnClickListener(this);\n\t\tprevious.setOnClickListener(this);\n\t\tnext.setOnClickListener(this);\n\t\tplay.setOnClickListener(this);\n\t\tpause.setOnClickListener(this);\n\t\tseekbar.setMax(300);\n\t\tseekbar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {\n\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tcontroller.seek((float) seekBar.getProgress() / seekBar.getMax());\n\t\t\t}\n\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t}\n\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}\n\t\t});\n\t}", "private void startGameButton() {\n startGame = new JButton(\"Aloita peli!\");\n ActionListener startGameListener = new ActionListener() {\n public void actionPerformed(ActionEvent actionEvent) {\n controller.startGame();\n }\n };\n startGame.addActionListener(startGameListener);\n }", "private void pauseScreenCreate() {\n pauseStage = new Stage();\n sfx.playSound(SoundFXManager.Type.SELECT);\n\n //Add buttons\n resume = new TextButton(\"Resume\", skin, \"default\");\n resume.getLabel().setFontScale(3);\n resume.setWidth(WIDTH / 2);\n resume.setHeight(WIDTH / 4);\n resume.setPosition(WIDTH / 2 - (resume.getWidth() / 2), (HEIGHT - (HEIGHT / 4)) - (resume.getHeight()));\n resume.addListener(new ClickListener() {\n public void clicked(InputEvent event, float x, float y) {\n Gdx.input.setInputProcessor(inputMultiplexer);\n sfx.playSound(SoundFXManager.Type.SELECT);\n gameState = GameState.PLAYING;\n }\n });\n resume.toFront();\n\n setting = new TextButton(\"Setting\", skin, \"default\");\n setting.getLabel().setFontScale(3);\n setting.setWidth(WIDTH / 2);\n setting.setHeight(WIDTH / 4);\n setting.setPosition(WIDTH / 2 - (setting.getWidth() / 2), resume.getY() - resume.getHeight() - (resume.getHeight() / 2));\n setting.addListener(new ClickListener() {\n public void clicked(InputEvent event, float x, float y) {\n Gdx.input.setInputProcessor(inputMultiplexer);\n sfx.playSound(SoundFXManager.Type.SELECT);\n settingsScreenCreate();\n }\n });\n setting.toFront();\n\n exit = new TextButton(\"Quit\", skin, \"default\");\n exit.getLabel().setFontScale(3);\n exit.setWidth(WIDTH / 2);\n exit.setHeight(WIDTH / 4);\n exit.setPosition(WIDTH / 2 - (exit.getWidth() / 2), setting.getY() - setting.getHeight() - (setting.getHeight() / 2));\n exit.addListener(new ClickListener() {\n public void clicked(InputEvent event, float x, float y) {\n Gdx.input.setInputProcessor(inputMultiplexer);\n sfx.playSound(SoundFXManager.Type.SELECT);\n gameState = GameState.PLAYING;\n game.setScreen(AntiVirus.levelSelectScreen);\n Lvl1.musicBackground.pause();\n }\n });\n exit.toFront();\n\n\n pauseStage.addActor(resume);\n pauseStage.addActor(setting);\n pauseStage.addActor(exit);\n Gdx.input.setInputProcessor(pauseStage);\n }", "private void startNewGame(){\n if (selectedPiece!=null)\n selectedPiece.setBackground(getDefaultColor(selectedPiece));\n selectedPiece = null;\n setAllToDefaultColor();\n setDefulatMessage();\n board = new ChessBoard(1, false);\n for(int row = 0 ; row < ROWS; row++){\n for(int col = 0; col < COLS ; col++){\n setButtonIcon(row,col);\n }\n }\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tgameType = \"Quick Play\"; \n\t\t\t\t\t\n\t\t\t\t}", "public WinScreen()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n showText( \"CONGRATS, YOU WIN!!!\", 393, 264); \n showText( \"Click Emoji to Reset the Game! -->\", 393, 300);\n showText( \"Click Here to go Back to Start Screen! -->\", 555, 572);\n addObject( new ResetButton(), 609, 300);\n addObject( new BackButton(), 764, 572);\n }", "private void initPlayer3() {\n btnCardD = new JButton();\n\n int cardD_top = 315;\n int cardD_left = 530;\n\n springLayout.putConstraint(SpringLayout.NORTH, btnCardD, cardD_top, SpringLayout.NORTH,\n estimationGame.getContentPane());\n springLayout.putConstraint(SpringLayout.WEST, btnCardD, cardD_left, SpringLayout.WEST,\n estimationGame.getContentPane());\n springLayout.putConstraint(SpringLayout.EAST, btnCardD, cardD_left + cardWidth, SpringLayout.WEST,\n estimationGame.getContentPane());\n springLayout.putConstraint(SpringLayout.SOUTH, btnCardD, cardD_top + cardHeight, SpringLayout.NORTH,\n estimationGame.getContentPane());\n\n btnCardD.setVisible(false);\n\n estimationGame.getContentPane().add(btnCardD);\n\n JButton btnAvatarD = new JButton();\n\n springLayout.putConstraint(SpringLayout.NORTH, btnAvatarD, -5, SpringLayout.NORTH, btnCardD);\n springLayout.putConstraint(SpringLayout.WEST, btnAvatarD, 20, SpringLayout.EAST, btnCardD);\n btnAvatarD.setFocusPainted(false);\n\n try {\n String path = GameUI.class.getProtectionDomain().getCodeSource().getLocation().getPath() ;\n String newPath = path.substring(0, path.length() - 8);\n newPath += \"images/bot_avatar.jpg\";\n // + \"../images/bot_avatar.jpg\";\n // System.out.println(newPath);\n ImageIcon img = new ImageIcon(newPath);\n // System.out.println(img);\n btnAvatarD.setIcon(new ImageIcon(img.getImage().getScaledInstance(50, 50, java.awt.Image.SCALE_SMOOTH)));\n } catch (NullPointerException e) {\n System.out.println(\"Image not found\");\n }\n\n estimationGame.getContentPane().add(btnAvatarD);\n\n\t\tlblNameD = new JLabel(\"Robot C\");\n\n\t\tspringLayout.putConstraint(SpringLayout.NORTH, lblNameD, 5, SpringLayout.SOUTH, btnAvatarD);\n springLayout.putConstraint(SpringLayout.WEST, lblNameD, 0, SpringLayout.WEST, btnAvatarD);\n springLayout.putConstraint(SpringLayout.EAST, lblNameD, 0, SpringLayout.EAST, btnAvatarD);\n lblNameD.setHorizontalAlignment(SwingConstants.CENTER);\n lblNameD.setAlignmentX(Component.CENTER_ALIGNMENT);\n lblNameD.setForeground(Color.CYAN);\n lblNameD.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\n estimationGame.getContentPane().add(lblNameD);\n\n lblScoreD = new JLabel();\n\n lblScoreD.setHorizontalAlignment(SwingConstants.CENTER);\n lblScoreD.setBorder(new LineBorder(Color.ORANGE, 3, true));\n lblScoreD.setForeground(new Color(255, 153, 255));\n lblScoreD.setFont(new Font(\"Tahoma\", Font.PLAIN, 17));\n lblScoreD.setText(\"0\");\n lblScoreD.setBackground(Color.GRAY);\n springLayout.putConstraint(SpringLayout.NORTH, lblScoreD, 5, SpringLayout.SOUTH, lblNameD);\n springLayout.putConstraint(SpringLayout.WEST, lblScoreD, 0, SpringLayout.WEST, btnAvatarD);\n springLayout.putConstraint(SpringLayout.EAST, lblScoreD, 0, SpringLayout.EAST, btnAvatarD);\n \n estimationGame.getContentPane().add(lblScoreD);\n }", "public void create() {\n connect();\n batch = new SpriteBatch();\n font = new BitmapFont();\n\n audioManager.preloadTracks(\"midlevelmusic.wav\", \"firstlevelmusic.wav\", \"finallevelmusic.wav\", \"mainmenumusic.wav\");\n\n mainMenuScreen = new MainMenuScreen(this);\n pauseMenuScreen = new PauseMenuScreen(this);\n settingsScreen = new SettingsScreen(this);\n completeLevelScreen = new CompleteLevelScreen(this);\n completeGameScreen = new CompleteGameScreen(this);\n\n setScreen(mainMenuScreen);\n }", "public void play() {\n\t\t\r\n\t}", "public void onStartNewGame(View view) {\n\n grid.setVisibility(View.VISIBLE);\n\n button1.setText(\"·\");\n button2.setText(\"·\");\n button3.setText(\"·\");\n button4.setText(\"·\");\n button5.setText(\"·\");\n button6.setText(\"·\");\n button7.setText(\"·\");\n button8.setText(\"·\");\n button9.setText(\"·\");\n }", "public void createImages(){\r\n\t\ttry {\r\n\t\t\timg_bg = Image.createImage(GAME_BG);\r\n\t\t\timg_backBtn = Image.createImage(BACK_BTN);\r\n\t\t\timg_muteBtn = Image.createImage(MUTE_BTN);\r\n\t\t\timg_resetBtn = Image.createImage(RESET_BTN);\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}", "public HowToPlay()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(763, 578, 1); \n //HowToPlay play = new HowToPlay();\n }", "@Override\r\n\tpublic void init(GameContainer gc, StateBasedGame sbg) throws SlickException {\r\n this.game = sbg;\r\n background = new Image(\"GameOverScreen.png\");\r\n \r\n menuImage = new Image(\"main.png\");\r\n menu = new startButton(menuImage, 300, 150);\r\n menu.setXY(320 - (menu.w/2), 480 - menu.h);\r\n \r\n againImage = new Image(\"again.png\");\r\n again = new startButton(againImage, 300, 150);\r\n again.setXY(320 - (again.w/2), 480 - (2*again.h)); \r\n \r\n\t}", "@Override\n public void playStart() {\n }", "public void OnStart(){\n\t\t//create the random space background and put its priority behind everything else\n\t\tswitch ((int) (Math.random() * 3)){\n\t\t\tcase 0:\n\t\t\t\tbackground = new Background(R.drawable.spaceback_med,new Point(0,0),-1);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tbackground = new Background(R.drawable.spaceback_asteroids,new Point(0,0),-1);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tbackground = new Background(R.drawable.spaceback_nebula,new Point(0,0),-1);\n\t\t\t\tbreak;\n\t\t}\n\t\t//generate asteroids\n\t\tinitAsteroids((int)(Math.random()*3));\n\t\t//create a border for the background (draw on top)\n\t\tnew Border(background,1000);\n\t\t//create the player\n\t\tplayer = new Player(new Point(-300,300), 1);\n\t\t//create a target reticule for the player\n\t\ttarget = new Target(player);\n\t\t\n\t\t//load sounds\n\t\tGameState.State().LoadSound(R.raw.shoot, \"shoot\");\n\t\tGameState.State().LoadSound(R.raw.accelerate, \"accelerate\");\n\t\tGameState.State().LoadSound(R.raw.engine, \"engine\");\n\t\tGameState.State().LoadSound(R.raw.explosion, \"explosion\");\n\t\tGameState.State().LoadSound(R.raw.death, \"death\");\n\t\t\n\t\thasStarted = true;\n\t\t\n\t\trespawnCount = 0.0f;\n\t\trespawnTime = 4f;\n\t}", "private void playButton(ActionEvent e) {\n if (paused) {\n timer.start();\n paused = false;\n } else {\n paused = true;\n timer.stop();\n }\n }", "private void startNewGame( ){\n\n mGame.clearBoard();\n mGameOver = false;\n\n // Reset all buttons\n for (int i = 0; i < mBoardButtons.length; i++) {\n mBoardButtons[i].setText(\"\");\n mBoardButtons[i].setEnabled(true);\n mBoardButtons[i].setOnClickListener(new ButtonClickListener(i));\n }\n // Human goes first\n mDiffTextView.setText(mGame.dificult);\n mInfoTextView.setText(\"You go first.\");\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tplay();\n\t\t\t}", "@Override\n\tpublic void present(float deltaTime) {\n\t\tGraficos g = juego.getGraficos();\n\t\tg.drawPixmap(Assets.fondo, 0, 0);\n\t\t// g.drawPixmap(Assets.ayuda2, 64, 100);\n\t\tg.drawPixmap(Assets.ayuda2, 9, 80);\n\t\t// x =256 y = 416\n\t\tif (Control.autor) {\n\t\t\tg.drawPixmap(Assets.logotren, 20, 20);\n\t\t} else {\n\t\t\tg.drawPixmap(Assets.autor, 20, 20);\n\n\t\t}\n\t\tg.drawPixmap(Assets.botones1, 240, 10, 0, 0, 64, 64);\n\t}" ]
[ "0.67627525", "0.6736587", "0.67349094", "0.6619357", "0.6616123", "0.6603123", "0.6464851", "0.6437166", "0.63658834", "0.635867", "0.6338308", "0.6333304", "0.6330475", "0.6279097", "0.62747884", "0.62492216", "0.61910444", "0.6150132", "0.6149036", "0.6108189", "0.60897654", "0.60760546", "0.6070293", "0.6060067", "0.6057374", "0.60533655", "0.60528207", "0.6047947", "0.60463244", "0.60388637", "0.6038789", "0.6032932", "0.6028091", "0.60265386", "0.60261506", "0.60115474", "0.60047156", "0.600145", "0.6000996", "0.5987192", "0.5985685", "0.5983348", "0.59783757", "0.59744006", "0.59724647", "0.5968312", "0.5958063", "0.5951641", "0.59466624", "0.5936987", "0.59334445", "0.59311527", "0.5913088", "0.59032273", "0.58944374", "0.58915776", "0.5887326", "0.58869827", "0.5876451", "0.58741677", "0.5872281", "0.58610195", "0.5850951", "0.5848173", "0.58472705", "0.5837869", "0.5834518", "0.58289266", "0.58236974", "0.582126", "0.58175665", "0.58151656", "0.58092844", "0.58089423", "0.5806716", "0.58038425", "0.5787141", "0.5785137", "0.57850844", "0.5781203", "0.5776634", "0.5774366", "0.5766191", "0.5761633", "0.57597095", "0.5757408", "0.5756958", "0.5755733", "0.5753728", "0.5749501", "0.57405645", "0.5738128", "0.5737961", "0.5737808", "0.57368606", "0.57341516", "0.5731065", "0.57278293", "0.5726745", "0.5725081" ]
0.81374645
0
if the button is clicked go to how to guide
public void act() { if (Greenfoot.mouseClicked(this)) { Greenfoot.setWorld(new howToPlayGuide()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}", "void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }", "private void clickOn() {\n\t\tll_returnbtn.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t}", "public void buttonClicked();", "public EmagHomePage clickonContinueButton()\n {\n continueButton.click();\n return new EmagHomePage(driver);\n }", "public void buttonHintNext(View view) {\n //using finish to activity\n finish();\n\n //create a new object to start new activity\n Intent intent = new Intent(this, Hint.class);\n //pass object to startActivity\n startActivity(intent);\n }", "public void btn_LearningActivity() {\r\n\t\tbtn_LearningActivity.click();\r\n\t}", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "private WriteAReviewPage clickOnStartHereButton(){\n click(button_StartHereLocator);\n return new WriteAReviewPage();\n }", "public void clickYes ();", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = OK;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = OTHERBEACH;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\ttry\n\t\t\t\t{if(wb.canGoForward())\n\t\t\t\t\twb.goForward();\n\t\t\t\t}catch(Exception e1)\n\t\t\t\t{\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}", "@Override\n\t\t\t\n\t\t\tpublic void onClick(final View e) {\n\t\t\t\t\n\t\t\t\tif(e == buttonStartExam)\n\t \t{ \n\t\t\t\t\tbuttonStartExam.setBackgroundResource(R.drawable.btn4);\n\t }\n\t\t new Handler().postDelayed(new Runnable() {\n\t\t public void run() {\n\t\t \tif( e == buttonStartExam)\n\t\t \t{\n\t\t \t\tbuttonStartExam.setBackgroundResource(R.drawable.btn2);\n\t\t }\n\t\t }\n\t\t }, 100L); \n\t\t SharedPreferences setting = getSharedPreferences(\"Pref\", 0);\n\t\t String imported= setting.getString(\"imported\", \"\");\n\t\t if(imported.equals(\"Yes\"))\n\t\t {\n\t\t\t\tif(Chkagree.isChecked())\n\t\t\t\t{\n\t\t\tIntent mIntent = new Intent(RulesActivity.this, DispalyQuestion.class);\n\t\t\tstartActivity(mIntent);\n\t\t\tfinish();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(RulesActivity.this, \"Please Agree\",Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t }\n\t\t else\n\t\t {\n\t\t \t Toast.makeText(RulesActivity.this, \"Answers not imported\",Toast.LENGTH_LONG).show();\n\t\t }\n\t\t\t}", "@Override\n public void buttonClick(ClickEvent event) {\n \tgetUI().getNavigator().navigateTo(NAME + \"/\" + contenView);\n }", "@Override\n public void onClick(View view) {\n\n if (!prefs.getBoolean(Constants.KEY_IS_MINI_GUIDE_SHOWN, false)) {\n openMiniGuide1();\n } else {\n prefs.edit().putString(Constants.KEY_IS_FIRST_TIME, \"true\");\n startActivity(new Intent(SplashLandingActivity.this, SignUpActivity.class));\n finish();\n }\n\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t\tObject o = arg0.getSource();\n\t\t\n\t\tif(o.equals(go))\n\t\t{\n\t\t\tif(all.isSelected()==true)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//System.exit(0);\n\t\t\t\tView_FragMain x=new View_FragMain();\n\t\t\t}\n\t\t\tif(bud.isSelected())\n\t\t\t{\n\t\t\t\t// connect BUDDY SYSTEM here....\n\t\t\t\tBuddy1_1 b1 = new Buddy1_1();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "private void goGuide() {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n Object clicked = e.getSource();\n\n if (clicked == next_turn){\n NextTurn();\n }\n if (clicked == next_game){\n NextGame();\n }\n if (clicked == go_back){\n GoBack();\n }\n if (clicked == prev_game){\n PrevGame();\n }\n if (clicked == prev_turn){\n PrevTurn();\n }\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(hint==e.getSource()) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Hint: I have something to do with walking\");\n\t\t}\n\t\telse if(submit==e.getSource()) {\n\t\t\tif(textfield.getText().equalsIgnoreCase(\"footsteps\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You won!\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Sorry, that is incorrect.\");\n\t\t\t}\n\t\t}\n\t}", "public void HelpButtonClick(View view) {\n GeneralHelper.ShowHelpInWishActivity(\"step_test.html\", \"\", this);\n return;\n }", "@Override\n public void onClick(View v) {\n Intent returns = new Intent(Welcome.this, Returns.class);\n startActivity(returns);\n\n }", "public void goToHowTo(View view) {\n\t\tString msg = \"1. Under Options, define rules for both red and blue cells.\\n\\n\"\n\t\t\t\t+ \"2. Adjust performance, gameplay and visual options.\\n\\n\"\n\t\t\t\t+ \"3. Hit start. The menu button offers additional tools. Create new cells by drawing on the screen.\\n\\n\"\n\t\t\t\t+ \"4. There is no goal, just play around.\";\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Duel of Life - How To\");\n\t\talert.setMessage(msg);\n\t\talert.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\t// Clicked\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = USER;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tcard.next(bootpanel);\n\t\t\tSystem.out.println(\"next\");\n\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = PROPER;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmsgsnd(\"start\");\r\n\t\t\t\ttoppanel.setVisible(true);\r\n\t\t\t\tbottompanel.setVisible(true);\r\n\t\t\t\tanswer.requestFocus();\r\n\t\t\t}", "@Override\r\n public void onClick(View v){\n RequestUrl(\"led1\");\r\n }", "private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }", "@Override\n public void onClick(View v) {\n Intent welcome = new Intent(Welcome.this, Scan.class);\n startActivity(welcome);\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlog.info(\"in jump\");\n\t\t\t\tIntent inten = new Intent(Main_Activity.this, Jump.class);\n\t\t\t\tif(userName.isEmpty()){\n\t\t\t\t\tToast.makeText(Main_Activity.this, \"You need to login first!\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tBundle myBundle = new Bundle();\n\t\t\t\t\tmyBundle.putString(\"name\",person_name);\n\t\t\t\t\tmyBundle.putString(\"username\", userName);\n\t\t\t\t\tinten.putExtras(myBundle);\n\t\t\t\t\tstartActivity(inten);\n\t\t\t\t}\n\t\t\t\t}", "@Override\r\n public void onClick(View v){\n RequestUrl(\"led2\");\r\n }", "public void actionPerformed(ActionEvent e) {\n // Ask the event which button was the source that generated it\n if (e.getActionCommand().equals(\"Press Me\"))\n System.out.println(\"That felt good!\");\n else\n System.out.println(\"Ouch! Stop that!\");\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getSource().equals(btnQuayLai)){\n btnquaylaiclick();}\n }", "public void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==btnConfirmOrNext){\n\t\t\tif(btnConfirmOrNext.getText().equals(\"Confirm\")){\n\t\t\t\ttakeInUserInput();\n\t\t\t\tdisableAllButtons(); // festival speaking\n\t\t\t} else if (btnConfirmOrNext.getText().equals(\"Next Question\")||btnConfirmOrNext.getText().equals(\"Done\")){\n\t\t\t\tdisableAllButtons(); // festival speaking\n\t\t\t\t// ask question when it is supposed to\n\t\t\t\tif(spellList.status == QuizState.Asking){\n\t\t\t\t\tbtnConfirmOrNext.setText(\"Confirm\");\n\t\t\t\t\tquestionAsker=spellList.getQuestionAsker();\n\t\t\t\t\tquestionAsker.execute();\n\t\t\t\t}\n\t\t\t}\n\t\t} else if(e.getSource()==btnStop){\n\t\t\t// quiz only stoppable after a question is done asking (i.e. Answering state) or when is question is done answered\n\t\t\tif(spellList.status==QuizState.Answering||btnConfirmOrNext.getText().equals(\"Next Question\")){\n\t\t\t\t// record stats even though stopped\n\t\t\t\tspellList.recordStatisticsFromLevel();\n\t\t\t\t// go back to main panel\n\t\t\t\tmainFrame.changeCardPanel(\"Main\");\n\t\t\t}\n\t\t} else if(e.getSource()==btnListenAgain){\n\t\t\t// this button only works when the voice generator is not generating any voice and when a question is not being asked\n\t\t\tif((!(spellList.status==QuizState.Asking)||(btnConfirmOrNext.getText().equals(\"Next Question\")))&&respellGen.isDone()){\n\t\t\t\t// respell word\n\t\t\t\trespellGen = new VoiceGenerator(theVoice,theVoiceStretch,theVoicePitch,theVoiceRange);\n\t\t\t\trespellGen.setTextForSwingWorker(\"\", spellList.getCurrentWord());\n\t\t\t\trespellGen.execute();\n\t\t\t\t// rerequest focus on user input\n\t\t\t\tuserInput.requestFocus();\n\t\t\t}\n\t\t}\n\t}", "public void activateButton() {\n\t\tif (isBrowser) this.bringToBack();\r\n\t\tMainActivity.resetXY();\r\n\t}", "public boolean clickOnStartButton() {\r\n\t\ttry {\r\n\t\t\tgetAssignmentStratButton().click();\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = BALLON;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlog.info(\"in jump\");\n\t\t\t\tIntent inten = new Intent(Main_Activity.this, Beep.class);\n\t\t\t\tif(userName.isEmpty()){\n\t\t\t\t\tToast.makeText(Main_Activity.this, \"You need to login first!\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tBundle myBundle = new Bundle();\n\t\t\t\t\tmyBundle.putString(\"name\",person_name);\n\t\t\t\t\tmyBundle.putString(\"username\", userName);\n\t\t\t\t\tinten.putExtras(myBundle);\n\t\t\t\t\tstartActivity(inten);\n\t\t\t\t}\n\t\t\t\t}", "@Override\n\t public void onClick(View v) {\n\t \teditor.putInt(\"buttonLabel\", 4);\n\t \t\teditor.commit();\n\t \tif(powerSwitch.isChecked() && nCurrentSpeed > drivingSpeed){\n\t \t\twarning();\n\t \t}\n\t \telse\n\t \t\tlaunchContact();\n\t }", "public void clickContinue() {\n\t\tcontinueButton.click();\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent i = new Intent(Akun.this, Riwayat_pemesanan.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "@Override\r\n public void onClick(View view) {\n Intent intent = new Intent(GuidePage.this, LoginOrRegister.class);\r\n startActivity(intent);\r\n }", "public void nextBtnClicked(View v) {\r\n//\t\tshowMsg(\"Next Button clicked: \"+ v);\r\n\t\tresetSelection();\r\n\t\tnextQuestion(1);\r\n\t\tshowQuesAndAnswers();\r\n\t}", "public void btn_previous_analysis_On_click(View v) {\n Intent i = new Intent(MainActivity.this, PreviousAnalysis.class);\n startActivity(i);\n }", "public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}", "public void ButtonClicked(View view) {\n Intent intentInput = new Intent(DetailActivity.this, InputActivity.class);\n startActivity(intentInput);\n }", "public void onClick(View view) {\n Intent nextScreen = new Intent(view.getContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n }", "void OnNextButtonClicked(String buttonClicked,StoriesClass currentStor);", "void okButtonClicked();", "protected void processButton1(Robot robot ){\n robot.getIntake().intakeSuckIn(1);\n\n }", "@Override\n\tpublic void onClick(View p1)\n\t{\n\t\tswitch(p1.getId()){\n\t\t\tcase R.id.btn_look:\n\t\t\t\tlook();\n\t\t\t\tbreak;\n\t\t\tcase R.id.btn_save:\n\t\t\t\tsave();\n\t\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.SamePlacesCommunity.Main.FeedServiceActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}", "public void buttonToExam(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam button clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n// intent.putExtra(\"extra\", \"extra\");\n startActivity(intent);\n }", "public void onClick(View v) {\r\n if (b1.isPressed()) {\r\n Intent j = new Intent(getApplicationContext(), MainActivity.class);\r\n startActivity(j);\r\n setContentView(R.layout.activity_main);\r\n }\r\n\r\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\n\t\tcase R.id.bnext:\n\t\tIntent i = new Intent(getApplicationContext(),ClientServerJSONActivity.class);\n\t\t//Intent i = new Intent(getApplicationContext(),Form.class);\n\t\tstartActivity(i);\n\t\tbreak;\n\t\tcase R.id.bexit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\t}\n\t}", "public void buttonClickHandler (ActionEvent evt) {\n\t\tButton clickedButton = (Button) evt.getTarget();\n\t\tString buttonLabel = clickedButton.getText();\n\t\t\n\t\tswitch(buttonLabel) {\n\t\t\tcase(\"Instructions\"): openInstructionsWindow(); break;\n\t\t\tcase(\"About\"): openAboutWindow(); break;\n\t\t\tcase(\"Quit\"): GameScreenController.quitWindow(); break;\n\t\t}\t\n\t}", "private void btnHomeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHomeActionPerformed\n// timingnyaDiStop();\n int inginKeluar;// 0 = (YES) exit ke main menu , 1 = (NO)tidak jadi //default netbeansnya\n inginKeluar = JOptionPane.showConfirmDialog(this, \"Anda yakin ingin mengakhiri Pembahasan / Materi?\", \"Konfirmasi Kembali\", 0);\n if (inginKeluar == 0) //kalo bener mau keluar, skoring muncul (masukkanSkor)\n {\n try {\n masukkanSkor();\n\n } catch (IOException ex) {\n Logger.getLogger(bahas.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n timingnyaMainLagi();\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n JButton jb = (JButton) e.getSource();\n if(jb == next_button){\n\n layout.extractInformation(number_of_rows,number_of_cols,dataEntries);\n JOptionPane.showMessageDialog(this, \"Your input has been successfully acquired. Press OK to continue.\\n\");\n this.setVisible(false);\n AdminGUI startGui = new AdminGUI(dataEntries , layout);\n //TODO: Uncomment layout start\n layout.start();\n }\n\n\n }", "public void goToNextPage() {\n nextPageButton.click();\n }", "public void actionPerformed(ActionEvent e) \r\n\t{\r\n\t\t//Checks which button is pressed and calls the relevant method\r\n\t\tif (e.getSource() == nextQuestionButton)\r\n\t\t{\r\n\t\t\tfetchNewQuestion();\r\n\t\t}\r\n\t\telse if (e.getSource() == submitAnswerButton)\r\n\t\t{\r\n\t\t\tcheckAnswer();\r\n\t\t}\r\n\t}", "public void clickedButton(View view) {\n\n switch (view.getId()) {\n case R.id.contactBook:\n intent = new Intent(this, ContactBookActivity.class);\n startActivity(intent);\n break;\n case R.id.message:\n intent = new Intent(this, SMS_Activity.class);\n startActivity(intent);\n break;\n case R.id.fav_contacts:\n intent = new Intent(this, ContactGridActivity.class);\n startActivity(intent);\n break;\n case R.id.lastCall:\n intent = new Intent(this, LatestCallsActivity.class);\n startActivity(intent);\n break;\n case R.id.microphone:\n SpeechRecognitionHelper.run(this);\n break;\n }\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.example.thirdapp.LocationActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"4\");\n\t\t\t}", "private void initGuide() {\n\t\tfindViewById(R.id.btn_start).setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t//显示捡瓶子的页面\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = PIKCOUT;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tivPickBottle.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = OTHERBEACH;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tivOtherBeach.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = BALLON;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tivBalloon.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = PROPER;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tivProp.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = USER;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tivCenter.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = OK;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfindViewById(R.id.iv_ok).setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIntent intent = new Intent(GuideActivity.this,MainActivity.class);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NO_USER_ACTION);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\tMyApplication.getApp().getSysSpUtil().setIsFirstTime(false);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t});\r\n\t\tend.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(nextStep+1>=showflag.length)\r\n\t\t\t\t\treturn ;\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tif(showflag[nextStep]){\r\n\t\t\t\t\tnextStep +=1;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tfor(int i=nextStep;i>=0;i--){\r\n\t\t\t\t\t\tif(showflag[i]){\r\n\t\t\t\t\t\t\tnextStep= i+1;\r\n\t\t\t\t\t\t\tbreak;\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\t\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tif(nextStep==OK)\r\n\t\t\t\t\tmHandler.sendMessageDelayed(msg, waitTime);\r\n\t\t\t\telse\r\n\t\t\t\t\tmHandler.sendMessageDelayed(msg, waitTime);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public static Boolean playBtn() { \n\t\tboolean startGame= false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tstartGame=true;\n\t\t}\n\t\treturn startGame; \n\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n if (e.getActionCommand() == \"button1\"){\r\n JOptionPane.showMessageDialog(null,\"Button1 hit\");\r\n }else {\r\n JOptionPane.showMessageDialog(null,\"Button2 hit\");\r\n }\r\n\r\n }", "public void onClick(DialogInterface dialog, int which) {\n Intent nextScreen = new Intent(getApplicationContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n\n }", "void userPressConnectButton();", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\t\t\tboolean approved = showLoginScreen();\n\t\t\t\tif(approved) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tGUIDriver.goToScreen(\"welcome\");\n\t\t\t\t} else {\n\t\t\t\t\tshowIncorrectMessage();\n\t\t\t\t}\n\t\t}", "public void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tnextButton.setText(\"NEXT >> \");\n\t\t\tint index = tabbedPane.getSelectedIndex();\n\t\t\tif (index != 0)\n\t\t\t{\n\t\t\t\ttabbedPane.setSelectedIndex(index - 1);\n\t\t\t}\n\t\t\tif (index - 1 == 0)\n\t\t\t{\n\t\t\t\tbackButton.setEnabled(false);\n\t\t\t}\n\t\t}", "@Override\n public void onClick(View view){\n Intent intentWeb = new Intent(Intent.ACTION_VIEW);\n intentWeb.setData(Uri.parse(buttonUrl.getText().toString()));\n startActivity(intentWeb); //lancement\n\n }", "private StepInButton() {\r\n\t\t\tsetToolTipText(\"Step into the current method\");\r\n\t\t\ttry {\r\n\t\t\t\tsetIcon(new ImageIcon(ImageIO.read(ClassLoader.getSystemResource(\"images/stepIn.png\")).getScaledInstance(FlowClient.BUTTON_ICON_SIZE, FlowClient.BUTTON_ICON_SIZE, Image.SCALE_SMOOTH)));\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t\tsetBorder(FlowClient.EMPTY_BORDER);\r\n\t\t\taddActionListener(new ActionListener() {\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * We'll see how this'll work with a debugger later\r\n\t\t\t\t */\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO step in using debugger\r\n\t\t\t\t\tSystem.out.println(\"Step in button pressed\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(ActivityIndex.this, ActivityTrialMessage.class);\n intent.putExtra(\"fromIndex\", true);\n startActivity(intent);\n }", "void clickNextStation();", "@Override\n public void onClick(View v) {\n Intent r1page = new Intent(v.getContext(), the_oxford_kitchen.class);\n startActivity(r1page);\n }", "public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }", "public void onClick(View arg0) {\n\t\t\t\tIntent it=new Intent(\"com.example.btp.FinalDecision\");\n\t\t\t\tstartActivity(it);\n\t\t\t\t\n\t\t\t}", "public void clickNextButton() {\n if (editSummaryFragment.isActive()) {\n //we're showing the custom edit summary window, so close it and\n //apply the provided summary.\n editSummaryFragment.hide();\n editPreviewFragment.setCustomSummary(editSummaryFragment.getSummary());\n } else if (editPreviewFragment.isActive()) {\n //we're showing the Preview window, which means that the next step is to save it!\n if (abusefilterEditResult != null) {\n //if the user was already shown an AbuseFilter warning, and they're ignoring it:\n funnel.logAbuseFilterWarningIgnore(abusefilterEditResult.getCode());\n }\n getEditTokenThenSave(false);\n funnel.logSaveAttempt();\n } else {\n //we must be showing the editing window, so show the Preview.\n hideSoftKeyboard(this);\n editPreviewFragment.showPreview(title, sectionText.getText().toString());\n funnel.logPreview();\n }\n }", "@Override\n public void onClick(View v) {\n if(((RelapseProcessActivity)getActivity()).canProceed == true) {\n goToEmergencyGoneStep();\n }\n }", "private void gotoCheckInListView() {\n }", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tif(v==Bn_Pre){\r\n\t\t\t\tIntent intent = new Intent(NextActivity.this, MainActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}else if(v==Bn_Next){\r\n\t\t\t\tIntent intent = new Intent(NextActivity.this, Next2Activity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t}", "@Override\n\tpublic void onClick(View arg0) {\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.bGo:\n\t\t\tInputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\tmgr.hideSoftInputFromWindow(inputText.getWindowToken(), 0);\n\t\t\tString theWebsite = inputText.getText().toString();\n\t\t\ttheBrow.loadUrl((\"http:\" + theWebsite));\n\t\t\tinputText.setCursorVisible(false);\n\n\t\t\tbreak;\n\t\tcase R.id.editUrl:\n\t\t\tinputText.setCursorVisible(true);\n\t\t\tbreak;\n\t\tcase R.id.bBack:\n\t\t\tif (theBrow.canGoBack()) {\n\t\t\t\ttheBrow.goBack();\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.brefresh:\n\t\t\ttheBrow.reload();\n\t\t\tbreak;\n\t\tcase R.id.bForward:\n\t\t\tif (theBrow.canGoForward()) {\n\t\t\t\ttheBrow.goForward();\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onClick(View view) {\n Button trykket = null;\n for (int i = 0; i < 30 ; i++) {\n if (view==buttons.get(i)){\n trykket=buttons.get(i);\n }\n }\n assert trykket != null;\n gæt(trykket);\n\n //vi afslutter spiller hvis det er slut eller vundet.\n if(logik.erSpilletSlut()){\n if(logik.erSpilletTabt()){\n // die.start();\n slutspilllet(false);\n }\n if(logik.erSpilletVundet()) slutspilllet(true);\n }\n\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString url = \"Aide.html\";\r\n\t\t\t\tFile htmlFile = new File(url);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\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\t\t\t}", "@Override\n public void onClick(View v) {\n String checkBoulder = (String) completeBoulder.getText();\n // if button says \"Topped out!\"\n if (checkBoulder.equals(getResources().getString(R.string.topout_complete))){\n //do nothing\n }\n else {\n tries_title.setBackgroundColor(getResources().getColor(R.color.colorGreen));\n tries_title.setText(R.string.good_job);\n showTriesBox();\n }\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO step in using debugger\r\n\t\t\t\t\tSystem.out.println(\"Step in button pressed\");\r\n\t\t\t\t}", "public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tisButtonClick = true;\r\n\t\t\t\t\tpageSize = 0;\r\n\t\t\t\t\tcurrentPage = 1;\r\n\t\t\t\t\tgetQx();\r\n\t\t\t\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.sendbtn:\n\t\t\tGuideActivity.this.finish();\n\t\t\t// Intent intent=new\n\t\t\t// Intent(GuideActivity.this,FragmentManagerActivity.class);\n\t\t\tIntent intent = new Intent(GuideActivity.this, LoginActivity.class);\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent ikhan_yunis = new Intent(man_lamar.this,man_khan_yunis.class);\n\t\t\t\tstartActivity(ikhan_yunis);\n\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\r\n\t\t\t\tIntent i=new Intent(getApplicationContext(),Pfillup.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\t\r\n\t\t\t}", "void onClickNextTurn();", "@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/cchat.html\");\n \t\t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n }", "void mainButtonPressed();", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif(arg0.getSource() == button1){\n\t\tSystem.out.println(\"Why did the chicken cross the road.\");\n\t\t}\n\t\tif(arg0.getSource() == button2){\n\t\t\tSystem.out.println(\"`because he was to dumb to realize the grosrey store was the other way.\");\n\t\t\t}\n\t}", "private void btnNext_click(ActionEvent e) {\n\t\tString stuAnswer = \"\";\r\n\t\tif (rdoItemA.isSelected()) {\r\n\t\t\tstuAnswer = \"A\";\r\n\t\t}\r\n\t\tif (rdoItemB.isSelected()) {\r\n\t\t\tstuAnswer = \"B\";\r\n\t\t}\r\n\t\tif (rdoItemC != null) {\r\n\t\t\tif (rdoItemC.isSelected()) {\r\n\t\t\t\tstuAnswer = \"C\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (rdoItemD != null) {\r\n\t\t\tif (rdoItemD.isSelected()) {\r\n\t\t\t\tstuAnswer = \"D\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!stuAnswer.isEmpty()) {\r\n\t\t\tExamItem bean = eiList.get(questionNO - 1);\r\n\r\n\t\t\tif (bean.getStuAnswer() == null || !bean.getStuAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\tbean.setStuAnswer(stuAnswer);\r\n\t\t\t\tif (bean.getStdAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\t\tbean.setMarkResult(1l);\r\n\t\t\t\t\tbean.setGainScore(bean.getStdScore());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbean.setMarkResult(0l);\r\n\t\t\t\t\tbean.setGainScore(0l);\r\n\t\t\t\t}\r\n\t\t\t\texamItemService.update(bean);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (questionNO == questionNum) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"这是最后一题。\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tquestionNO++;\r\n\t\tinitData();\r\n\t}", "@Override\n public void onClick(View whichbtn) {\n\n switch (whichbtn.getId()) {\n case R.id.bt_ssspp:\n intent.setClass(ShowBranchAndBound.this, BranchAndBoundSSSPPActivity.class);\n startActivity(intent);\n break;\n case R.id.bt_loading_prob:\n intent.setClass(ShowBranchAndBound.this, BranchAndBoundLoadingProbActivity.class);\n startActivity(intent);\n break;\n case R.id.bt_0and1k_pro:\n intent.setClass(ShowBranchAndBound.this, BranchAndBound0And1KProbActivity.class);\n startActivity(intent);\n break;\n }\n }", "@Override\n public void onClick(View v) {\n Intent returnToPressHelp = new Intent(getApplicationContext(), PressHelp.class);\n startActivity(returnToPressHelp);\n\n\n //Tell the phone that the medication was taken.\n\n }", "public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlog.info(\"in jump\");\n\t\t\t\tIntent inten = new Intent(Main_Activity.this, Run.class);\n\t\t\t\tif(userName.isEmpty()){\n\t\t\t\t\tToast.makeText(Main_Activity.this, \"You need to login first!\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tBundle myBundle = new Bundle();\n\t\t\t\t\t//myBundle.putString(\"name\",userName);\n\t\t\t\t\tmyBundle.putString(\"username\", userName);\n\t\t\t\t\tinten.putExtras(myBundle);\n\t\t\t\t\tstartActivity(inten);\n\t\t\t\t}\n\t\t\t}" ]
[ "0.6883655", "0.68559986", "0.6753849", "0.6748029", "0.6597316", "0.6594977", "0.657015", "0.65656906", "0.6546804", "0.65444696", "0.654428", "0.65432614", "0.65290356", "0.6525551", "0.6522377", "0.65194535", "0.64753705", "0.6467296", "0.64654016", "0.6457139", "0.6450553", "0.644573", "0.6444316", "0.64307636", "0.6421269", "0.6415973", "0.64062786", "0.64059126", "0.6401225", "0.6398092", "0.6384517", "0.63837224", "0.63792205", "0.6360929", "0.63580525", "0.63420844", "0.63293725", "0.63271844", "0.6322097", "0.63216317", "0.6303904", "0.6303011", "0.629889", "0.6291574", "0.62914646", "0.62881976", "0.6286793", "0.6278889", "0.6274603", "0.6273917", "0.62728655", "0.6270974", "0.62669927", "0.6263318", "0.62593156", "0.6258736", "0.62587214", "0.62569946", "0.6252993", "0.6246618", "0.62448883", "0.6244322", "0.62419283", "0.6234053", "0.6233875", "0.6231928", "0.6225536", "0.62215924", "0.6204717", "0.62027097", "0.62002116", "0.6194679", "0.61841875", "0.6179422", "0.6176529", "0.6174216", "0.6169672", "0.616902", "0.6168749", "0.616544", "0.6164836", "0.6164795", "0.61634505", "0.6159915", "0.6154873", "0.6146337", "0.6144514", "0.6136695", "0.6134613", "0.61345834", "0.61300635", "0.61295694", "0.61285156", "0.6126087", "0.6121797", "0.61128217", "0.6111717", "0.6106808", "0.610389", "0.6099931", "0.6096766" ]
0.0
-1
Returns the value of the 'Views' containment reference.
Views getViews();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<String> getViews() {\n return views;\n }", "@Override\n public java.util.List<MateriliazedView> getViewsList() {\n return views_;\n }", "public java.lang.String getViewsLabel() {\n return viewsLabel_;\n }", "public java.lang.String getViewsLabel() {\n return instance.getViewsLabel();\n }", "public com.google.protobuf.ByteString\n getViewsLabelBytes() {\n return instance.getViewsLabelBytes();\n }", "public View getView() {\n\t\treturn view;\n\t}", "public String getViewContent() {\r\n\t\treturn viewContent;\r\n\t}", "ViewElement getViewElement();", "public ArrayList<View> getViewsArrayList(){\n return viewsArrayList;\n }", "public ViewIdentificator getView() {\r\n return view;\r\n }", "public View getView() {\n return view;\n }", "@Override\n public java.util.List<? extends MateriliazedViewOrBuilder>\n getViewsOrBuilderList() {\n return views_;\n }", "public GraphView getVisibleView() {\r\n\t\treturn graphModel.getVisibleView();\r\n\t}", "public java.util.List<MateriliazedView> getViewsList() {\n if (viewsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(views_);\n } else {\n return viewsBuilder_.getMessageList();\n }\n }", "private ViewFrame getViewFrame() {\n\t\treturn this.viewFrame;\n\t}", "public WindowContent getViewContent() {\r\n return this.windowContent;\r\n }", "@Override\n public int getViewsCount() {\n return views_.size();\n }", "public com.google.protobuf.ByteString\n getViewsLabelBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(viewsLabel_);\n }", "public String getViewPath() {\n return mviewPath;\n }", "public ViewObjectImpl getLocations() {\n return (ViewObjectImpl)findViewObject(\"Locations\");\n }", "java.util.List<MateriliazedView>\n getViewsList();", "public DrawingView view() {\n return fView;\n }", "public VariableView getVarView() {\n \t\treturn this.varView;\n \t}", "public View getView() { return view; }", "public ViewObjectImpl getDcmComVsView() {\r\n return (ViewObjectImpl)findViewObject(\"DcmComVsView\");\r\n }", "public View[] getViews() {\n \t\tif (views != null)\n \t\t\treturn views;\n \n \t\tView tocview = new View(\"toc\", //$NON-NLS-1$\n \t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\tpreferences.getImagesDirectory() + \"/contents_view.gif\", 'C', !HelpPlugin.getTocManager().isTocLoaded(getLocale())); //$NON-NLS-1$\n \t\tView indexview = null;\n \t\tView searchview = new View(\"search\", //$NON-NLS-1$\n \t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\tpreferences.getImagesDirectory() + \"/search_results_view.gif\", 'R', false); //$NON-NLS-1$\n \t\tView linksview = null;\n \t\tView bookmarksview = null;\n \n \t\tif (preferences.isIndexView())\n \t\t\tindexview = new View(\"index\", //$NON-NLS-1$\n \t\t\t\t\t\"\", //$NON-NLS-1$\n\t\t\t\t\tpreferences.getImagesDirectory() + \"/index_view.gif\", 'I', !HelpPlugin.getIndexManager().isIndexLoaded(getLocale())); //$NON-NLS-1$\n \t\tif (preferences.isLinksView())\n \t\t\tlinksview = new View(\"links\", //$NON-NLS-1$\n \t\t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\t\tpreferences.getImagesDirectory() + \"/links_view.gif\", (char)0, false); //$NON-NLS-1$\n \t\tif (preferences.isBookmarksView())\n \t\t\tbookmarksview = new View(\"bookmarks\", //$NON-NLS-1$\n \t\t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\t\tpreferences.getImagesDirectory() + \"/bookmarks_view.gif\", (char)0, false); //$NON-NLS-1$\n \n \t\tArrayList viewList = new ArrayList();\n \t\tviewList.add(tocview);\n \t\tif (indexview != null) {\n \t\t\tviewList.add(indexview);\n \t\t}\n \t\tviewList.add(searchview);\n \t\tif (linksview != null) {\n \t\t\tviewList.add(linksview);\n \t\t}\n \t\tif (bookmarksview !=null) {\n \t\t\tviewList.add(bookmarksview);\n \t\t}\n \t\t\n \t\tviews = (View[]) viewList.toArray(new View[viewList.size()]);\n \t\treturn views;\n \t}", "@Override\n public MateriliazedView getViews(int index) {\n return views_.get(index);\n }", "public String getViews() {\n return fullPhoto.getViews();\n }", "public Integer getViewThroughConversions() {\r\n return viewThroughConversions;\r\n }", "public java.lang.Boolean getView() {\n return view;\n }", "MateriliazedView getViews(int index);", "public JView getJView() {\r\n return this.view;\r\n }", "@Override\r\n\tpublic View getView() {\n\t\treturn this.view;\r\n\t}", "public HBox getView() {\n return this;\n }", "public Byte getIsView() {\n return isView;\n }", "public java.util.List<MateriliazedView.Builder>\n getViewsBuilderList() {\n return getViewsFieldBuilder().getBuilderList();\n }", "public float getViewDistance() { return viewDistance; }", "public int getViewsCount() {\n if (viewsBuilder_ == null) {\n return views_.size();\n } else {\n return viewsBuilder_.getCount();\n }\n }", "public final View mo67902d() {\n View view = this.itemView;\n C7573i.m23582a((Object) view, \"itemView\");\n return view;\n }", "public List<View> getViews() {\n if (!isLoaded()) {\n throw new IllegalStateException(\"Error: The module is not loaded\");\n }\n\n return new ArrayList<View>(m_views);\n }", "public String getView();", "public String getView();", "public GroupManager getViews() {\n\t\treturn logic.getViews();\n\t}", "public SVGViewBoxElementModel getViewBox() {\n \t\treturn viewBox;\n \t}", "public java.lang.String getView() {\n return view;\n }", "public java.lang.String getView() {\n return view;\n }", "public java.lang.String getView() {\n return view;\n }", "public ViewCharges viewCharges() {\n return this.viewCharges;\n }", "MateriliazedViewOrBuilder getViewsOrBuilder(\n int index);", "@Override\n\tpublic KrollDict getRect()\n\t{\n\t\tView view = null;\n\t\tif (this.holder != null) {\n\t\t\tview = this.holder.getNativeView();\n\t\t}\n\t\treturn getViewRect(view);\n\t}", "public Rectangle2D getView() {\r\n return new Rectangle2D.Double(minX, minY, maxX - minX, maxY - minY);\r\n }", "public Rectangle getViewRectangle() {\n\t\treturn null;\n\t}", "protected Object getViewData() {\n\t\treturn view.getViewData();\n\t}", "java.util.List<? extends MateriliazedViewOrBuilder>\n getViewsOrBuilderList();", "@Override\n public MateriliazedViewOrBuilder getViewsOrBuilder(\n int index) {\n return views_.get(index);\n }", "@NonNull\n public final AutoRef<View> getView() throws IllegalStateException, ReferenceNullException {\n return AutoRef.of(getBinding().get().getRoot());\n }", "public com.microsoft.schemas.sharepoint.soap.UpdateViewViewProperties getViewProperties() {\r\n return viewProperties;\r\n }", "public java.util.List<? extends MateriliazedViewOrBuilder>\n getViewsOrBuilderList() {\n if (viewsBuilder_ != null) {\n return viewsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(views_);\n }\n }", "@Override\n public List<INaviView> getViews() {\n List<INaviView> localCachedViews = m_cachedViews;\n\n if (localCachedViews == null) {\n final IFilter<INaviView> filter = getFilter();\n\n if (m_originContainer.isLoaded()) {\n localCachedViews =\n filter == null ? m_originContainer.getUserViews() : filter.get(m_originContainer\n .getUserViews());\n } else {\n localCachedViews = new ArrayList<INaviView>();\n }\n }\n\n CStaredItemFunctions.sort(localCachedViews);\n\n m_cachedViews = localCachedViews;\n return new ArrayList<INaviView>(localCachedViews);\n }", "public final RelationType<List<RelationType<?>>> getViewContentParam()\n\t{\n\t\treturn aViewContentParam;\n\t}", "public VisibleRangeViewModel getVisibleRange() {\n return getParent().getVisibleRange();\n }", "java.lang.String getViewsLabel();", "String getViewName() {\n\t\treturn this.viewName;\n\t}", "public StudioFinalFixDTO getViewData() {\n return this.viewData;\n }", "public Pane getView() {\n return gridPane;\n }", "public com.microsoft.schemas.sharepoint.soap.UpdateViewViewFields getViewFields() {\r\n return viewFields;\r\n }", "public String getViewName() {\n return viewName;\n }", "com.google.protobuf.ByteString\n getViewsLabelBytes();", "public XmuCoreMatchViewElements getXmuCoreMatchViewAccess() {\r\n\t\treturn pXmuCoreMatchView;\r\n\t}", "public ViewObjectImpl getVehicleOwnershipVO1() {\n return (ViewObjectImpl) findViewObject(\"VehicleOwnershipVO1\");\n }", "private View getView() {\n try {\n return (View) this.webView.getClass().getMethod(\"getView\", new Class[0]).invoke(this.webView, new Object[0]);\n } catch (Exception unused) {\n return (View) this.webView;\n }\n }", "public ViewObjectImpl getEmployeesView1() {\n return (ViewObjectImpl)findViewObject(\"EmployeesView1\");\n }", "public View getViewAllPanels()\n\t{\n\t\treturn view;\n\t}", "public ViewObjectImpl getlocationMapVo1() {\n return (ViewObjectImpl) findViewObject(\"locationMapVo1\");\n }", "public ViewObjectImpl getVehicleDetailsVo1() {\n return (ViewObjectImpl) findViewObject(\"VehicleDetailsVo1\");\n }", "protected View getCompartmentView() {\n\t\tView view = (View) getDecoratorTarget().getAdapter(View.class);\r\n\t\tIterator it = view.getPersistedChildren().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tView child = (View) it.next();\r\n\t\t\tif (child.getType().equals(DeployCoreConstants.HYBRIDLIST_SEMANTICHINT)) {\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getViewName() {\n return viewName;\n }", "@Override\r\n\tpublic View getContentView() {\n\t\treturn contentView;\r\n\t}", "public AddSingleStatsView getView(){\r\n\t\treturn view;\r\n\t}", "ImageView getView() {\n return view;\n }", "public RoomView getRoomView() {\n\t\treturn roomView;\n\t}", "public Rect getRootViewRectDips() {\n return this.mRootViewRectDips;\n }", "public T getViewDataBinding() {\n return mViewDataBinding;\n }", "public ViewObjectImpl getStatesVo1() {\n return (ViewObjectImpl) findViewObject(\"StatesVo1\");\n }", "public interviewersImpl getinterviewers1() {\n return (interviewersImpl) findViewObject(\"interviewers1\");\n }", "private View getCachedView() {\n if (mCachedItemViews.size() != 0) {\n return mCachedItemViews.removeFirst();\n }\n return null;\n }", "public View getView() {\n // Create view lazily only once it's needed\n if (this.furnitureView == null) {\n this.furnitureView = this.viewFactory.createFurnitureView(this.home, this.preferences, this);\n }\n return this.furnitureView;\n }", "public java.lang.String getViewName() {\r\n return viewName;\r\n }", "@CheckForNull\n View getView(String viewName);", "public ViewObjectImpl getInterviewerDataVO1() {\n return (ViewObjectImpl) findViewObject(\"InterviewerDataVO1\");\n }", "public final String getViewName() {\n\t\treturn viewName;\n\t}", "@Override\n public View getView() {\n return mView;\n }", "public GraphView getGraphView() {\n return this.graphView;\n }", "public interface ViewNode extends Scope {\n\n /**\n * Gets the name associated with this node.\n * @return name or {@code null} if none was specified\n */\n String getName();\n\n /**\n * Gets the namespace associated with this node.\n * @return namespace or {@code null} if none was specified\n */\n String getNamespace();\n\n /**\n * Gets the model type associated with this node.\n * @return model type or {@code null} if none was specified\n */\n Class<?> getModelType();\n\n /**\n * Gets the parent of this view node.\n * @return parent node or {@code null} if this node has no parent\n */\n ViewNode getParent();\n\n}", "public int getFieldOfView() {\r\n\t\treturn fieldOfView;\r\n\t}", "public DialogView getView() {\n // Create view lazily only once it's needed\n if (this.home3DAttributesView == null) {\n this.home3DAttributesView = this.viewFactory.createHome3DAttributesView(\n this.preferences, this); \n }\n return this.home3DAttributesView;\n }", "Object getViewDetails();", "public VBox getVBox() {\n\t\treturn vBox;\n\t}", "public ConsultoresView getVista() {\n\t\treturn vista;\n\t}", "ViewMap<IBranchMapping> getView();" ]
[ "0.6420159", "0.62273675", "0.6094455", "0.60829043", "0.59104425", "0.5853657", "0.5852296", "0.58431464", "0.5835153", "0.5833", "0.57414395", "0.5730816", "0.5722318", "0.57190025", "0.57029986", "0.5679708", "0.567657", "0.5664504", "0.5627373", "0.5616111", "0.5596672", "0.55934006", "0.5576244", "0.55512077", "0.5526972", "0.5522141", "0.54870373", "0.5473038", "0.5472745", "0.5442356", "0.5432928", "0.54201764", "0.541558", "0.5408667", "0.54076177", "0.53769577", "0.5373699", "0.53565097", "0.5353264", "0.5346976", "0.5337476", "0.5337476", "0.53339726", "0.53130174", "0.5293904", "0.5293904", "0.5293904", "0.5286064", "0.52570397", "0.5252322", "0.5248717", "0.52434635", "0.52420676", "0.52316225", "0.522021", "0.5218997", "0.5213437", "0.5204993", "0.52019477", "0.51895905", "0.51807", "0.51769173", "0.5151552", "0.5149573", "0.51445836", "0.51396406", "0.5127551", "0.5123187", "0.5120202", "0.5119194", "0.5111001", "0.51070476", "0.51053566", "0.5093948", "0.50847644", "0.5080976", "0.5058036", "0.50531834", "0.5052977", "0.5052056", "0.5051592", "0.504423", "0.5030266", "0.5010084", "0.49992573", "0.49945018", "0.49844685", "0.49745947", "0.49671865", "0.49611148", "0.49481216", "0.49358928", "0.49335632", "0.49328178", "0.4932474", "0.4927069", "0.49264", "0.4924465", "0.49234575", "0.49099618" ]
0.6173014
2
Returns the value of the 'Super Type' reference.
Entity getSuperType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "EPREFIX_TYPE getSuperType();", "public Type getSuper() {\n\t\treturn superClass;\n\t}", "public String getSuper()\n {\n ensureLoaded();\n return (m_clzSuper == null ? (String) null : m_clzSuper.getValue());\n }", "public String getSuperClass() {\n\t\treturn superField.getText();\n\t}", "public TypeData getSuperClass() {\n return m_superClass;\n }", "public ClassConstant getSuperClassConstant()\n {\n ensureLoaded();\n return m_clzSuper;\n }", "@Override\r\n\tpublic TypeWrapper getSuperClass() {\n\t\treturn null;\r\n\t}", "public default Type getSuperTypeWithSameBaseTypeAs(Type type) throws LookupException {\n return superTypeJudge().get(type);\n }", "public AClass getSuperClass() {\n\t\tif (superClass != null) {\n\t\t\treturn superClass.getRefType();\n\t\t}\n\t\treturn null;\n\t}", "public byte getSubType() {\n return this.subType;\n }", "public int getSuper(TypeReference type) {\n if (type == null) {\n throw new IllegalArgumentException(\"The argument type may not be null\");\n }\n\n int ssa;\n currentScope--;\n assert(currentScope >= 0 );\n ssa = getCurrent(type);\n currentScope++;\n return ssa;\n }", "public String getSubType() {\n return typeString;\n }", "public String getSuperclass() {\n\t\treturn null;\n\t}", "public int getSuperTypeIndex() {\n/* 390 */ return (short)((this.value & 0xFFFF00) >> 8);\n/* */ }", "public int getSubtype() {\r\n return Subtype;\r\n }", "public String getSuperClass(){\n\t\treturn targetClass.superName;\n\t}", "public TypeBinding resolveSuperType(ClassScope scope) {\n\tif (resolveType(scope) == null) return null;\n\n\tif (this.resolvedType.isTypeVariable()) {\n\t\tthis.resolvedType = new ProblemReferenceBinding(getTypeName(), (ReferenceBinding) this.resolvedType, ProblemReasons.IllegalSuperTypeVariable);\n\t\treportInvalidType(scope);\n\t\treturn null;\n\t}\n\treturn this.resolvedType;\n}", "public List<TypeReference> getSuperList() {\n\t\treturn superList;\n\t}", "Rule BaseType() {\n // Push 1 BaseTypeNode onto the value stack\n return Sequence(\n FirstOf(\n \"bool \",\n \"byte \",\n \"i8 \",\n \"i16 \",\n \"i32 \",\n \"i64 \",\n \"double \",\n \"string \",\n \"binary \",\n \"slist \"),\n actions.pushBaseTypeNode());\n }", "PSObject getTypeReference();", "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.LocationNamedInsured getSubtype();", "@ApiModelProperty(value = \"When sub-classing, this defines the super-class\")\n\n\n public String getBaseType() {\n return baseType;\n }", "@ApiModelProperty(value = \"When sub-classing, this defines the super-class\")\n\n\n public String getBaseType() {\n return baseType;\n }", "public String getType () {\n // Will resolve to specific subclass\n return this.getClass().getSimpleName();\n }", "java.lang.String getSubType();", "public short getTypeOffset()\n {\n return font.getSuperSubScript();\n }", "public final String getSubType() {\n return this.subtype;\n }", "@Override public int getTypeValue() {\n return type_;\n }", "@Override\n public String getFullType() {\n return fullType;\n }", "@Override public int getTypeValue() {\n return type_;\n }", "public type getType() {\r\n\t\treturn this.Type;\r\n\t}", "public String getSuperClassName() {\n if (m_superClass == null) {\n return m_superName;\n } else {\n return m_superClass.getFullName();\n }\n }", "public Integer getSuperclass() {\n return superclass;\n }", "public String getRefType() {\n return refType;\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public String getSubtype () {\n return subtype;\n }", "public void addSuperType(TypeReference superType) {\n\t\tif (superList == null) superList = new ArrayList<TypeReference>();\n\t\tsuperList.add(superType);\n\t}", "public String getSubtype () {\n return subtype;\n }", "public String getSubSubType() {\r\n\t\treturn subSubType;\r\n\t}", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static final kotlin.reflect.jvm.internal.impl.types.KotlinType getSupertypeRepresentative(@org.jetbrains.annotations.NotNull kotlin.reflect.jvm.internal.impl.types.KotlinType r2) {\n /*\n java.lang.String r0 = \"$this$getSupertypeRepresentative\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0)\n kotlin.reflect.jvm.internal.impl.types.UnwrappedType r0 = r2.unwrap()\n boolean r1 = r0 instanceof kotlin.reflect.jvm.internal.impl.types.SubtypingRepresentatives\n if (r1 != 0) goto L_0x000e\n r0 = 0\n L_0x000e:\n kotlin.reflect.jvm.internal.impl.types.SubtypingRepresentatives r0 = (kotlin.reflect.jvm.internal.impl.types.SubtypingRepresentatives) r0\n if (r0 == 0) goto L_0x0019\n kotlin.reflect.jvm.internal.impl.types.KotlinType r0 = r0.getSuperTypeRepresentative()\n if (r0 == 0) goto L_0x0019\n r2 = r0\n L_0x0019:\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.types.TypeCapabilitiesKt.getSupertypeRepresentative(kotlin.reflect.jvm.internal.impl.types.KotlinType):kotlin.reflect.jvm.internal.impl.types.KotlinType\");\n }", "public String getSupEntType() {\n return supEntType;\n }", "@java.lang.Override public int getTypeValue() {\n return type_;\n }", "public String getParentType() {\n return this.parentType;\n }", "String getReferenceType();", "public java.lang.String getSuperCUGCodeProp()\n\t{\n\t\treturn superCUGCodeProp;\n\t}", "@java.lang.Override\n public java.lang.String getSubType() {\n java.lang.Object ref = subType_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n subType_ = s;\n return s;\n }\n }", "@Override\n\tpublic T getType() {\n\t\treturn this.type;\n\t}", "String getSType();", "public String getrType() {\n return rType;\n }", "@java.lang.Override public int getTypeValue() {\n return type_;\n }", "public Type getType1() {\n\t\treturn this.data.getType1();\n\t}", "public java.lang.String getSubType() {\n java.lang.Object ref = subType_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n subType_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public BCClass getSuperClass() {\n\t\tif (superClass != null) {\n\t\t\treturn superClass;\n\t\t}\n\t\tsuperClass = JavaApplication.Application.getClass(superClassName);\n\t\treturn superClass;\n\t}", "@Override\n public String getType() {\n return super.getType().toLowerCase();\n }", "@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}", "public int getType() {\n\t\treturn 1;\r\n\t}", "public String obtenirType() {\n\t\treturn this.type;\n\t}", "public Type type() {\n if (local() != null && local().squawkIndex() != -1) {\n return local().type();\n }\n else {\n return super.type();\n }\n }", "TypeRef getType();", "public TYPE SemantMe() {\n\t\tSYM_TABLE sym_table = SYM_TABLE.getInstance();\n\t\t\n\t\t// Lookup the name\n\t\tTYPE t = sym_table.find(this.type);\n\t\t// Check it\n\t\tif (t == null || !t.isTypeName())\n\t\t {\n\t\t\t// Code bug -- type given does not exist in table or just is not a name a of a type\n\t\t\treport_error();\n\t\t }\n\t\t\t// Its fine, declare it\n\t\treturn new TYPE_VAR_DEC(t.name,this.name);\n }", "public Type getType(){\n\t\treturn this.type;\n\t}", "protected TypeRef() {\n Type superclass = getClass().getGenericSuperclass();\n if (!(superclass instanceof ParameterizedType)) {\n throw new RuntimeException(\"Missing type parameter.\");\n }\n ParameterizedType parameterized = (ParameterizedType) superclass;\n\n type_ = parameterized.getActualTypeArguments()[0];\n }", "public int getType() {\r\n\t\treturn (type);\r\n\t}", "public int getTypeValue() {\n return type_;\n }", "@Override\n\tpublic String getType() {\n\t\treturn this.type;\n\t}", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public static TypeReference newSuperTypeReference(int itfIndex) {\n/* 255 */ itfIndex &= 0xFFFF;\n/* 256 */ return new TypeReference(0x10000000 | itfIndex << 8);\n/* */ }", "public int getTypeValue() {\n\t\t\t\t\treturn type_;\n\t\t\t\t}", "public Type getType();", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }" ]
[ "0.7583951", "0.7395159", "0.72118175", "0.71605116", "0.66004235", "0.6519748", "0.6501928", "0.64933395", "0.6467364", "0.6366482", "0.63571924", "0.63566035", "0.63310444", "0.6308957", "0.63037", "0.63007843", "0.624845", "0.6207335", "0.6157113", "0.6152443", "0.6145007", "0.6130876", "0.6130876", "0.6104892", "0.60703826", "0.6065234", "0.60592943", "0.60571957", "0.6056102", "0.60527915", "0.6038045", "0.6031366", "0.60251355", "0.6003192", "0.5970922", "0.5970922", "0.5970922", "0.5970922", "0.5970922", "0.5970922", "0.5970922", "0.5970922", "0.5970922", "0.5970922", "0.5970922", "0.5970922", "0.5970922", "0.5965704", "0.59501755", "0.5945414", "0.5913841", "0.588107", "0.588107", "0.58791786", "0.58791786", "0.5847398", "0.5841043", "0.58368033", "0.583476", "0.5826942", "0.58193314", "0.58187264", "0.58146846", "0.5807989", "0.580324", "0.57969606", "0.5794142", "0.57676303", "0.57653564", "0.5757677", "0.5755084", "0.5752919", "0.5750331", "0.57461053", "0.5742453", "0.5740112", "0.5739242", "0.5731108", "0.5730306", "0.57239985", "0.572367", "0.5715332", "0.5715332", "0.5715332", "0.5715332", "0.5715332", "0.5715332", "0.5715332", "0.5715332", "0.5715332", "0.5715332", "0.5715332", "0.5715332", "0.5715332", "0.57149315", "0.5714688", "0.5714474", "0.56984156", "0.56984156", "0.56984156" ]
0.6928788
4
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_crop, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
'/this is a switch case problem... consider first reject.. then sort '
interface ScannerAndSorter { // Read and scan another item; return false when there are no more // items. boolean nextItem(); // Percentage (0-100) of the current item that's red. double redPercentage(); // Percentage (0-100) of the current item that's green. double greenPercentage(); // Send the current item to the Red bin void sendToRed(); // Send the current item to the Green bin void sendToGreen(); // Send the current item to the Reject bin void reject(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n\n List<Integer> a = range(3, 19).mapToObj(Integer::valueOf).collect(toList());\n a.sort((x, y) -> (x - y));\n// System.out.println(a);\n\n List<List<String>> QUICK_THREE_OPTIONS = new ArrayList<>();\n //空 0\n QUICK_THREE_OPTIONS.add(new ArrayList<>());\n //和值 1\n final List<String> sumOptions = range(3, 19).mapToObj(String::valueOf).collect(toList());\n QUICK_THREE_OPTIONS.add(sumOptions);\n //三同号 2\n final List<String> threeSameOptions = range(1, 7).mapToObj(i -> nTimes(i, 3)).collect(toList());\n threeSameOptions.add(\"3A\");\n QUICK_THREE_OPTIONS.add(threeSameOptions);\n //二同号 3\n final List<String> twoSameOptions = range(1, 7).mapToObj(i -> nTimes(i, 2)).collect(toList());\n twoSameOptions.addAll(range(1, 7).mapToObj(String::valueOf).collect(toList()));\n twoSameOptions.addAll(range(1, 7).mapToObj(i -> nTimes(i, 2) + \"*\").collect(toList()));\n QUICK_THREE_OPTIONS.add(twoSameOptions);\n //三不同 4\n final List<String> threeDifferent = range(1, 7).mapToObj(String::valueOf).collect(toList());\n threeDifferent.add(\"3B\");\n QUICK_THREE_OPTIONS.add(threeDifferent);\n //二不同 5\n final List<String> twoDifferent = range(1, 7).mapToObj(String::valueOf).collect(toList());\n QUICK_THREE_OPTIONS.add(twoDifferent);\n\n// System.out.println(QUICK_THREE_OPTIONS);\n\n List<List<String>> ELEVEN_C_FIVE_OPTIONS = new ArrayList<>();\n\n //组合选项\n ELEVEN_C_FIVE_OPTIONS.add(IntStream.range(1, 12).mapToObj(i -> String.format(\"%02d\", i)).collect(toList()));\n //前二直选\n final List<String> frontTwoDirect = new ArrayList<>();\n frontTwoDirect.addAll(IntStream.range(1, 12).mapToObj(i -> \"a\" + String.format(\"%02d\", i)).collect(toList()));\n frontTwoDirect.addAll(IntStream.range(1, 12).mapToObj(i -> \"b\" + String.format(\"%02d\", i)).collect(toList()));\n ELEVEN_C_FIVE_OPTIONS.add(frontTwoDirect);\n //前三直选\n final List<String> frontThreeDirect = new ArrayList<>();\n frontThreeDirect.addAll(IntStream.range(1, 12).mapToObj(i -> \"a\" + String.format(\"%02d\", i)).collect(toList()));\n frontThreeDirect.addAll(IntStream.range(1, 12).mapToObj(i -> \"b\" + String.format(\"%02d\", i)).collect(toList()));\n frontThreeDirect.addAll(IntStream.range(1, 12).mapToObj(i -> \"c\" + String.format(\"%02d\", i)).collect(toList()));\n ELEVEN_C_FIVE_OPTIONS.add(frontThreeDirect);\n\n final int TWENTY_C_FIVE_SAN_GUO_SHI_LI = 1;\n final int TWENTY_C_FIVE_SAN_GUO_FIVE = 2;\n final int TWENTY_C_FIVE_SAN_GUO_EIGHT = 3;\n final int TWENTY_C_FIVE_SAN_GUO_FRONT_THREE_DIRECT = 4;\n final List<List<String>> TWENTY_C_FIVE_SAN_GUO_OPTIONS = new ArrayList<>();\n\n //势力选择\n TWENTY_C_FIVE_SAN_GUO_OPTIONS.add(IntStream.range(1, 4).mapToObj(i -> String.format(\"%02d\", i)).collect(toList()));\n //组合选项\n final List<String> group = new ArrayList<>();\n group.addAll(IntStream.range(1, 21).mapToObj(i -> \"a\" + String.format(\"%02d\", i)).collect(toList()));\n group.addAll(IntStream.range(1, 4).mapToObj(i -> \"b\" + String.format(\"%02d\", i)).collect(toList()));\n TWENTY_C_FIVE_SAN_GUO_OPTIONS.add(group);\n //前三直选\n final List<String> frontThreeDirect1 = new ArrayList<>();\n frontThreeDirect1.addAll(IntStream.range(1, 21).mapToObj(i -> \"a\" + String.format(\"%02d\", i)).collect(toList()));\n frontThreeDirect1.addAll(IntStream.range(1, 21).mapToObj(i -> \"b\" + String.format(\"%02d\", i)).collect(toList()));\n frontThreeDirect1.addAll(IntStream.range(1, 21).mapToObj(i -> \"c\" + String.format(\"%02d\", i)).collect(toList()));\n frontThreeDirect1.addAll(IntStream.range(1, 4).mapToObj(i -> \"d\" + String.format(\"%02d\", i)).collect(toList()));\n TWENTY_C_FIVE_SAN_GUO_OPTIONS.add(frontThreeDirect1);\n\n// System.out.println(ELEVEN_C_FIVE_OPTIONS);\n\n List<String> s = new ArrayList<>();\n s.add(\"3\");\n s.add(\"5\");\n s.add(\"6\");\n s.add(\"7\");\n s.add(\"9\");\n// s.add(\"11\");\n// System.out.println(c);\n List<List<String>> s1 = new ArrayList<>();\n s1.add(s);\n List<String> targetNumbers = s1.stream().map(l -> join(l, \",\")).collect(toList());\n\n// System.out.println(getPermutationXSrcLists(s, 2, true));\n\n long tl = computeElevenCFiveGroup(targetNumbers.get(0));\n// System.out.println(tl);\n System.out.println(TWENTY_C_FIVE_SAN_GUO_OPTIONS);\n\n }", "public String doSort();", "public void sortMatches();", "public String getMessageSort();", "private static void sort(String[] a, int lo, int hi, int d) { \n if (hi <= lo + CUTOFF) {\n insertion(a, lo, hi, d);\n return;\n }\n int lt = lo;\n int gt = hi;\n int v = charAt(a[lo], d);\n int i = lo + 1;\n while (i <= gt) {\n int t = charAt(a[i], d);\n if (t < v) {\n \texch(a, lt++, i++);\n }\n else if (t > v) {\n \texch(a, i, gt--);\n }\n else {\n \ti++;\n }\n }\n //a[lo..lt-1] < v = a[lt..gt] < a[gt+1..hi]. \n sort(a, lo, lt-1, d);\n if (v >= 0) sort(a, lt, gt, d+1);\n sort(a, gt+1, hi, d);\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "public void sortKnowledgeBase()\n {\n int i;\n Random random;\n String aPredicate;\n StringTokenizer tokenizer;\n //------------\n random = new Random();\n i = 0;\n while (i < knowledgeBase.size())\n {\n aPredicate = knowledgeBase.get(i).commitments.get(0).predicate;\n tokenizer = new StringTokenizer(aPredicate,\"(), \");\n if(tokenizer.nextToken().equals(\"secuencia\"))\n knowledgeBase.get(i).priority = random.nextInt(100);\n //end if\n else\n knowledgeBase.get(i).priority = random.nextInt(10000);\n //end else\n i = i + 1;\n }//end while\n Collections.sort(knowledgeBase);\n }", "private Rule[] sortRules(Rule[] rules){\n \t\t\n \t\tArrayList<Rule> temp = new ArrayList<Rule>();\n \t\t\n \t\tfor(int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\ttemp.add(rules[i]);\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\ttemp.add(rules[i]);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\tRule[] newRules = new Rule[temp.size()];\t\t\n \t\treturn temp.toArray(newRules);\n \t}", "public void sortCompetitors(){\n\t\t}", "@Test\n\tpublic void testSortSimpleCapitalNumberWithNumFlagOn() throws SortException {\n\t\tString[] input = new String[] { \"ap1EE\", \"100aPp1e\", \"66p3aR\", \"1Pear\", \"p3Arr\" };\n\t\tList<String> arrayList = sortApplication.sortSimpleCapitalNumberWithNumFlagOn(input);\n\t\tassertEquals(\"1Pear\", arrayList.get(0));\n\t\tassertEquals(\"66p3aR\", arrayList.get(1));\n\t\tassertEquals(\"100aPp1e\", arrayList.get(2));\n\t\tassertEquals(\"ap1EE\", arrayList.get(3));\n\t\tassertEquals(\"p3Arr\", arrayList.get(4));\n\t}", "private static void sortingOptions(ArrayList<Person> p) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Person> personList = p;\n\t\tboolean again = true;\n\t\twhile (again) {\n\t\t\tagain = false;\n\t\t\tSystem.out.println(\"Ascending or descending?\\n\" + \"1: Ascending\\n\" + \"2: Descending\");\n\t\t\tint input = scan.nextInt();\n\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tprintDataFormat(personList);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tCollections.reverse(personList);\n\t\t\t\tprintDataFormat(personList);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tagain = true;\n\t\t\t\tSystem.out.println(\"Enter either 1 or 2\");\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}", "private static void printSwitchCase(Node oroot, int i,String s, ArrayList<Token> list, String p) {\n\t\tString taps =\"\";\n\t\tfor(int k = 0; k<i+2; k++){\t// get how many taps at front of each line.\n\t\t\ttaps +=\"\\t\";\n\t\t}\n\t\tif(oroot.children.size() == 0){\t\t// if node does not have sub node, this means it is most inner case,return\n\t\t\tSystem.out.println(taps+\"switch(s[index + \"+ i +\"]){\");\n\t\t\tSystem.out.println(taps+\"default:return new Token(\"+\"Token.Tag.\"+getTag(s,list)+\", \\\"\"+s+\"\\\",0);\");\n\t\t\tSystem.out.println(taps+\"}\");\n\t\t\treturn;\n\t\t}\n\t\tString temp =\"\"; // remember each level's char\n\t\tString prob =p;\t// get possible match. for example, when reading <<, but the prob will still be <.\n\t\tif(oroot.children.size()!= 0){\n\t\t\tSystem.out.println(taps+\"switch(s[index + \"+ i +\"]){\");\n\t\t\tfor(int j = 0;j<oroot.children.size(); j++){\n\t\t\t\ttemp = s;\n\t\t\t\tprob = bestMatch(s,list); // find the best match possible\n\t\t\t\ts += oroot.children.get(j).current;\t\n\t\t\t\tif(prob.length() == 0){\n\t\t\t\t\tprob = p;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(taps+\"case '\"+oroot.children.get(j).current+\"':\");\n\t\t\t\tint m = j;\n\t\t\t\tint n = i;\n\t\t\t\ti++; // get deep into level\n\t\t\t\tprintSwitchCase(oroot.children.get(j), i,s, list,prob);\n\t\t\t\t\n\t\t\t\ts = temp;\t// make sure it string s be previous level s\n\t\t\t\tj = m;\n\t\t\t\ti = n;\n\t\t\t}\n\t\t\tif(i!=0){// if it is not first level\n\t\t\t\tif(prob.equals(\"\")){\t// if possible match is empty string, means null, no possible match.\n\t\t\t\t\tSystem.out.println(taps+\"default:return null;\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(taps+\"default:return new Token(\"+\"Token.Tag.\"+getTag(prob,list)+\", \\\"\"+prob+\"\\\",0);\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(taps+\"}\");\n\t\t\t}\n\t\t}\t\n\t}", "private void sort()\n {\n // This implements Shell sort.\n // Unfortunately we cannot use the sorting functions from the library\n // (e.g. java.util.Arrays.sort), since the ones that work on int\n // arrays do not accept a comparison function, but only allow\n // sorting into natural order.\n int jump = length;\n boolean done;\n \n while( jump>1 ){\n jump /= 2;\n \n do {\n done = true;\n \n for( int j = 0; j<(length-jump); j++ ){\n int i = j + jump;\n \n if( !areCorrectlyOrdered( indices[j], indices[i] ) ){\n // Things are in the wrong order, swap them and step back.\n int tmp = indices[i];\n indices[i] = indices[j];\n indices[j] = tmp;\n done = false;\n }\n }\n } while( !done );\n }\n \n // TODO: integrate this with the stuff above.\n for( int i=1; i<length; i++ ){\n commonality[i] = commonLength( indices[i-1], indices[i] );\n }\n commonality[0] = -1;\n }", "private Collection sortByComplexity(Collection patterns) {\n TreeSet sortedPatterns = new TreeSet(new Comparator() {\n public int compare(Object o1, Object o2) {\n int result = complexity(o1.toString()) - complexity(o2.toString());\n if (result == 0) {\n //The two patterns have the same level of complexity.\n //Sort by order of appearance (e.g. to resolve\n //MM/dd/yyyy vs dd/MM/yyyy [Jon Aquino]\n result = ((Pattern) o1).index - ((Pattern) o2).index;\n }\n return result;\n }\n \n private TreeSet uniqueCharacters = new TreeSet();\n \n private int complexity(String pattern) {\n uniqueCharacters.clear();\n \n for (int i = 0; i < pattern.length(); i++) {\n if ((\"\" + pattern.charAt(i)).trim().length() > 0) {\n uniqueCharacters.add(\"\" + pattern.charAt(i));\n }\n }\n \n return uniqueCharacters.size();\n }\n });\n sortedPatterns.addAll(patterns);\n \n return sortedPatterns;\n }", "@Test\n\tpublic void testSortAllNumFlagOn() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortAllWithNumFlagOn(inputArr1);\n\t\tassertEquals(\"#B@n@n0\", arrayList.get(0));\n\t\tassertEquals(\"20 B*anana\", arrayList.get(1));\n\t\tassertEquals(\"100 B*anana\", arrayList.get(2));\n\t\tassertEquals(\"P3@r\", arrayList.get(3));\n\t\tassertEquals(\"p3@R\", arrayList.get(4));\n\t}", "public static void testSort() {\n\t\tint[] test = {-1,-2,-3,4,1,3,0,3,-2,1,-2,2,-1,1,-5,4,-3};\n\t\tArrays.sort(test);\n\t\tfor (int e : test) {\n\t\t\tSystem.out.print(e + \", \");\n\t\t}\n\t}", "@Test\n\tpublic void testSortSimpleCapitalSpecialChars() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortSimpleCapitalSpecialChars(inputArr4);\n\t\tassertEquals(\"!Pear\", arrayList.get(0));\n\t\tassertEquals(\"!peAR\", arrayList.get(1));\n\t\tassertEquals(\"!peAr\", arrayList.get(2));\n\t\tassertEquals(\"APpl^\", arrayList.get(3));\n\t\tassertEquals(\"Appl^\", arrayList.get(4));\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "private void postProcessOrdering(List<String> ss) {\n\n String arg = \"-XX:+UnlockDiagnosticVMOptions\";\n int index = ss.indexOf(arg);\n\n // if < 0, it isn't here. if == 0 then it's already in the right position\n if (index > 0) {\n ss.remove(index);\n ss.add(0, arg);\n }\n }", "public static void main(String[] args) {\n \t\tsortTest(\"\");\n \t\tsortTest(\"A\");\n \t\tsortTest(\"HE\");\n \t\tsortTest(\"HEA\");\n \t\tsortTest(\"HEAPS\");\n \t\tsortTest(\"HEAPSORT\");\n\t\tsortTest(\"HEAPSORTEXAMPLE\");\n\t\tsortTest(\"QUICK\");\n\t\tsortTest(\"QUICKS\");\n\t\tsortTest(\"QUICKSO\");\n\t\tsortTest(\"QUICKSORT\");\n\t\tsortTest(\"QUICKSORTEXAMPLE\");\n\n\t\tsortTest(\"bottomupmergesortconsistsofasequenceofpassesoverthewholearray\");\n\t\tsortTest(\"thefirststepinastudyofcomplexityistoestablishamodelofcomputation.generally,researchersstrivetounderstandthesimplestmodelrelevanttoaproblem.\");\n }", "private void caseFirstCompressionSub(RuleBasedCollator col, String opt) {\n final int maxLength = 50;\n\n StringBuilder buf1 = new StringBuilder();\n StringBuilder buf2 = new StringBuilder();\n String str1, str2;\n\n for (int n = 1; n <= maxLength; n++) {\n buf1.setLength(0);\n buf2.setLength(0);\n\n for (int i = 0; i < n - 1; i++) {\n buf1.append('a');\n buf2.append('a');\n }\n buf1.append('A');\n buf2.append('a');\n\n str1 = buf1.toString();\n str2 = buf2.toString();\n\n CollationKey key1 = col.getCollationKey(str1);\n CollationKey key2 = col.getCollationKey(str2);\n\n int cmpKey = key1.compareTo(key2);\n int cmpCol = col.compare(str1, str2);\n\n if ((cmpKey < 0 && cmpCol >= 0) || (cmpKey > 0 && cmpCol <= 0) || (cmpKey == 0 && cmpCol != 0)) {\n errln(\"Inconsistent comparison(\" + opt + \"): str1=\" + str1 + \", str2=\" + str2 + \", cmpKey=\" + cmpKey + \" , cmpCol=\" + cmpCol);\n }\n }\n }", "private static void selectionSort(String[] numbers) {\n for (int top = numbers.length-1; top > 0; top-- ) {\n int maxloc = 0;\n for (int i = 1; i <= top; i++) {\n if (numbers[i].compareTo(numbers[maxloc]) > 0)\n maxloc = i;\n }\n String temp = numbers[top];\n numbers[top] = numbers[maxloc];\n numbers[maxloc] = temp;\n }\n }", "public void sortSubstrateSwitch() {\n\t\tCollections.sort(this.listNode, new Comparator<SubstrateSwitch>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SubstrateSwitch o1, SubstrateSwitch o2) {\n\n\t\t\t\tif (o1.getType() > o2.getType())\n\t\t\t\t\treturn -1;\n\t\t\t\tif (o1.getType() < o2.getType())\n\t\t\t\t\treturn 1;\n\t\t\t\tif (o1.getType() == o2.getType()) {\n\t\t\t\t\tif (o1.getCpu() < o2.getCpu()) {\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (o1.getCpu() > o2.getCpu()) {\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t}", "public static void main(String arg[])\n {\n\tScanner sc=new Scanner(System.in);\n\tSystem.out.println(\"How many no you are goinig to enter?\");\n\tint value =sc.nextInt();\n\tString arr[]= new String[value];\n for(int k=0;k<value;k++)\n\t{\n \tarr[k]=sc.next();\n }\n int len=arr.length;\n\n //par2:sort compare\n \tfor(int i=0; i<len;i++)\n\t{\n \tfor(int k=0;k<len-1;k++)\n\t {\t \n\t if(arr[k].compareTo(arr[k+1]) > 0)\n\t {\n\n \t\tString temp=arr[k];\n \t\tarr[k]=arr[k+1];\n \t\tarr[k+1]=temp;\n }\n\t }\n }\n\n//print\n\t for(int l=0;l<len;l++)\n\t {\n\t System.out.println(\" after sort \"+arr[l]+\"\\n\");\n\t }\n\t}", "public static void main(String[] args){\n String[] inputStrings = null;\r\n if (args.length > 0)\r\n inputStrings = args;\r\n else\r\n inputStrings = new String[] {\"mama\", \"mia\", \"here\", \"we\", \"go\", \"again\", \"everyone\"};\r\n\r\n // requested sorts using the stream() API\r\n List<String> shortToLong = Arrays.stream(inputStrings)\r\n .sorted()\r\n .collect(Collectors.toList());\r\n\r\n List<String> longToShort = Arrays.stream(inputStrings)\r\n .sorted(Comparator.reverseOrder())\r\n .collect(Collectors.toList());\r\n\r\n List<String> alphabeticalFirst = Stream.of(inputStrings)\r\n .sorted(Comparator\r\n .comparingInt(str -> Character.toLowerCase(str.charAt(0))))\r\n .collect(Collectors.toList());\r\n\r\n Arrays.sort(inputStrings, (str1, str2) -> {\r\n if (str1.charAt(0) == 'e' && str2.charAt(0) == 'e') { return 0; }\r\n else if (str1.charAt(0) == 'e') { return -1; }\r\n else { return 1; }\r\n });\r\n\r\n List<String> eFirst = Arrays.asList(inputStrings);\r\n\r\n\r\n System.out.println(\"\");\r\n for (String s : shortToLong){ System.out.println(s); }\r\n System.out.println(\"\");\r\n for (String s : longToShort){ System.out.println(s); }\r\n System.out.println(\"\");\r\n for (String s : alphabeticalFirst){ System.out.println(s); }\r\n System.out.println(\"\");\r\n for (String s : eFirst){ System.out.println(s); }\r\n System.out.println(\"\");\r\n }", "@Test\n public void testShellSort() throws Exception {\n int[] list = new int[]{49, 38, 65, 97, 76, 13, 27, 49, 55, 4};\n LogUtils.d(list);\n A_10_4_to_10_5.shellSort(list);\n LogUtils.d(list);\n }", "public void stringSelectionSort() {\n int nextMin;\n\n for (int i = 0; i < StringList.length - 1; i++) {\n nextMin = i;\n for (int j = i + 1; j < StringList.length; j++) {\n if (StringList[j].compareTo(StringList[nextMin]) < 0)\n nextMin = j;\n }\n if (nextMin != i)\n swapSelectionStrings(StringList, i, nextMin);\n }\n }", "private static String fixSorts(String strIn){\r\n\t // get a matcher object\r\n\t matches = ptrnNumbers.matcher(strIn);\r\n\t while (matches.find()){\r\n\t \tstrIn = strIn.substring(0,matches.start())+\" \"+strPrepend+strIn.substring(matches.start()+1);\r\n\t }\r\n\t //System.out.println(\">>>\"+strIn);\r\n\t\treturn strIn;\r\n\t}", "public static String sortChars(String str, int type) {\n\t\n\tString nums = \"\";\n\tString lowerCase = \"\";\n\tString upCase = \"\";\n\tString others = \"\";\n\tint ctr = 0;\n\tString newStr = \"\";\n\tint min;\n\tint k = 0;\n\tif(type == 0) {\n\t\tfor( int i = 0; i < str.length(); i++) {\n\t\t\tmin = 128;\n\t\t\tfor( int j = 0; j < str.length(); j++) {\n\t\t\t\tif( str.charAt(j) >= ctr ) {\n\t\t\t\t\tmin = Math.min( min, (int)str.charAt(j) );\n\t\t\t\t\tif( min == (int)str.charAt(j)) {\n\t\t\t\t\t\tk = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\tstr = str.substring(0, k) + (char)127 + str.substring(k+1);\n\t\t\tctr = min;\n\t\t\tnewStr += (char)ctr;\n\t\t\t\n\t\t}\n\t}\n\t\n\telse if(type == 1) {\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\t\n\t\t\tif('0' <= str.charAt(i) && str.charAt(i) <= '9')\n\t\t\t\tnums += str.charAt(i);\n\t\t\telse if('a' <= str.charAt(i) && str.charAt(i) <= 'z')\n\t\t\t\tlowerCase += str.charAt(i);\n\t\t\telse if('A' <= str.charAt(i) && str.charAt(i) <= 'Z')\n\t\t\t\tupCase += str.charAt(i);\n\t\t\telse\n\t\t\t\tothers += str.charAt(i);\n\t\t\t\n\t\t\t}\n\t\tnewStr = lowerCase + upCase + nums + others;\n\t\t}\n\treturn newStr;\n\t\n\t}", "static String[] sortedAcceptLang(final String acceptLang) {\n \n if (acceptLang == null || acceptLang.equals(\"\")) { throw new IllegalArgumentException(\"acceptLang must be a non-empty string.\"); }\n \n final StringTokenizer tokenizer = new StringTokenizer(acceptLang, \",\");\n final HashMap weightedLangs = new HashMap();\n \n while (tokenizer.hasMoreTokens()) {\n final String token = tokenizer.nextToken();\n String lang = token;\n boolean ignore = false;\n String weight = \"1.0\";\n int index;\n \n /* Language and weighting are devided by \";\". */\n if ((index = token.indexOf(\";\")) != -1) {\n String parsedWeight;\n lang = token.substring(0, index);\n \n /* Weight data. */\n parsedWeight = token.substring(index + 1, token.length());\n parsedWeight = parsedWeight.trim();\n if (parsedWeight.startsWith(\"q=\")) {\n parsedWeight = parsedWeight.substring(2, parsedWeight.length());\n weight = parsedWeight;\n } else {\n /* Format error, flag to ignore token. */\n ignore = true;\n }\n }\n \n if (!ignore) {\n lang = lang.trim();\n \n /* Country and language is devided by \"-\" (optional). */\n if ((index = lang.indexOf(\"-\")) != -1) {\n lang = lang.substring(index + 1, lang.length());\n }\n \n weightedLangs.put(weight, lang);\n }\n }\n \n final Vector sortedLangs = new Vector();\n final String[] sortedKeys = (String[]) weightedLangs.keySet().toArray(new String[weightedLangs.size()]);\n Arrays.sort(sortedKeys, Collections.reverseOrder());\n \n for (int i = 0; i < sortedKeys.length; i++) {\n sortedLangs.add(weightedLangs.get(sortedKeys[i]));\n }\n \n return (String[]) sortedLangs.toArray(new String[sortedLangs.size()]);\n }", "public static void FoodSorter(String food){\n\tString NewFood = food;\n\tString Foodbytime[]= {\"Breakfast\", \"Lunch\", \"Dinner\"};\n\t\n\tfor(int i =0;i<=Foodbytime.length-1;i++){\n\t\tif(NewFood.equals(Foodbytime[i])){\n\t\t\tif(Foodbytime[i].equals(Foodbytime[0])){\n\t\t\t\tBreakfast.BreakfastDecider();\n\t\t\t\t\t\t\t\t\t}\n\t\t\telse\t\t\t\t\t\t\t\n\t\t\tif(Foodbytime[i].equals(Foodbytime[1])){\n\t\t\t\tLunch.LunchDecider();\n\t\t\t\t\t\t\t\t\t}\n\t\t\telse\n\t\t\tif(Foodbytime[i].equals(Foodbytime[2])){\n\t\t\t\tDinner.DinnerDecider();\n\t\t\t\t\t\t\t\t\t}\t\n\t\t\n\t}\n\t\n}\n}", "void sortV();", "@Test\n\tpublic void testSortCapitalNumbersWithNumFlagOn() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortCapitalNumberswithNumFlagOn(inputArr10);\n\t\tassertEquals(\"1APP1E\", arrayList.get(0));\n\t\tassertEquals(\"8FE\", arrayList.get(1));\n\t\tassertEquals(\"25DAA\", arrayList.get(2));\n\t\tassertEquals(\"30F3B\", arrayList.get(3));\n\t\tassertEquals(\"100APP13\", arrayList.get(4));\n\t}", "public static void main(String[] args) {\n String [] folge = {\"ab\",\"cd\", \"aa\"};\n new SortierenBeiEinfugen().sortiereAbsteigend(folge);\n System.out.println(Arrays.toString(folge));\n new SortierenBeiEinfugen().sortiereAufsteigend(folge);\n System.out.println(Arrays.toString(folge));\n\n\n\n\n\n\n int[] feld = {2,8,5,6,3,1,4,7};\n\n int countVergleich=0;\n int countTausch = 0;\n for (int i = 0; i < feld.length; i++) {\n for (int j = i; j > 0 ; j--) {\n countVergleich++;\n if (feld[j - 1]>(feld[j]) ) {\n int temp = feld[j];\n feld[j] = feld[j - 1];\n feld[j - 1] = temp;\n countTausch++;\n } else {\n System.out.println(countVergleich);\n System.out.println(countTausch);\n break;\n }\n }\n }\n }", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "private void basicLambdas1(String[] list) {\n\t\tArrays.sort(list, (a, b) -> a.length() - b.length());\n\t\tSystem.out.println(\"Sorted by shortest to longest:\");\n\t\tfor (String i : list)\n\t\t\tSystem.out.println(i);\n\t\t// Sort by reverse longest to shortest\n\t\tArrays.sort(list, (a, b) -> b.length() - a.length());\n\t\tSystem.out.println(\"\\nSorted by longest to shortest:\");\n\t\tfor (String i : list)\n\t\t\tSystem.out.println(i);\n\t\t// Sort alphabetically by first character \n\t\tArrays.sort(list, (a, b) -> a.charAt(0) - b.charAt(0));\n\t\tSystem.out.println(\"\\nSorted alphabetically by first character only:\");\n\t\tfor (String i : list)\n\t\t\tSystem.out.println(i);\n\t\t// Strings that contain \"e\" first\n\t\tArrays.sort(list, (a, b) -> (a.contains(\"e\") || a.contains(\"E\") ? 0 : 1) -\n\t\t\t\t(b.contains(\"e\") || b.contains(\"E\") ? 0 : 1));\n\t\tSystem.out.println(\"\\nStrings that contain \\\"e\\\" first:\");\n\t\tfor (String i : list)\n\t\t\tSystem.out.println(i);\n\t\t// Strings that contain \"e\" first\n\t\t// Uses static helper method\n\t\tArrays.sort(list, (a, b) -> detectEHelper(a, b));\n\t\tSystem.out.println(\"\\nStrings that contain \\\"e\\\" first(using helper method):\");\n\t\tfor (String i : list)\n\t\t\tSystem.out.println(i);\n\t}", "public void run()\n { // checking for appropriate sorting algorithm\n \n if(comboAlgorithm.equals(\"Shell Sort\"))\n {\n this.shellSort(randInt);\n }\n \n if(comboAlgorithm.equals(\"Selection Sort\"))\n {\n this.selectionSort(randInt);\n }\n \n if(comboAlgorithm.equals(\"Insertion Sort\"))\n {\n this.insertionSort(randInt);\n }\n if(comboAlgorithm.equals(\"Bubble Sort\"))\n {\n this.bubbleSort(randInt);\n }\n \n }", "private Sort() { }", "static void SPT_rule(List<T_JOB> job) {\n Collections.sort(job);\n }", "public static void main(String[] args)\n\t{\n\t\tSloution6 an =new Sloution6();\n\t\t//Test case1;\n\t\tint[] src = {0,1};\n\t\tint[] ret = an.sortArrayByParity1(src);\n\t\tfor(int ch:ret)\n\t\tSystem.out.println(ch);\n\t}", "@Test (priority = 1)\n public void sortAlphabetical(){\n\n for (int i = 0; i < allDepartments.getOptions().size()-1; i++) {\n String current = allDepartments.getOptions().get(i).getText();\n String next = allDepartments.getOptions().get(i+1).getText();\n\n System.out.println(\"comparing: \" + current + \" with \"+ next);\n\n Assert.assertTrue(current.compareTo(next)<=0);\n\n }\n }", "private void somethingIsWrongWithShellSort() {\n try {\n Sorting.shellsort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.shellsort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n\tpublic String sort(String content) {\n\t\treturn null;\n\t}", "public void radixSorting() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString abd = \"The lines are here to sort.\";\n\t\tabd = abd.toLowerCase();\n\t\tabd = abd.substring(0, abd.length()-1);\n\t\tString[] abdArr = abd.split(\" \");\n\t\tList<String> list = Arrays.asList(abdArr);\n\t\tCollections.sort(list, new compare());\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tString fir = list.get(0);\n\t\t//list.remove(0);\n\t\tsb.append(fir.substring(0, 1).toUpperCase() + fir.substring(1) + \" \");\n\t\tfor(int i=1; i< list.size(); i++){\n\t\t\tsb.append(list.get(i) + \" \" );\n\t\t}\n\t\tString result = sb.toString();\n\t\tresult = result.substring(0, result.length()-1);\n\t\tresult = result+ \".\";\n\t\tSystem.out.println(result);\n\t\t\n\t}", "protected void sortCode() {\n for (int i = 1; i < codeCount; i++) {\n int who = i;\n for (int j = i + 1; j < codeCount; j++) {\n if (code[j].getFileName().compareTo(code[who].getFileName()) < 0) {\n who = j; // this guy is earlier in the alphabet\n }\n }\n if (who != i) { // swap with someone if changes made\n SketchCode temp = code[who];\n code[who] = code[i];\n code[i] = temp;\n }\n }\n }", "public static void computeSwitch() { \n\t\t// result[pos-off] += prod % 10;\n\t\tSystem.out.println (\"switch (prod) {\");\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tSystem.out.print (\"case \" + i + \": \");\n\t\t\tif (i%10 != 0) {\n\t\t\t\tSystem.out.print (\"result[iPos] += \" + (i%10) + \";\");\n\t\t\t}\n\t\t\tif ((i / 10) != 0) {\n\t\t\t\tSystem.out.print (\"result[iPosSubOne] += \" + (i/10) + \";\");\n\t\t\t}\n\t\t\tSystem.out.println (\"break;\");\n\t\t}\n\t\tSystem.out.println (\"};\");\n\t\t\n\t\t// middle one\n//\t\tif (result[pos-off] > 9) { // carry internally\n//\t\t\tdo {\n//\t\t\t\tresult[pos-off] -= 10;\n//\t\t\t\tresult[pos-off-1]++;\n//\t\t\t} while (result[pos-off] > 9);\n//\t\t}\n\t\tSystem.out.println (\"switch (result[iPos]) {\");\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tint tens = 10*(i/10);\n\t\t\tif (tens == 0) {\n\t\t\t\tSystem.out.println (\"case \" + i + \": break; \");\n\t\t\t} else {\n\t\t\t\tSystem.out.println (\"case \" + i + \": result[iPosSubOne] += \" + (i/10) + \"; result[iPos] -= \" + tens + \"; break; \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println (\"};\");\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n\tpublic void testSortCapitalNumbersSpecialCharsWithNumFlag() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortCapitalNumbersSpecialCharsWithNumFlagOn(inputArr2);\n\t\tassertEquals(\"&P3AL\", arrayList.get(0));\n\t\tassertEquals(\"6P3@R\", arrayList.get(1));\n\t\tassertEquals(\"6PE@R\", arrayList.get(2));\n\t\tassertEquals(\"30 AP1#E\", arrayList.get(3));\n\t\tassertEquals(\"100 AP1#E\", arrayList.get(4));\n\t\tassertEquals(\"AP1#E\", arrayList.get(5));\n\t\tassertEquals(\"APP1E#\", arrayList.get(6));\n\n\t}", "public void step2(){\n\n Collections.sort(names,(String a,String b) -> {\n return a.compareTo(b);\n });\n }", "public static void sortStringsDictionary( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] newA = a.split(\"\");\n String[] newB = b.split(\"\");\n int min;\n boolean mismatch = false;\n String adif = \"\";\n String bdif = \"\";\n if (a.length() < b.length()) {\n min = a.length();\n } else {\n min = b.length();\n }\n\n for (int i = 0; i < min; i++) {\n if (!newA[i].equals(newB[i])) {\n mismatch = true;\n adif = newA[i];\n bdif = newB[i];\n break;\n\n }\n }\n if (mismatch == false) {\n if(a.length() < b.length()) {\n return true;\n }\n else{\n return false;\n }\n }\n else{\n if(adif.matches(\"[a-zA-Z]\") && !bdif.matches(\"[a-zA-Z]\")) {\n return true;\n }\n else if (bdif.matches(\"[a-zA-Z]\") && !adif.matches(\"[a-zA-Z]\")) {\n return false;\n }\n else if (adif.matches(\"[a-zA-Z]\") && bdif.matches(\"[a-zA-Z]\")){\n //Automates the creation of the custom alphabetical ordering\n ArrayList<String> alph = new ArrayList<String>();\n for (int i = 0; i < 26; i++){\n alph.add(Character.toString(97 + i));\n alph.add(Character.toString(65 + i));\n }\n if (alph.indexOf(adif) < alph.indexOf(bdif)){\n return true;\n }\n else {\n return false;\n }\n }\n else {\n if (adif.compareTo(bdif) > 1) {\n return false;\n }\n else{\n return true;\n }\n\n\n }\n\n }\n\n };\n sortStrings(lst, p);\n }", "public static void main(String[] args) {\n String rijec = \"voooojislav\";\n String sort = sortPjeske(rijec);\n\n System.out.println(sort);\n\n }", "@Test\n\tpublic void testSortSimpleNumbersSpecialCharsWithNumFlagOn() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortSimpleNumbersSpecialCharsWithNumFlagOn(inputArr3);\n\t\tassertEquals(\"&23jan\", arrayList.get(0));\n\t\tassertEquals(\"20 m!n\", arrayList.get(1));\n\t\tassertEquals(\"100 pea*s\", arrayList.get(2));\n\t\tassertEquals(\"chief) 24\", arrayList.get(3));\n\t\tassertEquals(\"jer100 *\", arrayList.get(4));\n\t}", "private static List<String> sort(String a)\n {\n String temp;\n List<String> list = new ArrayList<String>();\n for(int t = 0; t < a.length(); t++)\n {\n list.add(\"\"+a.charAt(t));\n }\n for(int i = 1; i < list.size(); i++)\n {\n for(int j = i ; j > 0; j--)\n {\n if(list.get(j).charAt(0) < list.get(j-1).charAt(0))\n {\n temp = list.get(j);\n list.set(j,list.get(j-1));\n list.set(j-1,temp);\n }\n \n }\n }\n return list;\n }", "@Test\n public void testSortAlgorithm() {\n System.out.println(\"sortAlgorithm\");\n String input = \"8 0 3 1 6 5 -2 4 7\";\n CCGeneticDrift instance = new CCGeneticDrift();\n int expResult = 5;\n int result = instance.sortAlgorithm(input);\n assertEquals(result, expResult);\n }", "static ArrayList<String> powerSet(String s)\n {\n // add your code here\n ArrayList<String> arr = new ArrayList<String>();\n String op = \"\";\n solve(s,op,arr);\n Collections.sort(arr);\n return arr;\n \n }", "public void testSortAndDedup() {\n assertDeduped(List.<String>of(), Comparator.naturalOrder(), 0);\n // test no elements in an integer array\n assertDeduped(List.<Integer>of(), Comparator.naturalOrder(), 0);\n // test unsorted array\n assertDeduped(List.of(-1, 0, 2, 1, -1, 19, -1), Comparator.naturalOrder(), 5);\n // test sorted array\n assertDeduped(List.of(-1, 0, 1, 2, 19, 19), Comparator.naturalOrder(), 5);\n // test sorted\n }", "public static void main(String arg []) {\r\n\t\tint n = 8; //problem size\r\n\t\t\r\n\t\ttestSortingAlgorithm(new Insertion(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new Selection(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new Bubble(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new QuicksortFateful(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new QuicksortCentralElement(n));\r\n\t\t\r\n\t\ttestSortingAlgorithm(new QuicksortMedianOfThree(n));\r\n\t}", "public String handleCase(InputData in) {\n\n List<List<Integer>> straights = Lists.newArrayList();\n \n Collections.sort(in.cards);\n \n for(int card : in.cards) {\n \n List<Integer> shortestStraight = null;\n int shortestStraightLen = Integer.MAX_VALUE;\n \n for( List<Integer> straight : straights) {\n if (straight.get(straight.size() - 1) == card - 1 && straight.size() < shortestStraightLen)\n {\n shortestStraightLen = straight.size();\n shortestStraight = straight;\n }\n }\n \n if (shortestStraight == null) {\n List<Integer> newStraight = Lists.newArrayList();\n newStraight.add(card);\n straights.add(newStraight);\n } else {\n \n shortestStraight.add(card);\n }\n }\n \n int minSize = Integer.MAX_VALUE;\n for( List<Integer> straight : straights) {\n minSize = Math.min(straight.size(), minSize);\n }\n \n return String.format(\"Case #%d: %d\", in.testCase, minSize == Integer.MAX_VALUE ? 0 : minSize);\n \n }", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "public static void selectionSort(int[] data){ \n for (int i = 0; i < data.length; i++) {\n\t int placeholder = 0;\n\t for( int j = i; j < data.length; j++) {\n\t if (data[j] < data[i]) {\n\t\t placeholder = data[i];\n\t\t data [i] = data[j];\n\t\t data[j] = placeholder;\n\t }\n\t }\n }\n }", "private void exercise6() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> result;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n result = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .map(String::toLowerCase)\n .sorted()\n .collect(toList());\n }\n\n result.forEach(System.out::println);\n }", "public static void main( String [] args){\n String [] cadenas = {\"Rojo\", \"Naranja\", \"Amarillo\", \"Verde\" , \"azul\", \"indigo\", \"Violeta\"};\n\n // Se muestra las cadenas almacenadas\n System.out.printf(\"Cadenas originales: %s%n\", Arrays.asList(cadenas));\n\n /**************** E1 *****************/\n // upperCase\n System.out.printf(\"Cadenas en mayuscula: %s%n\", Arrays.stream(cadenas)\n .map(String::toUpperCase)\n .collect(Collectors.toList()));\n\n /**************** E2 *****************/\n // las cadenas mayores que \"m\" (sin tener en cuenta mayuscula o minusculas) se ordenan de forma ascendente\n System.out.printf(\"Cadenas filtradas y ordenadas (orden asc): %s%n\", Arrays.stream(cadenas)\n // ordenacion lexicografica detras de la m, osea las palabras que quedan detras de la m\n .filter(s -> s.compareToIgnoreCase(\"m\") > 0)\n .sorted(String.CASE_INSENSITIVE_ORDER)\n .collect(Collectors.toList()));\n\n /**************** E2 *****************/\n // las cadenas mayores que \"m\" (sin tener en cuenta mayuscula o minusculas) se ordenan de forma ascendente\n System.out.printf(\"Cadenas filtradas y ordenadas (orden desc): %s%n\", Arrays.stream(cadenas)\n .filter(s -> s.compareToIgnoreCase(\"m\") > 0)\n .sorted(String.CASE_INSENSITIVE_ORDER.reversed())\n .collect(Collectors.toList()));\n }", "public static List<String> sortOrders(List<String> orderList) {\n // Write your code here\n List<String> primeOrders = new ArrayList<>();\n LinkedHashSet<String> nonPrimeOrders = new LinkedHashSet<>();\n for (String order : orderList) {\n String orderType = order.split(\" \")[1];\n try {\n int orderNum = Integer.parseInt(orderType);\n nonPrimeOrders.add(order);\n } catch (Exception e) {\n primeOrders.add(order);\n }\n }\n Collections.sort(primeOrders, new Comparator<String>() {\n \n @Override\n public int compare(String s1, String s2) {\n String[] s1Elements = s1.split(\" \");\n String[] s2Elements = s2.split(\" \");\n int i = 1;\n while (i < s1Elements.length && i < s2Elements.length) {\n if (!s1Elements[i].equals(s2Elements[i])) {\n return s1Elements[i].compareTo(s2Elements[i]);\n }\n i++;\n }\n if (i < s1Elements.length) {\n return 1;\n }\n if (i < s2Elements.length) {\n return -1;\n }\n return s1Elements[0].compareTo(s2Elements[0]);\n }\n \n });\n for (String nonPrimeOrder : nonPrimeOrders) {\n primeOrders.add(nonPrimeOrder);\n }\n return primeOrders;\n }", "public static void main(String[] args) throws IOException {\n Scanner kb=new Scanner(System.in);\r\n HashSet <Integer>hs=new HashSet<>();\r\n int n=kb.nextInt();\r\n int p=kb.nextInt();\r\n for(int i=0;i<p;i++)\r\n hs.add(kb.nextInt());\r\n \r\n int q=kb.nextInt();\r\n for(int i=0;i<q;i++)\r\n hs.add(kb.nextInt());\r\n \r\n ArrayList <Integer> list=new ArrayList<>(hs);\r\n Collections.sort(list);\r\n if(list.size()==n)\r\n System.out.println(\"I become the guy.\");\r\n else\r\n System.out.println(\"Oh, my keyboard!\");\r\n \r\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "public static void dutch_flag_sort(char[] balls)\n {\n int n = balls.length;\n\n int swapRedHere = 0;\n int swapBluHere = n-1;\n\n int cur = 0;\n while (cur <= swapBluHere)\n {\n // If current ball is red, swap with swapRedHere. We will get a green so move current.\n if (balls[cur] == 'R')\n {\n swap(balls, cur, swapRedHere++);\n cur++;\n }\n // If current ball is blue, move it to swapBluHere. But don't move current because it now has unknown ball..\n else if (balls[cur] == 'B')\n {\n swap(balls, cur, swapBluHere--);\n }\n // Otherwise we have a green. Leave it there because it will get pulled out when swapRedHere reaches it.\n else // 'G'\n {\n cur++;\n }\n }\n }", "@Test\n\tpublic void testSortAll() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortAll(inputArr1);\n\t\tassertEquals(\"#B@n@n0\", arrayList.get(0));\n\t\tassertEquals(\"100 B*anana\", arrayList.get(1));\n\t\tassertEquals(\"20 B*anana\", arrayList.get(2));\n\t\tassertEquals(\"P3@r\", arrayList.get(3));\n\t\tassertEquals(\"p3@R\", arrayList.get(4));\n\t}", "public void sort() {\n }", "void sort();", "void sort();", "@Test\n\tpublic void testSortSimpleCapitalNumber() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortSimpleCapitalNumber(inputArr9);\n\t\tassertEquals(\"6Pear\", arrayList.get(0));\n\t\tassertEquals(\"6p3aR\", arrayList.get(1));\n\t\tassertEquals(\"aPp1e\", arrayList.get(2));\n\t\tassertEquals(\"ap1E\", arrayList.get(3));\n\t\tassertEquals(\"p3Ar\", arrayList.get(4));\n\t}", "private static void selectSortingOption(ArrayList<Person> p) {\n\t\tArrayList<Person> personList = p;\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tboolean again = true;\n\t\twhile (again) {\n\t\t\tagain = false;\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Pick your sorting option\\n\" + \"1: First Name\\n\" + \"2: Last Name\\n\" + \"3: Starting Date\");\n\n\t\t\tint input = scan.nextInt();\n\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tCollections.sort(personList, new Comparator<Person>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(final Person object1, final Person object2) {\n\t\t\t\t\t\treturn object1.getFirstName().toUpperCase().compareTo(object2.getFirstName().toUpperCase());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tsortingOptions(personList);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tCollections.sort(personList, new Comparator<Person>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(final Person object1, final Person object2) {\n\t\t\t\t\t\treturn object1.getLastName().toUpperCase().compareTo(object2.getLastName().toUpperCase());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tsortingOptions(personList);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tCollections.sort(personList, new Comparator<Person>() {\n\t\t\t\t\tDateFormat f = new SimpleDateFormat(\"yyyyMMdd\");\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(Person o1, Person o2) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn f.parse(o1.getStartDate()).compareTo(f.parse(o2.getStartDate()));\n\t\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tsortingOptions(personList);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tagain = true;\n\t\t\t\tSystem.out.println(\"Enter a number between 1 and 3\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}", "public static void main(String[] args) throws Exception\n\t{\n\t\tScanner sc = new Scanner(in);\n\t\tPrintStream ps = new PrintStream(new BufferedOutputStream(out));\n\t\tint cases = sc.nextInt();\n\t\tfor (int c = 1; c <= cases; c++)\n\t\t{\n\t\t\tint n = sc.nextInt();\n\t\t\tint[] a = new int[n];\n\t\t\tint[] b = new int[n];\n\t\t\tboolean[] mark = new boolean[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\ta[i] = sc.nextInt();\n\t\t\t\tb[i] = sc.nextInt();\n\t\t\t}\n\t\t\tPriorityQueue<Pair> one = new PriorityQueue<Pair>(n, new One());\n\t\t\tPriorityQueue<Pair> two = new PriorityQueue<Pair>(n, new Two());\n\t\t\t\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tPair p = new Pair(a[i],b[i]);\n\t\t\t\tone.add(p);\n\t\t\t\ttwo.add(p);\n\t\t\t}\n\t\t\tint stars = 0;\n\t\t\tboolean ok = true;\n\t\t\tint steps = 0;\n\t\t\twhile (one.size() != 0 && two.size() != 0)\n\t\t\t{\n\t\t\t\tPair p1 = one.poll();\n\t\t\t\tPair p2 = two.poll();\n/*\n\t\t\t\tps.println(\"one = \"+p1.toChar()+p1);\n\t\t\t\tps.println(\"two = \"+p2.toChar()+p2);\n*/\n\t\t\t\tif (p2.b <= stars)\n\t\t\t\t{\n\t\t\t\t\tone.add(p1);\n\t\t\t\t\tp2.tagB = true;\n\t\t\t\t\tif (p2.tagA) stars++;\n\t\t\t\t\telse stars += 2;\n\t\t\t\t\tsteps++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttwo.add(p2);\n\t\t\t\t\tif (!p1.tagA && !p1.tagB)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (p1.a <= stars)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tp1.tagA = true;\n\t\t\t\t\t\t\tstars++;\n\t\t\t\t\t\t\tsteps++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tok = false;\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}\n\t\t\t}\n\t\t\t//ps.println(\"**************\");\n\t\t\t//ps.println(\"one = \"+one.size());\n\t\t\t//ps.println(\"two = \"+two.size());\n\t\t\tif (ok)\n\t\t\t{\n\t\t\t\twhile (one.size() != 0)\n\t\t\t\t{\n\t\t\t\t\tPair p = one.poll();\n\t\t\t\t\tif (!p.tagA && !p.tagB)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (p.a <= stars)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstars++;\n/*\n\t\t\t\t\t\t\tps.println(\"mali\");\n*/\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tok = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsteps++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ok)\n\t\t\t{\n\t\t\t\twhile (two.size() != 0)\n\t\t\t\t{\n\t\t\t\t\tPair p = two.poll();\n\t\t\t\t\tif (!p.tagB)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (p.a <= stars)\n\t\t\t\t\t\t{\n/*\n\t\t\t\t\t\t\tps.println(\"ere\");\n*/\n\t\t\t\t\t\t\tif (p.tagA) stars++;\n\t\t\t\t\t\t\telse stars += 2;\n\t\t\t\t\t\t\tsteps++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tok = false;\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}\n\t\t\t}\n\t\t\tif (ok) ps.printf(\"Case #%d: %d\\n\", c, steps);\n\t\t\telse ps.printf(\"Case #%d: Too Bad\\n\", c);\n\t\t}\n\t\tps.flush();\n\t}", "static int hireAssistant(int tab[]) {\n int best = 0;\n for(int i = 0; i<tab.length; i++) {\n if(tab[i] > best)\n best = tab[i];\n }\n return best;\n }", "public void sort()\n {\n\tstrack.sort((Node n1, Node n2) ->\n\t{\n\t if (n1.getCost() < n2.getCost()) return -1;\n\t if (n1.getCost() > n2.getCost()) return 1;\n\t return 0;\n\t});\n }", "private static void sortByVerified( ArrayList<Volunteer> list)\n {\n // Find the string reference that should go in each cell of\n // the array, from cell 0 to the end\n for ( int j = 0; j < list.size();j++ )\n {\n // Find min: the index of the string reference that should go into cell j.\n // Look through the unsorted strings (those at j or higher) for the one that is first in lexicographic order\n int min = j;\n for ( int k=j+1; k < list.size(); k++ ) {\n if (list.get(k).compareTo(list.get(min)) > 0) {\n min = k;\n }\n\n }\n\n // Swap the reference at j with the reference at min\n Collections.swap(list, j, min);\n }\n }", "public static void sortStringsNumAs( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] A = a.split(\"\");\n String[] B = b.split(\"\");\n int acount = 0;\n int bcount = 0;\n for (String i : A){\n if (i == \"a\" || i == \"A\"){\n acount += 1;\n }\n }\n for (String i : B){\n if (i == \"a\" || i == \"A\"){\n bcount += 1;\n }\n }\n\n if (acount > bcount) return true;\n else return false;\n };\n sortStrings(lst, p);\n \n }", "static void perform_cmp(String passed){\n\t\tint type = type_of_cmp(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcmp_with_reg(passed);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tcmp_with_mem(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tint[] sample = { 55, 3, 7, 3303, 443, -12, 53, 77, 123, 4, 543, 0, 213, 299, 48 };\n\t\tint res[] = ISort(sample); \n\t\tSystem.out.println(\"-12, 0, 3, 4, 7, 48, 53, 55, 77, 123, 213, 299, 443, 543, 3303 <- the result should look like\");\n\t\tfor (int i = 0; i < res.length; i++) {\n\t\t\tSystem.out.printf(\"%d, \", res[i]);\n\t\t}\n\t}", "public void Q5_7() {\n\t\tString[] strings = {\"Marketing\", \"Boss of director\", \"waiting room\", \"Accounting\", \"Sale\"};\n\t\tString[] str1 = strings[0].split(\"\\\\s+\");\n\t\tString[] str2 = strings[1].split(\"\\\\s+\");\n\t\tString[] str3 = strings[2].split(\"\\\\s+\");\n\t\tString[] str4 = strings[3].split(\"\\\\s+\");\n\t\tString[] str5 = strings[4].split(\"\\\\s+\");\n\t\t\n\t\tfor (int i = 0; i < strings.length - 1; i++) {\n\t\t\tfor (int j = i + 1; j < strings.length; j++) {\n\t\t\t\tif(strings[i].charAt(0) > strings[j].charAt(0)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "public int[] switchCases() {\n return matchesOp;\n }", "private static List<String> vratiPopisNepolozenih(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t\t\t.filter(s -> s.getGrade() == 1)\n\t\t\t\t\t\t.sorted()\n\t\t\t\t\t\t.map(StudentRecord::getJmbag)\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "static void selectionSort(int arr[]) {\n\t\tfor (int i = 0; i < arr.length - 1; i++) {\r\n\t\t\tfor (int j = i + 1; j < arr.length; j++) {\r\n\t\t\t\tif (arr[i] > arr[j]) {\r\n\t\t\t\t\tswap(arr, i, j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void userSort(ArrayList<FileData> fromFile, int primary_sort, int secondary_sort, int primary_order, int secondary_order)\n {\n \n // user wants to sort by primary = state code and secondary = county code\n if(primary_sort == 1 && secondary_sort == 2) \n {\n if(primary_order == 1 && secondary_order == 1){// user wants both primary and secondary in ascending order\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order == 2 && secondary_order == 2){ // user wants both primary and secondary in decending order\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){// primary is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){//primary is descending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n // user wants to sort by primary = county code and secondary = state code\n if(primary_sort == 2 && secondary_sort == 1){\n if(primary_order == 1 && secondary_order == 1){\n //primary and seconary is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order == 2 && secondary_order == 2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){//primary is ascending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code()); // primary sort\n \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){//primary is descending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code().reversed()); // primary sort\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==1&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Name()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new Sort_State_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new Sort_County_Name()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new Sort_County_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==1&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount());\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information \n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information \n } \n } \n }\n \n \n if(primary_sort==1&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); \n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); \n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n \n if(primary_sort==8&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new Sort_State_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new Sort_County_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new Sort_County_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==2&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==6&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==2&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==7&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==8&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==3&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==4&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==5&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==8&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==8&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order == 2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n }", "public String sortBy();", "private static List<StudentRecord> vratiSortiranuListuOdlikasa(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t\t\t.filter(s -> s.getGrade() == 5)\n\t\t\t\t\t\t.sorted(StudentRecord.BY_POINTS.reversed())\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tint a[]= {-1,4,2,6,8,1};\n\t\t\n\t\tArrays.sort(a);\n\t\t\n\t\tfor(int num:a)\n\t\t\tSystem.out.print(num+\" \");\n\t\t\n\t\t\n\t\tList<String> l=new ArrayList<>();\n\t\t\n\t\tl.add(\"nikhil\");\n\t\tl.add(\"ajay\");\n\t\tl.add(\"vijay\");\n\t\tl.add(\"pushpa\");\n\t\t\n\t\t\n\t\tCollections.sort(l);\n\t\t\n\t\tSystem.out.print(l);\n\n\t}", "public void sortPassing(){\n\t\tpassing.sort(PlayingCard.PlayingCardComparator_ACEHIGH);\n\t}", "public void sortSubstrateSwitchByResource() {\n\t\tCollections.sort(this.listNode, new Comparator<SubstrateSwitch>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SubstrateSwitch o1, SubstrateSwitch o2) {\n\n\t\t\t\tif (o1.getCpu() < o2.getCpu()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\tif (o1.getCpu() > o2.getCpu()) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t}", "private static void sort(int[] arr) {\n\t\tint lesserIndex=-1;\n\t\tint arrLen = arr.length ; \n\t\tfor(int i=0; i<arrLen; i++){\n\t\t\tif(arr[i]<0){\n\t\t\t\tlesserIndex++; \n\t\t\t\tint tmp = arr[lesserIndex]; \n\t\t\t\tarr[lesserIndex] = arr[i];\n\t\t\t\tarr[i] = tmp; \n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tint negBound = lesserIndex+1;\n\t\tint posIndex = negBound;\n\t\t\n\t\tfor(int negIngex = 0;negIngex<negBound && posIndex<arr.length; negIngex+=2, posIndex+=1){\n\t\t\tint tmp = arr[posIndex]; \n\t\t\tarr[posIndex] = arr[negIngex] ; \n\t\t\tarr[negIngex] = tmp ;\n\t\t\tnegBound++;\n\t\t}\n\t\t\n\t\t\n\t\tfor(int a : arr) {\n\t\t\tSystem.out.print(a);\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n // int m = sc.nextInt();\n int n = sc.nextInt();\n Tree[] tree = new Tree[n];\n for (int i = 0; i < n; i++) {\n tree[i] = new Tree(i + 1, sc.nextInt());\n }\n // System.out.println(Arrays.toString(tree));\n\n // Arrays.sort(tree,(a,b)->b.num-a.num);\n StringBuilder sb = new StringBuilder();\n int first = 0;\n\n boolean shibai = false;\n\n while (first < n) {\n while (first < n && tree[first].num == 0) {\n first++;\n }\n int idx = first + 1;\n out:\n while (idx < n) {\n while (idx < n && tree[idx].num == 0) {\n idx++;\n\n }\n while (idx < n && first < n && tree[idx].num > 0 && tree[first].num > 0) {\n\n sb.append(tree[first].type)\n .append(\" \")\n .append(tree[idx].type)\n .append(\" \");\n tree[idx].num--;\n tree[first].num--;\n if (tree[first].num == 0) {\n first++;\n break out;\n }\n }\n }\n// System.out.println(Arrays.toString(tree));\n// System.out.println(idx);\n if (idx > n - 1) {\n if (tree[first].num == 0) break;\n if (tree[first].num == 1) {\n sb.append(tree[first].type);\n break;\n } else {\n System.out.println(\"-\");\n shibai = true;\n break;\n }\n }\n }\n\n// while (true){\n// if(tree[0].num==1){\n// sb.append(tree[0].type);\n// break;\n// }\n// if(tree[1].num==0){\n// System.out.println(\"-\");\n// shibai=true;\n// break;\n// }\n// while (tree[1].num>0){\n// sb.append(tree[0].type).append(\" \").append(tree[1].type).append(\" \");\n// tree[0].num--;\n// tree[1].num--;\n// }\n// //System.out.println(sb.toString());\n// // System.out.println(Arrays.toString(tree));\n// // Arrays.sort(tree,(a,b)->b.num-a.num);\n//\n// }\n if (!shibai) {\n System.out.println(sb.toString());\n }\n\n\n }", "static void minimumBribes(int[] q) {\n \t\n \tfor(int i=0;i<q.length;i++){\n if((q[i] - (i+1)) > 2){\n System.out.println(\"Too chaotic\");\n return; \n }\n }\n \n int swaps=0;\n for(int i=0;i< q.length;i++){\n for(int j=i+1;j<q.length;j++){\n if(q[i] > q[j]){ \n int tmp=q[j];\n q[j]=q[i];\n q[i]=tmp;\n swaps++;\n }\n }\n }\n \n System.out.println(swaps);\n \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 static void main(String[] args) {\n int[] arr={0,2,1,0,0,2,1};\n sort(arr);\n }", "@Test\n\tpublic void testSortCapitalSpecialChars() throws SortException {\n\t\tString[] input = new String[] { \"F**\", \"!F*\", \")JD\", \"$GA\", \"*DE\" };\n\t\tList<String> arrayList = sortApplication.sortCapitalSpecialChars(input);\n\t\tassertEquals(\"!F*\", arrayList.get(0));\n\t\tassertEquals(\"$GA\", arrayList.get(1));\n\t\tassertEquals(\")JD\", arrayList.get(2));\n\t\tassertEquals(\"*DE\", arrayList.get(3));\n\t\tassertEquals(\"F**\", arrayList.get(4));\n\t}", "public static void main(String[] args) {\n\t\tList<String> alist = new ArrayList<>();\n\t\talist.add(\"Virat\");\n\t\talist.add(\"ganesh\");\n\t\talist.add(\"Amol\");\n\t\talist.add(\"Ritesh\");\n\t\talist.add(\"deva\");\n\t\talist.add(\"sachin\");\n\t\talist.add(\"Xavier\");\n\t\t\n\t\tSystem.out.println(\"Arraylist before sorting: \");\n\t\tSystem.out.println(alist);\n\t\t\n\t\t//Collections.sort(alist);\n\t\tCollections.sort(alist,String.CASE_INSENSITIVE_ORDER);\n\t\t\n\t\tSystem.out.println(\"Arraylist after sorting: \");\n\t\tSystem.out.println(alist);\n\t\t\n\t\t\t\t\n\n\t}", "@Test\n\tpublic void testSortNumbersSpecialCharsWithNumFlagOn() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortNumbersSpecialCharsWithNumFlagOn(inputArr5);\n\t\tassertEquals(\"#%356\", arrayList.get(0));\n\t\tassertEquals(\"1 &(*\", arrayList.get(1));\n\t\tassertEquals(\"22#%!\", arrayList.get(2));\n\t\tassertEquals(\"33 *&@\", arrayList.get(3));\n\t\tassertEquals(\"50 @\", arrayList.get(4));\n\t\tassertEquals(\"68!\", arrayList.get(5));\n\t}", "@Test\n\tpublic void testSortSimpleNumbersWithNumFlagOn() throws SortException {\n\t\tList<String> arrayList = sortApplication.sortSimpleNumbersWithNumFlagOn(inputArr6);\n\t\tassertEquals(\"1oranges\", arrayList.get(0));\n\t\tassertEquals(\"22pears\", arrayList.get(1));\n\t\tassertEquals(\"100apples\", arrayList.get(2));\n\t\tassertEquals(\"feb16\", arrayList.get(3));\n\t\tassertEquals(\"january2016\", arrayList.get(4));\n\t}", "public T caseDefSort(DefSort object)\n {\n return null;\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "private void exercise7() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> result;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n result = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .map(String::toLowerCase)\n .sorted(comparingInt(String::length))\n .collect(toList());\n }\n\n result.forEach(System.out::println);\n }" ]
[ "0.581628", "0.5719461", "0.5517461", "0.5489182", "0.54787207", "0.5476065", "0.5468108", "0.5438687", "0.5321916", "0.531828", "0.5310563", "0.53090805", "0.52917534", "0.52747536", "0.527472", "0.5235888", "0.5219591", "0.5209474", "0.51970243", "0.5192651", "0.5183216", "0.51761156", "0.5162032", "0.5158787", "0.5155171", "0.5148795", "0.51477015", "0.514717", "0.51406956", "0.51401144", "0.5133916", "0.5127095", "0.51245725", "0.5122906", "0.51218617", "0.5103996", "0.50989103", "0.5094057", "0.50921315", "0.5091932", "0.5083914", "0.50838035", "0.50832176", "0.508219", "0.50814426", "0.5071736", "0.50621897", "0.5054942", "0.50531024", "0.5051356", "0.50350434", "0.5028798", "0.50137365", "0.50022626", "0.49991092", "0.49974564", "0.49913946", "0.49759993", "0.49699494", "0.49693915", "0.49609995", "0.49596596", "0.49590573", "0.49573547", "0.49572286", "0.49529204", "0.4950743", "0.4949051", "0.49418572", "0.49418572", "0.49401307", "0.49360642", "0.49301797", "0.49291924", "0.49199682", "0.49181864", "0.49103296", "0.49099615", "0.4906719", "0.4905624", "0.49028042", "0.48958907", "0.48900428", "0.4886096", "0.4884253", "0.48796234", "0.4878651", "0.48769137", "0.48764092", "0.48736414", "0.48697183", "0.48670143", "0.4865856", "0.4863803", "0.4860384", "0.48578575", "0.48545018", "0.4851849", "0.48508385", "0.48502082", "0.48491776" ]
0.0
-1
Read and scan another item; return false when there are no more items.
boolean nextItem();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean hasNext() {\n return (nextItem != null);\n }", "public boolean hasNext() throws IOException{\n\t\t\t//if has processed all bytes read\n\t\t\tif (pos >= count){\n\t\t\t\tcount = in.read(buff);\n\t\t\t\tif (count <= 0) return false;\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\t//assert pos < count\n\n\t\t\t//if the reader points to the start of the next sequence\n\t\t\tif (buff[pos] == 62){// 62 = '>'\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t//if not, looking for the next '>'\n\t\t\twhile (true){\n\t\t\t\tpos ++;\n\t\t\t\tif (pos >= count){\n\t\t\t\t\tcount = in.read(buff);\n\t\t\t\t\tif (count <= 0) return false;\n\t\t\t\t\tpos = 0;\n\t\t\t\t}\n\t\t\t\tif (buff[pos] == 62){// 62 = '>'\n\t\t\t\t\treturn true;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\n\t\t}", "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn _current < (_items.length -1);\n\t\t}", "public boolean hasNext() { return (current != null && current.item != null); }", "boolean hasNext() throws IOException;", "public abstract boolean hasNext();", "public abstract boolean hasNext();", "public void checkIn(String title){\r\n \t\r\n \t Iterator<Item> i = items.iterator();\r\n \t Item current = new Item();\r\n \t\r\n \t \r\n \t while(i.hasNext()){\r\n \t current = i.next();\r\n \t \r\n \t if(title.compareTo(current.getTitle()) == 0) {\r\n \t \t\r\n\t System.out.print(\"Is this the item you are returning: \" + current.toString());\r\n\t System.out.println(\"(y/n)?\");\r\n\t\t Scanner sc = new Scanner(System.in);\r\n\t\t String result = sc.next().toUpperCase();\r\n\t\t \r\n if(result.charAt(0) == 'Y'){\r\n \t\r\n if(current.getAvailability() == true){\r\n \t System.out.println(\"This item has is already in the library.\");\r\n \t System.out.println();\r\n \r\n }else if(current.getAvailability() == false){\r\n \t current.setAvailability(true);\r\n\t System.out.println(\"You have returned \" + title + \" to the library.\");\r\n }\r\n \r\n }\r\n \t }\r\n\r\n }\r\n \r\n }", "public synchronized boolean next() throws IOException {\n\t\treturn next(true);\n\t}", "public boolean next() throws IOException;", "protected boolean readMoreListElements() throws java.io.IOException {\n char c = readCharWord();\n if (c=='}') {\n next();\n return false;\n }\n if (c=='*') {\n next();\n return true;\n }\n throw error();\n }", "boolean hasNext();", "boolean hasNext();", "boolean hasNext();", "boolean hasNext();", "boolean hasNext();", "public boolean hasMoreItems();", "@Override\n public boolean hasNext() {\n setCurrent();\n return current != null;\n }", "public boolean hasNext();", "public boolean hasNext();", "public boolean hasNext();", "public boolean hasNext();", "public boolean hasNext();", "public boolean hasNext();", "public boolean hasNext();", "public boolean hasNext();", "@Override\n public boolean hasNext(){\n try{\n return this.notNone();\n } catch(IOException e){\n return false;\n }\n }", "public boolean hasNext()\n/* */ {\n/* 73 */ return this.m_offset < this.m_limit;\n/* */ }", "@Override\r\n public boolean hasNext() {\r\n return (next.data != null);\r\n }", "boolean next() throws IOException;", "public boolean hasNext() throws IOException {\r\n if (next != null) {\r\n return true;\r\n }\r\n next = readLine();\r\n return next != null;\r\n }", "@Override\r\n\tpublic boolean hasNext() {\n\t\treturn scanner.hasNext();\r\n\t}", "abstract protected boolean read();", "public boolean contains(int item) {\n if (item == datum() ) return true; // true upon finding the item\n else if (next() == null) return false; // false if item not found until the end of list\n else return next.contains(item); \n }", "@Override\n public T next() {\n if (nextItem == null)\n throw new NoSuchElementException();\n T item = nextItem;\n lastItem = nextItem;\n remainingItemCount.decrement();\n if (remainingItemCount.isZero())\n getNextReady();\n return item;\n }", "@Override\n public boolean hasNext() {\n return next != null;\n }", "@Override\n\t\tpublic boolean hasNext() {\t\t\t\n\t\t\treturn current != null;\n\t\t}", "@Override\n public boolean isRead(int index)\n {\n if (index == 3)\n {\n return m_Unit != 0;\n }\n return super.isRead(index);\n }", "@Override\n public Item next() {\n if(!hasNext()) throw new NoSuchElementException(\"Failed to perform next because hasNext returned false!\");\n Item item = current.data;\n current = current.next;\n return item;\n }", "boolean hasRead();", "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn nextIndex() >= 0;\n\t\t}", "public boolean MoveNext()\r\n { \r\n _index++;\r\n\r\n return _index < Count;\r\n }", "@Override\n\tpublic boolean hasNext() throws IOException, CollectionException {\n\t\tboolean hasNext = true;\n\t\tWikiArticle article = articlesQueue.peek();\n\t\tif (article != null && article instanceof EndOfFileToken) {\n\t\t\thasNext = false;\n\t\t}\n\t\treturn hasNext;\n\t}", "@Override\n\tpublic boolean hasNext() {\n\t return current != null;\n\t}", "public boolean grabItem(String item) {\n boolean canGrab = false;\n if(grabbedItems.size() < max_inventory){\n System.out.println(\"You have grabbed: \" + item + \"\\n\");\n grabbedItems.add(item);\n canGrab = true;\n }\n else{\n System.out.println(\"You have too many items! Try dropping one if you really need to grab \" + item);\n }\n return canGrab;\n }", "private void readItems() {\n }", "public boolean hasNext() {\n\t\treturn actual!=null;\t\t\n\t}", "public boolean hasNext(){\n return current!=null;\n }", "public boolean hasItem() {\n return (this.curItem != null);\n }", "@Override\r\n\t\tpublic boolean hasNext() {\n\t\t\treturn current!=null;\r\n\t\t}", "@Override\n public boolean hasNext() {\n return null != current;\n }", "public abstract boolean hasNext() throws TrippiException;", "public boolean next() {\n boolean result = true;\n try {\n element = iterator.next();\n } catch(NoSuchElementException ex) {\n result = false;\n }\n return result;\n }", "boolean canRead(ItemState itemState) throws ItemNotFoundException, RepositoryException;", "boolean hasForRead();", "public boolean hasNext(){\n if(index < size && listR.get(index) != null){\n return true;\n }\n return false;\n }", "public boolean hasNext()\n/* */ {\n/* 82 */ return this.m_offset < this.m_array.length;\n/* */ }", "@Override\r\n public boolean hasNext() {\n return returned.next != header;\r\n }", "public boolean hasNext() {\n return current < len;\n }", "@Override\n public boolean hasNext() {\n return this.nextObject != null;\n }", "public boolean searchItem(Connection conn, int item_no) {\r\n\t\ttry {\r\n\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\tResultSet rset = stmt.executeQuery(\"select item_no, description from item_XXXX where item_no=\" + item_no);\r\n\t\t\tif (rset.isBeforeFirst())\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn (this.next != null);\n\t\t}", "@Override\n public boolean hasNext()\n {\n return source.hasNext();\n }", "public boolean hasNextEvent() throws IOException;", "public boolean hasNext()\n {\n // TODO: implement this method\n return false;\n }", "public boolean hasNext()\r\n/* 30: */ {\r\n/* 31:36 */ return this.nextResult != null;\r\n/* 32: */ }", "public boolean hasNext() { return cursor != lastIndex; }", "public abstract boolean isConsumed();", "public boolean usesItem(Item item){\n for (char c : item.getName().toCharArray()){\n if(!content.contains( String.valueOf(c) )){\n return false;\n }else {\n// count++;\n }\n }\n\n// System.out.println(item + \" est utilisé \" + count + \" fois\");\n\n return true;\n\n\n// return content.contains(item);\n }", "public boolean hasNext()\n { return current != null; }", "@Override\r\n\t\tpublic boolean hasNext() {\r\n\t\t\tif (first.next == null) {\r\n\t\t\t\treturn false;\r\n\t\t\t} else\r\n\t\t\t\treturn true;\r\n\t\t}", "@Override\n public boolean hasNext() {\n return this.index < this.endIndex;\n }", "private boolean hasNext(){\n return current !=null;\n\n }", "private boolean checkNext(){\n boolean ret = this.hasNext;\n if ((this.allStatesIterator.hasNext()) || (this.allSubsetsIterator.hasNext()) || (this.allTransitionsIterator.hasNext())){\n hasNext = true;\n return hasNext;\n }\n hasNext = false;\n return ret;\n }", "@Override\n public boolean hasNext() {\n return(it.hasNext());\n }", "public boolean hasNext(){\n if(index < size && newList.get(index) != null){\n return true;\n }\n return false;\n }", "private void getNextReady() {\n if (!iter.hasNext())\n nextItem = null;\n else {\n Map.Entry<T, Counter> entry = iter.next();\n nextItem = entry.getKey();\n remainingItemCount = entry.getValue();\n }\n }", "public boolean scanItem(Item scannedItem) {\n\t\tboolean retVal = false;\n\t\t//Validate item exist\n\t\tif(inventory.doesItemExist(scannedItem)) {\n\t\t\t//Item is valid so process the scan with the selected register object\n\t\t\tretVal = register[registerSelected].scanItem(scannedItem);\n\t\t}\n\t\treturn retVal;\n\t}", "private boolean hasNext() {\n\t\treturn iterator != null;\n\t}", "public boolean hasNext()\r\n {\r\n if(e.get(index+1) == null)\r\n return false;\r\n else\r\n return true;\r\n }", "public boolean hasNext() {\n\t\tif((++index)>=size)\n\t\t\treturn false;\t\n\t\telse\n\t\t\treturn true;\n\t}", "boolean hasNext(){\n\t\treturn stream.hasNext();\n\t}", "public boolean hasNext() {\n return fakeSize > 0;\n }", "public boolean hasNext(){\n return ci < size;\n }", "@Override\n public boolean hasNext()\n {\n Node testNode = getNth(idx);\n if(testNode.getElement() == null)\n {\n return false;\n }\n else\n {\n return true;\n }\n }", "@Override\n\tpublic ReadRecord readItem() throws Exception {\n\t\tif (failimmediate){\n\t\t\tthrow new Exception(\"read fail immediate\");\n\t\t}\n\t\telse {\n\t\t\treturn new ReadRecord();\n\t\t}\n\t}", "@Override\n public boolean read() throws Exception {\n if (count >= size) return true;\n if (source == null) source = new ChannelInputSource(channel);\n while (count < size) {\n final int n = location.transferFrom(source, false);\n if (n <= 0) break;\n count += n;\n channelCount = count;\n if (debugEnabled) log.debug(\"read {} bytes for {}\", n, this);\n }\n return count >= size;\n }", "@Override\r\n\t\tpublic boolean hasNext() {\n\t\t\treturn false;\r\n\t\t}", "public boolean hasNext(){\n if(index < size && listI.get(index) != null){\n return true;\n }\n return false;\n }", "public T item() throws IOException, NoSuchElementException;", "public boolean hasNext()\n {\n\treturn current != null; \n }", "public boolean hasNext() {\n\t\t\treturn cursor != size();\n\t\t}", "@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}", "public boolean hasNext() {\n return (itrCounter < size());\n }", "public /* synthetic */ boolean hasNext() {\n return this.a.hasNext();\n }", "public boolean hasNext() {\n\t\t\treturn nextPosition > -1;\n\t\t\t\n\t\t}", "public boolean fetchNext(Transaction trans, DatasetCursor cursor,\n DBObject obj, Filter filter, boolean forUpdate)\n throws StorageException, LockConflict {\n Rowid rowid = cursor.getRowid();\n int index = rowid.getIndex();\n\n while (true) {\n ++index;\n\n if (index < 0 || index >= dir.getCount())\n return false;\n\n rowid.setIndex((short) index);\n\n if (_read(trans, obj, index, forUpdate, filter))\n return true;\n }\n }", "public boolean hasNext() {\n return current != null;\n }", "public boolean hasNext() {\n return current != null;\n }", "@Override\n public boolean hasNext() {\n if (wrapped == null) {\n return false;\n }\n failFast(this);\n return wrapped.hasNext();\n }" ]
[ "0.6570112", "0.617815", "0.6174295", "0.6126145", "0.6110257", "0.60404843", "0.60404843", "0.60268056", "0.59786975", "0.59730464", "0.59704167", "0.5902931", "0.5902931", "0.5902931", "0.5902931", "0.5902931", "0.5886374", "0.5881069", "0.5878892", "0.5878892", "0.5878892", "0.5878892", "0.5878892", "0.5878892", "0.5878892", "0.5878892", "0.58758235", "0.5873671", "0.58684766", "0.5866467", "0.5864892", "0.58184767", "0.58036023", "0.5801544", "0.580091", "0.57963115", "0.5787375", "0.57837063", "0.57738495", "0.5751687", "0.57424545", "0.57392454", "0.5735098", "0.5725719", "0.5713347", "0.5709912", "0.56980944", "0.5696585", "0.56936646", "0.5682158", "0.56806433", "0.56686586", "0.56563824", "0.565505", "0.56540614", "0.5649014", "0.5644174", "0.56340444", "0.56168306", "0.5615625", "0.56129587", "0.5606437", "0.5602091", "0.5601656", "0.5600055", "0.5597464", "0.5582293", "0.558003", "0.5577419", "0.556684", "0.554323", "0.55430156", "0.5542785", "0.5540036", "0.5537929", "0.5529419", "0.55177706", "0.55131686", "0.5512035", "0.55088806", "0.5508735", "0.55087245", "0.5508149", "0.5507247", "0.55034477", "0.55029535", "0.5502889", "0.54989827", "0.5493357", "0.5492655", "0.5488285", "0.5487612", "0.54872924", "0.54872453", "0.548579", "0.54843", "0.54820764", "0.5480151", "0.5480151", "0.54732007" ]
0.7165482
0
Percentage (0100) of the current item that's red.
double redPercentage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPercentageColor() {\n return percentageColor;\n }", "int getRed(){\n return getPercentageValue(\"red\");\n }", "double greenPercentage();", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "public int getRed() {\n\t\treturn 100;\n\t}", "int getGreen(){\n return getPercentageValue(\"green\");\n }", "int getBlue(){\n return getPercentageValue(\"blue\");\n }", "public float getRed() {\n return red;\n }", "public int getPercentage() {\r\n return Percentage;\r\n }", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "int getTint(){\n return getPercentageValue(\"tint\");\n }", "double getChangePercent() {\n\t return 100 - (currentPrice * 100 / previousClosingPrice);\n\t }", "java.lang.String getPercentage();", "public int getProgressColor() {\n\t\treturn mProgressPaint.getColor();\n\t}", "public int getRed() {\n return this.red;\n }", "int getShade(){\n return getPercentageValue(\"shade\");\n }", "public double getPercentage() {\n\t\treturn this.percentage;\n\t}", "public float getGreen() {\n return green;\n }", "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "private int getPercentageValue(String elem){\n String query = \"declare namespace a='http://schemas.openxmlformats.org/drawingml/2006/main' $this//a:\" + elem;\n\n XmlObject[] obj;\n\n // first ask the context color and if not found, ask the actual color bean\n if(_phClr != null){\n obj = _phClr.selectPath(query);\n if(obj.length == 1){\n Node attr = obj[0].getDomNode().getAttributes().getNamedItem(\"val\");\n if(attr != null) {\n return Integer.parseInt(attr.getNodeValue()) / 1000;\n }\n }\n }\n\n obj = _xmlObject.selectPath(query);\n if(obj.length == 1){\n Node attr = obj[0].getDomNode().getAttributes().getNamedItem(\"val\");\n if(attr != null) {\n return Integer.parseInt(attr.getNodeValue()) / 1000;\n }\n }\n\n\n return -1;\n }", "public double getPercent() { return this.percentage; }", "public double getPercentRem(long used){\n long left = freeSpace - used;\n return ((double)left / (double)totalSpace) * 100d;\n }", "public Number getPercentage() {\n return (Number) getAttributeInternal(PERCENTAGE);\n }", "public float getPercent() {\n return percent;\n }", "int getAlphaOff(){\n return getPercentageValue(\"alphaOff\");\n }", "@Override\n public double calculatePercentageExtra() {\n double percentageExtra = 0;\n \n percentageExtra += getTwoColourCost();\n \n if(getChemicalResistance()) {\n percentageExtra += getChemicalResistanceCost();\n }\n \n return percentageExtra;\n }", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "@Override\n public String toString() {\n return 100 * current / total + \"%\";\n }", "public Double getProgressPercent();", "public float getPercentage() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn percentage;\r\n\t}", "public double getPercent() {\r\n\t\treturn percent;\r\n\t}", "public int getGreen()\n\t{\n\t\treturn green;\n\t}", "@Override\n public int getRent() {\n int total = 0;\n for (Property P : this.owner.getProperties()) {\n if (P.group_color.equals(this.group_color)) {\n total++;\n }\n }\n if (total == 2) {\n return RENT * 2;\n }\n else if (total == 3) {\n return RENT * 3;\n }\n else if (total == 4) {\n return RENT * 4;\n }\n else {\n return RENT;\n }\n }", "int getPercentageHeated();", "int getAlpha(){\n return getPercentageValue(\"alpha\"); \n }", "public float getProgressPct() {\n return (float) currentCompactedKVs / getTotalCompactingKVs();\n }", "int getRed(){\n\n return this.red;\n }", "public int totalMoney() {\r\n\t\tint money = 0;\r\n\t\tfor (int i = 0; i < this.hand.size(); i++) {\r\n\t\t\tif (this.hand.get(i).cardColor.contains(CardColor.GREEN)) {\r\n\t\t\t\tmoney += this.hand.get(i).value;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this.money + money;\r\n\t}", "public int getTotalSizeColor() {\n return totalSizeColor;\n }", "public double usagePercentage() {\n return 1.0 * (this.rectangleCount() - 1) / (this.M * this.nodeCount()); // -1 in order to ignore de root\n }", "public Number getPercentageComplete()\r\n {\r\n return (m_percentageComplete);\r\n }", "public double getPercentComplete() {\n\t\tthis.percent_complete = ((double) lines_produced / (double) height) * 100.0;\n\t\treturn this.percent_complete;\n\t}", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "int getLumOff(){\n return getPercentageValue(\"lumOff\");\n }", "public int getColor() {\n \t\treturn color;\n \t}", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor() {\n return this.color;\n }", "@Override\n\tpublic String StatistiqueNbrRisuqe(){\n float m= accountRepository.NbrStatus(\"a risque\");\n float s=accountRepository.NbrStatus(\"Stable\");\n float res =( m / s)*100;\n return res+\"%\";\n\n\t}", "public double getPercentChange() {\n return percentChange;\n }", "public final int getG() {\n\t\treturn green;\n\t}", "public int getPercentageComplete() {\n\t\tlong rawPercentage = (100*(System.currentTimeMillis() - startingTime))/(duration);\n\t\treturn rawPercentage >= 100 ? 100 : (int) rawPercentage;\n\t}", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "public int getPaintAlpha(){\n return Math.round((float)paintAlpha/255*100);\n }", "private int getStockChangeColor (String stockChange){\n float change = Float.parseFloat(stockChange);\n if (change >= 0){return Color.GREEN;}\n\n return Color.RED;\n }", "public abstract double getPercentDead();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getRedCarFaultPercentage();", "public int getOverallProgressPercent() {\n return overallProgressPercent;\n }", "float getPercentHealth();", "int getColour();", "public Integer getColor() {\n\t\treturn color;\n\t}", "public int getColor() {\n return color;\n }", "double getpercentage() {\n return this.percentage;\n }", "public SimpleDoubleProperty getTotalAbsencePercentageProperty() {\n return totalAbsencePercentageProperty;\n }", "@Override\n public double getAlcoholPercent() {\n return (getAlcoholVolume() / getVolume()) * 100.0;\n }", "public Float percentComplete() {\n return this.percentComplete;\n }", "void seeGreen() {\n\t\tbar.setForeground(Color.GREEN);\n\t}", "public int getColor()\r\n {\r\n return m_iColor;\r\n }", "public float getStatusChange() {\n\t\treturn statusChance;\n\t}", "int getGreen(){\n\n return this.green;\n }", "public int getCircleProgressColor() {\r\n\t\treturn mCircleProgressColor;\r\n\t}", "public int getProgress() {\n return Math.round(mProgress);\n }", "public Color getColor()\r\n {\r\n return currentColor;\r\n }", "public BigDecimal getEL_PERCENTAGE() {\r\n return EL_PERCENTAGE;\r\n }", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "public Double percentComplete() {\n return this.percentComplete;\n }", "public int getColour() {\n return colour;\n }", "private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }", "public int getColor(ItemStack par1ItemStack)\n {\n \n NBTTagCompound nbttagcompound = par1ItemStack.getTagCompound();\n\n if (nbttagcompound == null)\n {\n return 4984077;\n }\n else\n {\n NBTTagCompound nbttagcompound1 = nbttagcompound.getCompoundTag(\"display\");\n return nbttagcompound1 == null ? 4984077 : (nbttagcompound1.hasKey(\"color\") ? nbttagcompound1.getInteger(\"color\") : 4984077);\n }\n \n }", "public double getMainPercentage(){return mainPercentage;}", "@Override\n public Color getColor() {\n\n if(clicked)\n {\n return Color.BLUE;\n }\n\n if(energy < 0.1*maxEnergy)\n {\n return Color.LINEN;\n }\n else if (energy < 0.2*maxEnergy)\n {\n return Color.MISTYROSE;\n }\n else if(energy < 0.3*maxEnergy)\n {\n return Color.LIGHTPINK;\n }\n else if(energy < 0.4*maxEnergy)\n {\n return Color.PINK;\n }\n else if (energy < 0.5*maxEnergy)\n {\n return Color.LIGHTCORAL;\n }\n else if (energy < 0.6*maxEnergy)\n {\n return Color.RED;\n }\n else if (energy < 0.7*maxEnergy)\n {\n return Color.FIREBRICK;\n }\n else if (energy < 0.8*maxEnergy)\n {\n return Color.DARKRED;\n }\n else if (energy < 0.9*maxEnergy)\n {\n return Color.MAROON;\n }\n return Color.BLACK;\n }", "public int getColour()\r\n\t{\r\n\t\treturn colour;\r\n\t}", "public int getColor() {\r\n return Color;\r\n }", "public short getColor() {\n\t\treturn this.color;\n\t}", "void seeRed() {\n\t\tbar.setForeground(Color.RED);\n\t}", "int getLum(){\n return getPercentageValue(\"lum\");\n }", "public int getBatteryPercentage() {\n if (extraCase_ == 6) {\n return (Integer) extra_;\n }\n return 0;\n }", "public float getGoodPercentage(){\n float result;\n try {\n result = ((float)(goodFrameCount)) / (goodFrameCount + badFrameCount)*100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n } catch(ArithmeticException ex){\n result = 100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n if(Float.isNaN(result)){\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n result=100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n return result;\n }", "public float getBlue() {\n return blue;\n }", "public Color getColor() {\r\n return currentColor;\r\n }", "public String toString() {\n return String.format(\"%.1f%%\", getPercentage());\n }", "Float getFedAnimalsPercentage();", "public Color getRed() {\n return fRed;\n }", "public int getBatteryPercentage() {\n if (extraCase_ == 6) {\n return (Integer) extra_;\n }\n return 0;\n }", "int getSatOff(){\n return getPercentageValue(\"satOff\");\n }", "public int getColor();", "public int getColor();", "public final int getR() {\n\t\treturn red;\n\t}", "public Integer getColorCd() {\n\t\treturn colorCd;\n\t}" ]
[ "0.7686137", "0.73153555", "0.70594454", "0.70390034", "0.69998264", "0.69205076", "0.67957217", "0.658528", "0.64672506", "0.6399097", "0.63838", "0.6374828", "0.63481903", "0.6289588", "0.6272269", "0.6248033", "0.6178315", "0.6154769", "0.615366", "0.61532235", "0.615028", "0.6147139", "0.614366", "0.61314833", "0.6117958", "0.6116529", "0.6116074", "0.61010265", "0.60835737", "0.6058897", "0.6058617", "0.6056108", "0.60560703", "0.6050825", "0.6048746", "0.6015339", "0.6007135", "0.599343", "0.59442365", "0.593523", "0.59241223", "0.5905041", "0.5904325", "0.58721966", "0.58719194", "0.5864905", "0.5861922", "0.5861922", "0.58568096", "0.585482", "0.585454", "0.58502746", "0.58428943", "0.5838756", "0.5837743", "0.58356625", "0.5828848", "0.582632", "0.58259434", "0.58154196", "0.58076805", "0.5806064", "0.58004504", "0.5784344", "0.5782956", "0.57813865", "0.5777717", "0.57607454", "0.5745829", "0.5742727", "0.57405573", "0.5738934", "0.57215637", "0.57151616", "0.5711488", "0.57062685", "0.5704552", "0.569817", "0.5697379", "0.5694617", "0.5684184", "0.5677616", "0.56742597", "0.56734467", "0.56692123", "0.56574136", "0.56449", "0.56442916", "0.56291753", "0.5627083", "0.56241006", "0.56212825", "0.56116563", "0.5603347", "0.5600636", "0.5591428", "0.5582654", "0.5582654", "0.5580134", "0.5576484" ]
0.7361141
1
Percentage (0100) of the current item that's green.
double greenPercentage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPercentageColor() {\n return percentageColor;\n }", "int getGreen(){\n return getPercentageValue(\"green\");\n }", "double redPercentage();", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "int getRed(){\n return getPercentageValue(\"red\");\n }", "public float getGreen() {\n return green;\n }", "int getBlue(){\n return getPercentageValue(\"blue\");\n }", "public int getGreen()\n\t{\n\t\treturn green;\n\t}", "double getChangePercent() {\n\t return 100 - (currentPrice * 100 / previousClosingPrice);\n\t }", "public int getRed() {\n\t\treturn 100;\n\t}", "public int getPercentage() {\r\n return Percentage;\r\n }", "public float getPercent() {\n return percent;\n }", "public final int getG() {\n\t\treturn green;\n\t}", "public int getProgressColor() {\n\t\treturn mProgressPaint.getColor();\n\t}", "public Double getProgressPercent();", "java.lang.String getPercentage();", "public double getPercent() {\r\n\t\treturn percent;\r\n\t}", "public float getProgressPct() {\n return (float) currentCompactedKVs / getTotalCompactingKVs();\n }", "public double getPercent() { return this.percentage; }", "int getPercentageHeated();", "public double getPercentComplete() {\n\t\tthis.percent_complete = ((double) lines_produced / (double) height) * 100.0;\n\t\treturn this.percent_complete;\n\t}", "int getGreen(){\n\n return this.green;\n }", "public double getPercentage() {\n\t\treturn this.percentage;\n\t}", "int getShade(){\n return getPercentageValue(\"shade\");\n }", "public int getPercentageComplete() {\n\t\tlong rawPercentage = (100*(System.currentTimeMillis() - startingTime))/(duration);\n\t\treturn rawPercentage >= 100 ? 100 : (int) rawPercentage;\n\t}", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "int getTint(){\n return getPercentageValue(\"tint\");\n }", "public Number getPercentageComplete()\r\n {\r\n return (m_percentageComplete);\r\n }", "@Override\n public String toString() {\n return 100 * current / total + \"%\";\n }", "public int totalMoney() {\r\n\t\tint money = 0;\r\n\t\tfor (int i = 0; i < this.hand.size(); i++) {\r\n\t\t\tif (this.hand.get(i).cardColor.contains(CardColor.GREEN)) {\r\n\t\t\t\tmoney += this.hand.get(i).value;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this.money + money;\r\n\t}", "float getPercentHealth();", "public Float percentComplete() {\n return this.percentComplete;\n }", "void seeGreen() {\n\t\tbar.setForeground(Color.GREEN);\n\t}", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "public float getRed() {\n return red;\n }", "public float getPercentage() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn percentage;\r\n\t}", "int getAlpha(){\n return getPercentageValue(\"alpha\"); \n }", "public int getOverallProgressPercent() {\n return overallProgressPercent;\n }", "public double getPercentChange() {\n return percentChange;\n }", "int getAlphaOff(){\n return getPercentageValue(\"alphaOff\");\n }", "public Number getPercentage() {\n return (Number) getAttributeInternal(PERCENTAGE);\n }", "private int getPercentageValue(String elem){\n String query = \"declare namespace a='http://schemas.openxmlformats.org/drawingml/2006/main' $this//a:\" + elem;\n\n XmlObject[] obj;\n\n // first ask the context color and if not found, ask the actual color bean\n if(_phClr != null){\n obj = _phClr.selectPath(query);\n if(obj.length == 1){\n Node attr = obj[0].getDomNode().getAttributes().getNamedItem(\"val\");\n if(attr != null) {\n return Integer.parseInt(attr.getNodeValue()) / 1000;\n }\n }\n }\n\n obj = _xmlObject.selectPath(query);\n if(obj.length == 1){\n Node attr = obj[0].getDomNode().getAttributes().getNamedItem(\"val\");\n if(attr != null) {\n return Integer.parseInt(attr.getNodeValue()) / 1000;\n }\n }\n\n\n return -1;\n }", "public Double percentComplete() {\n return this.percentComplete;\n }", "@Override\n public double getAlcoholPercent() {\n return (getAlcoholVolume() / getVolume()) * 100.0;\n }", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "public double getGreenPercentage(int greenThreshold, boolean debug) {\n\n\t\tint numPixels = (pixels.length) / 3;\n\t\tboolean[] greenPixels = new boolean[numPixels];\n\t\tfor (int i = 0; i < pixels.length; i += 3) {\n\t\t\tint[] currentPixel = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tcurrentPixel[j] = pixels[i + j];\n\t\t\t}\n\t\t\tint red = currentPixel[0];\n\t\t\tint green = currentPixel[1];\n\t\t\tint blue = currentPixel[2];\n\t\t\tint biggest = 0;\n\t\t\tif (blue >= red) {\n\t\t\t\tbiggest = blue;\n\t\t\t} else {\n\t\t\t\tbiggest = red;\n\t\t\t}\n\t\t\tint actualGreen = green - biggest;\n\t\t\t// this is where the threshold parameter comes in\n\t\t\tif (actualGreen < greenThreshold) {\n\t\t\t\tgreenPixels[i / 3] = false;\n\t\t\t} else {\n\t\t\t\tgreenPixels[i / 3] = true;\n\t\t\t}\n\t\t}\n\t\tint trueGreenPixels = 0;\n\n\t\tfor (boolean pixel : greenPixels) {\n\n\t\t\tif (pixel) {\n\t\t\t\ttrueGreenPixels++;\n\t\t\t}\n\n\t\t}\n\t\tif (debug) {\n\t\t\tint count = 0;\n\t\t\tfor (boolean pix : greenPixels) {\n\t\t\t\tif (count % 100 == 0) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tif (pix) {\n\t\t\t\t\tSystem.out.print(1);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(0);\n\t\t\t\t}\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\tdouble greenPercentage = (double) trueGreenPixels / numPixels;\n\t\treturn greenPercentage * 100;\n\t}", "public int getProgress() {\n return Math.round(mProgress);\n }", "public float getStatusChange() {\n\t\treturn statusChance;\n\t}", "public abstract double getPercentDead();", "public int percentSaveDone() {\n if (isSaveDone()) {\n return 100;\n }\n return percent;\n }", "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "public double getGoodPopulationPercent()\n\t{\n\t\treturn selection.getGoodPopulationPercent();\n\t}", "public double getProgress()\n {\n return ((double)getCount() / (double)getGoal());\n }", "public double getPercentMutants() {\n\t\tdouble count = (double) getNumMutants();\n\t\tdouble pSize = (double) this.getPopSize();\n\n\t\treturn count*100.0 / pSize;\n\t}", "public String calcPushPercentage() {\n\t\tdouble totalPushes = 0;\n\t\t\n\t\tfor(HandStats h : handStats) {\n\t\t\tif(h.getHandOutcome().equals(\"PUSH!!\")) {\n\t\t\t\ttotalPushes += 1;\n\t\t\t}\n\t\t}\n\t\t\t \n\t\treturn (decimalFormat.format((totalPushes / handStats.size()) * 100) + \"%\");\t\n\t}", "@Override\n public double calculatePercentageExtra() {\n double percentageExtra = 0;\n \n percentageExtra += getTwoColourCost();\n \n if(getChemicalResistance()) {\n percentageExtra += getChemicalResistanceCost();\n }\n \n return percentageExtra;\n }", "public double getPercentRem(long used){\n long left = freeSpace - used;\n return ((double)left / (double)totalSpace) * 100d;\n }", "public float getGoodPercentage(){\n float result;\n try {\n result = ((float)(goodFrameCount)) / (goodFrameCount + badFrameCount)*100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n } catch(ArithmeticException ex){\n result = 100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n if(Float.isNaN(result)){\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n result=100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n return result;\n }", "double getpercentage() {\n return this.percentage;\n }", "private int getStockChangeColor (String stockChange){\n float change = Float.parseFloat(stockChange);\n if (change >= 0){return Color.GREEN;}\n\n return Color.RED;\n }", "@Override\n public int getRent() {\n int total = 0;\n for (Property P : this.owner.getProperties()) {\n if (P.group_color.equals(this.group_color)) {\n total++;\n }\n }\n if (total == 2) {\n return RENT * 2;\n }\n else if (total == 3) {\n return RENT * 3;\n }\n else if (total == 4) {\n return RENT * 4;\n }\n else {\n return RENT;\n }\n }", "@Override\n public boolean getTotalSavingsColor() {\n\n setLogString(\"Verify if total savings has css value : \" + mobileConfig.get(SAVINGS_COLOR),\n true, CustomLogLevel.HIGH);\n final Object val = executeScriptByClassName(SAVINGS_DOLLARS, \"color\", getDriver());\n setLogString(\"Total Savings has css value : \" + val, true, CustomLogLevel.MEDIUM);\n return val.toString().contains(mobileConfig.get(SAVINGS_COLOR));\n }", "public int getCircleProgressColor() {\r\n\t\treturn mCircleProgressColor;\r\n\t}", "@Override\n\tpublic String StatistiqueNbrRisuqe(){\n float m= accountRepository.NbrStatus(\"a risque\");\n float s=accountRepository.NbrStatus(\"Stable\");\n float res =( m / s)*100;\n return res+\"%\";\n\n\t}", "@SuppressLint(\"DefaultLocale\")\n @Override\n public void onSeriesItemAnimationProgress(float percentComplete, float currentPosition) {\n float percentFilled = ((currentPosition - seriesItem1.getMinValue()) / (seriesItem1.getMaxValue() - seriesItem1.getMinValue()));\n //se lo pasamos al TextView\n tvPorciento.setText(String.format(\"%.0f%%\", percentFilled * 100f));\n }", "public int getBatteryPercentage() {\n if (extraCase_ == 6) {\n return (Integer) extra_;\n }\n return 0;\n }", "public int getPaintAlpha(){\n return Math.round((float)paintAlpha/255*100);\n }", "int getColour();", "public double usagePercentage() {\n return 1.0 * (this.rectangleCount() - 1) / (this.M * this.nodeCount()); // -1 in order to ignore de root\n }", "public int getBatteryPercentage() {\n if (extraCase_ == 6) {\n return (Integer) extra_;\n }\n return 0;\n }", "@FloatRange(from = 0, to = 1) float getProgress();", "int getSatOff(){\n return getPercentageValue(\"satOff\");\n }", "public float getProgress() {\n // Depends on the total number of tuples\n return 0;\n }", "private int getCompleteProgress()\n {\n int complete = (int)(getProgress() * 100);\n \n if (complete >= 100)\n complete = 100;\n \n return complete;\n }", "public int getTotalSizeColor() {\n return totalSizeColor;\n }", "public int getRed() {\n return this.red;\n }", "public String toString() {\n return String.format(\"%.1f%%\", getPercentage());\n }", "@Override\n public double getCONSUMPTION() {\n if (status && brightValue != 0) {\n this.consumption = (super.DEFAULTCONSUMPTION + 2) + (brightValue / 100);\n } else if (status) {\n this.consumption = super.DEFAULTCONSUMPTION + 2;\n } else if (status != true) {\n this.consumption = super.DEFAULTCONSUMPTION;\n }\n\n return consumption;\n }", "int getLumOff(){\n return getPercentageValue(\"lumOff\");\n }", "public boolean hasPercentage() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public static Color getColorSuccess() {\n return Color.white;\n }", "float getBonusPercentHP();", "public boolean hasPercentage() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public float getPositivePercentage() {\n\t\t\n\t\t//Cannot divide by zero\n\t\tif(messageCount == 0) {\n\t\t\t\n\t\t\treturn 0;\n\t\t\t\n\t\t}else {\n\t\t\t\n\t\t\treturn positiveCount/(float)messageCount*100;\n\t\t\t\n\t\t}//end if\n\t\t\n\t}", "Float getFedAnimalsPercentage();", "public double getPercentCompleted() {\n\t\treturn -1;\n\t}", "public String percentComplete() {\r\n\tdouble percent = ((double) bytesRead / (double) bytesLength);\r\n\tpercent *= 100;\r\n\treturn fmt.format(percent);\r\n }", "public double getHitsPercentual()\n\t{\n\t\t//Convert int to double values\n\t\tdouble doubleHits = hits;\n\t\tdouble doubleTotalProcessedStops = totalProcessedStops;\n\t\t\n\t\t//Hits percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (doubleHits / doubleTotalProcessedStops));\n\t}", "public double toPercent(double x){\n\t\treturn x/ 100;\n\t}", "public String percentageProgress(float goalSavings, float currGoalPrice) {\n float percentageProgress = (goalSavings / currGoalPrice) * 100;\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.CEILING);\n return \"[\" + df.format(percentageProgress) + \"%]\";\n }", "public double getMainPercentage(){return mainPercentage;}", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "public SimpleDoubleProperty getTotalAbsencePercentageProperty() {\n return totalAbsencePercentageProperty;\n }", "public int getColor() {\n \t\treturn color;\n \t}", "public int getColour()\r\n\t{\r\n\t\treturn colour;\r\n\t}", "public int getColour() {\n return colour;\n }", "public int getColorGREEN(WebDriver driver, String xpath, String css, Boolean ifPrint) throws NumberFormatException, IOException {\n\t\tif(ifPrint){ fileWriterPrinter(\"GREEN = \" + getColorRGBarray(driver, xpath, css, false)[1]); }\n\t\treturn getColorRGBarray(driver, xpath, css, false)[1];\n\t}", "public final double getPercentageComplete() {\n \t\tdouble percentageComplete = 0;\n \t\tfor (StoppingCondition condition : stoppingConditions) {\n \t\t\tif (condition.getPercentageCompleted() > percentageComplete) {\n \t\t\t\tpercentageComplete = condition.getPercentageCompleted();\n \t\t\t}\n \t\t}\n \t\treturn percentageComplete;\n \t}" ]
[ "0.762251", "0.73834646", "0.7058157", "0.6990478", "0.6920717", "0.6828535", "0.6758313", "0.6715008", "0.65234023", "0.64678615", "0.6457937", "0.64573646", "0.64032537", "0.6398305", "0.63878906", "0.63718605", "0.632522", "0.6295778", "0.62823135", "0.6248896", "0.62291586", "0.62246615", "0.62089205", "0.61947817", "0.61583066", "0.6157289", "0.61497366", "0.6142236", "0.61342055", "0.61298126", "0.6123131", "0.61209655", "0.6117048", "0.60753095", "0.60623115", "0.6057788", "0.60360366", "0.60304666", "0.60251236", "0.6022122", "0.60088056", "0.59919566", "0.59690976", "0.59621376", "0.5955276", "0.59546065", "0.59432334", "0.5935223", "0.5929718", "0.59026176", "0.58965915", "0.58962154", "0.5894998", "0.58837324", "0.5875957", "0.587487", "0.5867017", "0.58548707", "0.5848501", "0.5835206", "0.58259666", "0.5818584", "0.58138496", "0.58092487", "0.57991266", "0.5787951", "0.5784683", "0.5779655", "0.57683957", "0.57471794", "0.5739958", "0.5739103", "0.5731964", "0.5727831", "0.57082903", "0.57055956", "0.5699811", "0.5697186", "0.56910944", "0.56566507", "0.565624", "0.56551737", "0.5639326", "0.5636405", "0.56313324", "0.5629034", "0.56265724", "0.5625218", "0.5616233", "0.56143653", "0.5614308", "0.56009305", "0.5597263", "0.5584967", "0.5575547", "0.55679446", "0.55628586", "0.55621886", "0.55600977", "0.5559346" ]
0.76806337
0
Send the current item to the Red bin
void sendToRed();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendCurrentState() {\n\ttry {\n\t channel.sendObject(getState());\n\t} catch (IOException e) {\n\t Log.e(\"423-client\", e.toString());\n\t}\n }", "void push(int item) {\r\n\t\tif (tos == 9)\r\n\t\t\tSystem.out.println(\"Stos jest pełny\");\r\n\t\telse\r\n\t\t\tstck[++tos] = item;\r\n\t}", "private void itemResult(Item item) {\r\n int bidder = item.getBidderId();\r\n AH_AgentThread agent = AuctionServer.agentSearch(bidder);\r\n if (bidder != -1) {\r\n Message release = new Message.Builder()\r\n .command(Message.Command.TRANSFER)\r\n .balance(item.getCurrentBid())\r\n .accountId(bidder)\r\n .senderId(AuctionServer.auctionId);\r\n Message response = BankActions.sendToBank(release);\r\n assert response != null;\r\n if(response.getResponse() == Message.Response.SUCCESS) {\r\n System.out.println(\"Item Transferred\");\r\n agent.winner(item);\r\n } else {\r\n System.out.println(\"Item Transfer failed\");\r\n }\r\n auctionList.remove(item);\r\n }\r\n }", "@Override\n public void onReceiveItem(InventoryItem itemReceived) {\n inventory.add(itemReceived);\n }", "@Override\n public Item vendItem(Item item) {\n allItems.put(item.getItemId(), item);\n return item;\n }", "public void carry(Item item) {\n\t\trocketWeight += item.getWeight();\n\t}", "public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "@Override\r\n public void run() {\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseRGBCmd(msAccessColor(color)), 0, 0, item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n runCommand = true;\r\n }", "void syncItem() {\n\t\t\n\t\t\n\t\tHashMap<String, String> hm = new HashMap<String, String>();\n\t\thm.put(\"id\", \"2\");\n\t\thm.put(\"name\", \"食品\");\n\t\thm.put(\"test\", \"测试\");\n\t\t\n\t\tList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();\n\t\tlist.add(hm);\n\t\tString xml = getSyncXML(\"item\", list);\n\t\tSystem.out.println(xml);\n\t\tsendXMLToServer4Sync(xml);\n\t}", "@Override\n\tpublic void push(int item) {\n\n\t}", "public void sendWieldItem(long creatureId, byte slot, String modelname, byte rarity, int colorRed, int colorGreen, int colorBlue, int secondaryColorRed, int secondaryColorGreen, int secondaryColorBlue) {\n/* 5751 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5755 */ if (vz.getWatcher().getWurmId() == creatureId)\n/* */ {\n/* 5757 */ vz.sendWieldItem(-1L, slot, modelname, rarity, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue);\n/* */ }\n/* */ else\n/* */ {\n/* 5761 */ vz.sendWieldItem(creatureId, slot, modelname, rarity, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue);\n/* */ }\n/* */ \n/* 5764 */ } catch (Exception e) {\n/* */ \n/* 5766 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "public void onSetNewCurrentItem() {\n }", "public synchronized void Insere(int item, int id){\n try{\n while(count == N){\n System.out.println(\"pc.insereBloqueado(\" + id + \")\");\n wait();\n }\n\n buffer[in] = item;\n in = (in + 1) % N;\n count++;\n\n System.out.println(\"# P[\" + id + \"] inseriu \" + id);\n\n // Imprime buffer\n System.out.print(\"# Buffer atualizado = \");\n for(int i = 0; i < N; i++){\n System.out.print(buffer[i] + \" \");\n }\n System.out.println(\"\");\n\n notifyAll();\n } catch(InterruptedException e){ }\n }", "protected void consume(MonitorItem monItem) {\n BackgroundStatus bgStat= monItem.getStatus();\n for(PushItem item= getNextItem(bgStat); (item!=null); item= getNextItem(bgStat) ) {\n TitleFlasher.flashTitle(\"!! New Image !!\");\n CatalogPanel.setDefaultSearchMethod(CatalogRequest.Method.POLYGON);\n AllPlots.getInstance().getActionReporter().setMonitorItem(monItem);\n String fileName;\n switch (item.pushType) {\n case WEB_PLOT_REQUEST:\n WebPlotRequest wpr= WebPlotRequest.parse(item.data);\n String id;\n if (wpr.getPlotId()!=null) {\n id= wpr.getPlotId();\n }\n else {\n id=IMAGE_CMD_PLOT_ID+idCnt;\n idCnt++;\n wpr.setPlotId(id);\n }\n prepareRequest(wpr);\n break;\n case REGION_FILE_NAME:\n fileName= item.data;\n DS9RegionLoadDialog.loadRegFile(fileName,null,monItem);\n break;\n case TABLE_FILE_NAME:\n fileName= item.data;\n loadTable(fileName,monItem);\n //\n break;\n case FITS_COMMAND_EXT:\n PlotCmdExtension ext= parsePlotCmdExtension(item.data);\n List<PlotCmdExtension> list= AllPlots.getInstance().getExtensionList(null);\n list.add(ext);\n for(MiniPlotWidget mpw : AllPlots.getInstance().getAll()) {\n if (mpw.getPlotView()!=null) {\n mpw.recomputeUserExtensionOptions();\n }\n }\n\n break;\n }\n }\n }", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "public void sendUseItem(Creature creature, String modelname, byte rarity, int colorRed, int colorGreen, int colorBlue, int secondaryColorRed, int secondaryColorGreen, int secondaryColorBlue) {\n/* 5774 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5778 */ if (vz.getWatcher().getWurmId() == creature.getWurmId()) {\n/* */ \n/* 5780 */ vz.sendUseItem(null, modelname, rarity, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue);\n/* */ \n/* */ \n/* */ }\n/* 5784 */ else if (creature.isVisibleTo(vz.getWatcher())) {\n/* 5785 */ vz.sendUseItem(creature, modelname, rarity, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue);\n/* */ }\n/* */ \n/* 5788 */ } catch (Exception e) {\n/* */ \n/* 5790 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }", "void sendToGreen();", "public void Add(String item) {\n byte[] bites = Utils.hexToBytes(item);\n mpBuffer += Utils.bytesToHex(bites);\n mLenght += bites.length;\n mBackOffset = mLenght;\n }", "void sendToDB() {add to sell SellItem\n//\n for (int i = 0; i < menuItems.size(); i++) {\n Map<String, String> params = new HashMap<>();\n params.put(\"user_sell_it_id\", session.getshared(\"id\"));\n params.put(\"sell_menu_id\", sellMenuId);\n params.put(\"item_name\", menuItems.get(i).getItem_name());\n params.put(\"item_price\", menuItems.get(i).getItem_price().toString());\n params.put(\"item_count\", menuItems.get(i).getItem_count().toString());\n params.put(\"item_id\", menuItems.get(i).getItem_id().toString());\n params.put(\"f4\", menuItems.get(i).getF4());\n // params.put(\"item_cost\", String.valueOf(menuItems.get(i).getItem_cost());\n// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());\n// String dt = sdf.format(new Date());\n// params.put(\"datetime\", dt);\n\n//\n if (menuItems.get(i).getId() == null) {\n\n sendItems(addSellMenuItemURL, params);\n\n } else {\n //updateitems using the id and count\n Map<String, String> upParams = new HashMap<>();\n upParams.put(\"id\", menuItems.get(i).getId().toString());\n upParams.put(\"item_count\", menuItems.get(i).getItem_count().toString());\n // upParams.put(\"datetime\", dt);\n sendItems(updatURL, upParams);\n }\n\n\n\n }\n\n\n show_menu(Integer.valueOf(sellMenuId));\n\n\n }", "@Override\r\n\tpublic void run() {\r\n\t\twhile (true){\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tlogger.log(Level.SEVERE, e.toString(), e );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tDate now = new Date();\r\n\t\t\t\r\n\t\t\tfor (Item item : items.values()){\r\n\t\t\t\t\r\n\t\t\t\tif (item.getStatus() == Status.NOT_STARTED && item.getStart().before(now))\r\n\t\t\t\t\titem.setStatus(Status.ONGOING);\r\n\t\t\t\t\r\n\t\t\t\telse if (item.getStatus() == Status.ONGOING && item.getEnd().before(now)){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(item.getHighestBid() != null){\r\n\t\t\t\t\t\tBid winningBid = item.getHighestBid();\r\n\t\t\t\t\t\tif(winningBid.amount > item.getReserve()){\r\n\t\t\t\t\t\t\titem.setStatus(Status.SOLD);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tnote(new Notification(winningBid.userID, Notification.TYPE.SUCCESSFUL_BUY, \"you have won item '\"+item.ID + \"' from seller '\"+item.vendorID));\r\n\t\t\t\t\t\t\tnote(new Notification(item.vendorID, Notification.TYPE.SUCCESSFUL_SALE, \"you have sold item '\"+item.ID + \"' to buyer '\"+item.getHighestBid().userID));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tusers.get(winningBid.userID).addWonItem(winningBid.itemID);\r\n\t\t\t\t\t\t\tlogger.fine(\"item \" + item.ID + \"sold successfully \" );\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tcloseUnsuccessfulItem(item);\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcloseUnsuccessfulItem(item);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfinishedItems.put(item.ID, item);\r\n\t\t\t\t\titems.remove(item.ID);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void push(int item) {\n\t\tif(tos == stack.length-1)\r\n\t\t\tSystem.out.println(\"스택이 꽉참\");\r\n\t\telse\r\n\t\t\tstack[++tos] = item;//화살표 즉시 +1 한후 들어온 값 대입\r\n\t}", "public void sendPurchaseHit() {\n\n // In production code, would need to iterate\n // over all the products in the cart\n // Here we assume that the currently selected dinner\n // is the only thing in the cart\n Product product = new Product()\n .setName(\"dinner\")\n .setPrice(5)\n .setVariant(thisDinner)\n .setId(thisDinnerId)\n .setQuantity(1);\n\n // Get a unique transaction ID\n String tID = Utility.getUniqueTransactionId(thisDinnerId);\n ProductAction productAction =\n new ProductAction(ProductAction.ACTION_PURCHASE)\n .setTransactionId(tID);\n\n Tracker tracker = ((MyApplication) getApplication()).getTracker();\n\n tracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Shopping steps\")\n .setAction(\"Purchase\")\n .setLabel(thisDinner)\n .addProduct(product)\n .setProductAction(productAction)\n .build());\n }", "private void send() {\n ModelManager.putFeedBack(getCurrentActivity(),\n GlobalValue.myAccount.getId() + \"\", edtTitle.getText()\n .toString(), edtDes.getText().toString(),type, true,\n new ModelManagerListener() {\n\n @Override\n public void onSuccess(Object object) {\n // TODO Auto-generated method stub\n edtDes.setText(\"\");\n edtTitle.setText(\"\");\n MainUserActivity activity = (MainUserActivity) getCurrentActivity();\n activity.backFragment(new AccountFragment());\n }\n\n @Override\n public void onError(VolleyError error) {\n // TODO Auto-generated method stub\n Toast.makeText(self, ErrorNetworkHandler.processError(error), Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public int itemsToSend() {\n return itemsToSend;\n }", "public void push(int val)\r\n throws IOException {\r\n getSocket();\r\n pout.println(\"push \" + val);\r\n pout.flush();\r\n }", "public synchronized void send(StreamItem item) {\n\t\t// The EventBuilder is used to build an event using the\n\t\t// the raw JSON of a tweet\n\t\t//LOGGER.info(item.getTweet().getUserScreenName() + \": \" + item.getTweet().getText());\n\n\t\t// create object to be send\n\t\t// StreamItem si = new StreamItem();\n\t\t// si.setDataChannelId(dataChannelId);\n\t\t// si.setDataSourceId(dataSourceId);\n\t\t// si.setQueryData(query);\n\t\t// si.setTweet(TweetUtils.getTweetFromStatus(status));\n\n\t\tWriter writer = new StringWriter();\n\n\t\t// serialize the java class to XML file\n\t\ttry {\n\t\t\t//JAXBContext jc = JAXBContext.newInstance(StreamItem.class);\n\t\t\t//Marshaller marshaller = jc.createMarshaller();\n\t\t\t// marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tJAXBElement<StreamItem> jaxbElement = new JAXBElement<StreamItem>(new QName(\"streamItem\"), StreamItem.class, item);\n\t\t\tmarshaller.marshallToJSON(jaxbElement, writer);\n\t\t\t\n\t\t\t// KeyedMessage<String, String> data = new KeyedMessage<String,\n\t\t\t// String>(kafkaTopic, DataObjectFactory.getRawJSON(status));\n\t\t\tKeyedMessage<String, String> data = new KeyedMessage<String, String>(kafkaTopic, writer.toString());\n\t\t\tkafkaProducer.send(data);\n\t\t\t//LOGGER.info(writer.toString());\n\n\t\t\t\n\t\t} catch (JAXBException e) {\n\t\t\tLOGGER.info(\"Tweet serialisation error! \" + e);\n\t\t\tLOGGER.log(Level.SEVERE, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.info(\"Stream producer: Error while sending tweet! \" + e);\n\t\t\tLOGGER.log(Level.SEVERE, e.getMessage(), e);\t\t\t\n\t\t\te.printStackTrace();\t\n\t\t}\n\n\n\t}", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "public void sendWearItem(long creatureId, int itemId, byte bodyPart, int colorRed, int colorGreen, int colorBlue, int secondaryColorRed, int secondaryColorGreen, int secondaryColorBlue, byte material, byte rarity) {\n/* 5706 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5710 */ if (vz.getWatcher().getWurmId() == creatureId)\n/* */ {\n/* 5712 */ vz.sendWearItem(-1L, itemId, bodyPart, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue, material, rarity);\n/* */ }\n/* */ else\n/* */ {\n/* 5716 */ vz.sendWearItem(creatureId, itemId, bodyPart, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue, material, rarity);\n/* */ }\n/* */ \n/* 5719 */ } catch (Exception e) {\n/* */ \n/* 5721 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tmConnectedThread.write(\"send\");\n\t\t\t\t\tmConnectedThread.writeFile();\n\t\t\t\t}", "@Override\r\n\tpublic void itemAdded() {\r\n\t\tif (sendLines.size() == 1){\r\n\t\t\tgrblPort.addNewLineListener(this);\r\n\t\t\tgrblPort.sendDataLine(sendLines.get(0));\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void addItem(ItemType item) {\n if (curArrayIndex > items.length - 1) {\n System.out.println(item.getDetails() + \" - This bin is full. Item cannot be added!\");\n }\n else if (item.getWeight() + curWeight <= maxWeight) {\n curWeight += item.getWeight();\n items[curArrayIndex++] = item;\n }\n else {\n System.out.println(item.getDetails() + \" - Overweighted. This item cannot be added!\");\n }\n if (item.isFragile()) {\n setLabel(\"Fragile - Handle with Care\");\n }\n\n }", "@Override\r\n public void updatedSaleInventory(ItemAndQuantity lastItem) {\r\n }", "public void push(final String queueName, final String item);", "void sendEntry(Entry e) {\n // System.out.println(\"Mapper.sendEntry()\");\n RemoteMapper dest = findMapper(e.getHash());\n try {\n if (predKey != 0) {\n removeKey(e.getHash());\n }\n dest.addEntry(e);\n } catch (RemoteException ex) {\n ex.printStackTrace();\n }\n\n }", "public void fireOnItemAddedToInventoryCommands();", "public void sendDataToCrQueue() {\n List<Shares> sharesList = new ArrayList<>();\n amqpTemplate.convertAndSend(\"queueTestKey\", sharesList);\n }", "void sendUpdatePlayer(int x, int y, int color, byte tool);", "public void updateClientBag(int i)\n\t{\n\t\tif(getBag().getItems().get(i) != null)\n\t\t{\n\t\t\tServerMessage message = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\tmessage.addInt(getBag().getItems().get(i).getItemNumber());\n\t\t\tmessage.addInt(getBag().getItems().get(i).getQuantity());\n\t\t\tgetSession().Send(message);\n\t\t}\n\t}", "public void carry(Item item)\n {\n\n // Check if item to be added doesn't go over carry limit.\n if (!((getPerson(PLAYER).getWeight() + item.getWeight()) > getPerson(PLAYER).getCarryLimit())){\n getPerson(PLAYER).getInventory().getItems().add(item); \n\n removeRoomItem(item);\n System.out.println();\n System.out.println(item.getName() + \" has been added to your bag.\");\n System.out.println(\"You are carrying \" + getPerson(PLAYER).getWeight()+ \"kg.\");\n }\n else {\n System.out.println(\"Your bag is too heavy to add more items.\");\n }\n\n }", "@Override\n public void onClick(View v) {\n for (ObjectStock s : product.getStocks()) {\n s.setControlled(true);\n stockDataSource.updateStock(s);\n }\n adapter.notifyDataSetChanged();\n squareTotalStock.setBackgroundColor(\n Methods.giveColor(squareTotalStock,\n Methods.getInventoryState(product)));\n }", "void updateItem(IDAOSession session, Item item);", "@Override\n public void itemRPClassUpdate(RPObject entity) {\n }", "void writeCurrentBuffer();", "public void writeNext(NVImmutable item) throws ThingsException;", "@Override\r\n\tpublic void transmit() {\n\t\tcurrentState.transmit();\r\n\t}", "@Override\n\tpublic void push(E item) {\n\t\t\n\t}", "Item update(Item item);", "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 }", "protected void restockItem(int x){\r\n this.level += x;\r\n }", "public void push(Item item){\n this.stack.add(item);\n\n }", "public void send(int index) { GLTexCoordElt.send(index); }", "public void sendPickupItemPacket(ViewableEntity entity, ViewableEntity item) {\n Object packet = ReflectUtils.newInstance(\"PacketPlayOutCollect\");\n ReflectUtils.setField(packet, \"a\", item.getEntityId());\n ReflectUtils.setField(packet, \"b\", entity.getEntityId());\n ReflectUtils.setField(packet, \"c\", ((Item) item.getEntity()).getItemStack().getAmount());\n sendPacket(packet);\n }", "protected void send(InternalCommunicationNetwork tank){\n\t\ttank.put(0,this.rain_level);\n\t}", "@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tLog.d(\"VoMPCall\", \"Picking up\");\n \t\t\t\tServalBatPhoneApplication.context.servaldMonitor\n \t\t\t\t\t\t.sendMessage(\"pickup \"\n \t\t\t\t\t\t+ Integer.toHexString(local_id));\n \t\t\t}", "@Override\n protected void executeLowLevelRequest() {\n doPutItem();\n }", "private void displayItem(){\n synchronized(this){\n for(ClientHandler client : clientArray){\n client.getOutput().println(\"\" + currentItem.getItem() +\n \" price starts at \" + currentItem.getStartingPrice() +\n \".\\n\");\n }\n }\n }", "@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_TAIL;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }", "protected void sendNewLayerToWatchers(Item item) {\n/* 5295 */ logger.log(Level.INFO, \"Tile at \" + this.tilex + \", \" + this.tiley + \" sending secondary\");\n/* 5296 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5300 */ vz.justSendNewLayer(item);\n/* */ }\n/* 5302 */ catch (Exception e) {\n/* */ \n/* 5304 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "public static void push()\n\t{\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tlblUpdate.setText(\"It is a push\");\n\t}", "public void sendBack(SelectionKey key, String message) {\r\n\t\tsocketChannel = (SocketChannel) key.channel(); \r\n\t\tmessage += \"\\r\\n\";\r\n\t\tbuffer = CharBuffer.wrap(message);\r\n\t\twhile (buffer.hasRemaining()) {\r\n\t\t\ttry {\r\n\t\t\t\tsocketChannel.write(Charset.defaultCharset().encode(buffer));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong x = System.nanoTime();\r\n\t\tserviceTime = x - pollTime;\r\n\t\tresponseTime = x - currentJob.queueEntranceTime;\r\n\t\ttimeInSystem = x - currentJob.timeOfArrival;\r\n\t\t\r\n\t\ttimes.add(myNumber + \"\\t\" + type + \"\\t\" + queueTime + \"\\t\" + workerTime +\"\\t\" + processingTime +\"\\t\" + serviceTime +\"\\t\" + responseTime +\"\\t\" + timeInSystem );\r\n\t\tnumOfRequests.incrementAndGet();\r\n\t\tmyNumOfRequests++;\r\n\t}", "public void doPack() {\n this._sendData = new byte[2];\n this._sendData[0] = 1;\n this._sendData[1] = (byte) (this.iOIndex & 15);\n }", "private void sendReceiveRes(){\n\t}", "void push(Object item);", "@Override\n\tpublic void sendItemToCart(int itemId, int amount) {\n\t\t// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tString result=\"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.addToCart(clientId, itemId, amount);\n\t\t\t} else {\n\t\t\t\tWebResource addToCartService = service.path(URI_ADDTOCART).path(clientId+\"/\"+itemId+\"/\"+amount);\n\t\t\t\tresult = addToCartService.accept(MediaType.TEXT_XML).get(String.class);\n\t\t\t}\n\t\t\t//retrieves the status code\n\t\t\tStatusMessageObject status = XMLParser.parseStatusMessage(result);\n\t\t\tgui.setStatus(status.getMessage());\n\t\t\t\n\t\t\t//successful status code > 0, get shopping cart from server\n\t\t\tif (status.getStatusCode() > 0){\n\t\t\t\tsendCartRequest();\n\t\t\t}\n\t\t\t//update item list\n\t\t\tsendItemListRequest();\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClientHandlerException ex){ \n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!!\");\n\t\t} catch (WebServiceException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!!\");\n\t\t}\n\t\t\n\t}", "static void addItems(int needed) {\r\n List<ConnectionReqs> reqsList = new ArrayList<>();\r\n reqsList.add(AuctionServer.reqs);\r\n Socket dBSocket = null;\r\n while(needed > 0) {\r\n Item item = null;\r\n Random random = new Random();\r\n int randInt = random.nextInt(200);\r\n DBMessage dBMessage = null;\r\n try {\r\n dBSocket = new Socket(\"localHost\", 6002);\r\n dBOut = new ObjectOutputStream(dBSocket.getOutputStream());\r\n dBOut.flush();\r\n dBIn = new ObjectInputStream(dBSocket.getInputStream());\r\n dBMessage = new DBMessage.Builder()\r\n .command(DBMessage.Command.GET)\r\n .table(DBMessage.Table.ITEM)\r\n .accountId(randInt)\r\n .build();\r\n dBOut.writeObject(dBMessage);\r\n System.out.println(\"listening...\");\r\n DBMessage response = (DBMessage) dBIn.readObject();\r\n item = (Item) response.getPayload();\r\n System.out.println(item.toString());\r\n } catch (IOException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n if(!auctionHistory.contains(item)) {\r\n System.out.println(dBMessage.toString());\r\n auctionList.add(item);\r\n auctionHistory.add(item);\r\n needed--;\r\n }\r\n }\r\n }", "public void transferItem(Items item) throws Exception {\n\t\tif (item.getHolder() instanceof Monsters) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse if (item.getHolder() instanceof Backpacks) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse\n\t\t\tthrow new Exception(\"The transaction is only possible between monsters and/or backpacks.\");\n\t}", "@Override\n public String toString(){\n return \"winningitem\";\n }", "public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }", "public void sendInfo(){\r\n\t\tfor(int i = 0; i < attachedChooser.getNumberOfCommandsInChooser(); i++){\r\n\t\t\tthis.writeStringData(i + \" \" + attachedChooser.getCommand(i).toString() + \">>>\"); // >>> denoted the end of the current command to the arduino\r\n\t\t}\r\n\t\tthis.writeStringData(\"!!!\"); //denoted to arduino that we have given it all of the commands and it can do its thing \r\n\t}", "public void send() {\n\t}", "@Override\n public void onSmelting(EntityPlayer player, ItemStack item) \n {\n \n }", "private void sendStatus() throws IOException {\n\t\tWriteStatus status = new WriteStatus.Builder().build();\n\t\tstatus.writeTo(out);\n\t\tout.flush();\n\t}", "public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public synchronized void send() {\n if (AudioUtil.getIs()) {\n LogUtil.d(Tag, \"VR stop\");\n this.mPCMPackageHead.m4053c(CommonParams.bB);\n this.mPCMPackageHead.m4047a(0);\n writeVR(this.mPCMPackageHead.m4048a(), this.mPCMPackageHead.m4049b());\n }\n }", "protected void execute() {\n\t\t_xboxControllerToRumble.setRumble(_rumbleType, _rumbleValue);\n\t\t_timesRumbled++;\n\t\tSystem.out.println(\"Rumbling \" + _timesRumbled);\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}", "@Override\n\tpublic boolean useItem(Object linkmon) {\n\t\treturn ((Linkmon)linkmon).feed(feedAmount, hungerFactor);\n\t}", "public void push(Item item){\n\t\tNode oldfirst=first;\r\n\t\tfirst=new Node();\r\n\t\tfirst.item=item;\r\n\t\tfirst.next=oldfirst;\r\n\t\tN++;\r\n\t}", "public void buyItem(int id, int q)\n\t{\n\t\t/* If the player isn't shopping, in a normal shop */\n\t\tif(m_currentShop == null)\n\t\t{\n\t\t\t/* First, check if the player can afford this */\n\t\t\tint price = GameServer.getServiceManager().getItemDatabase().getItem(id).getPrice();\n\t\t\tif(m_money - q * price >= 0)\n\t\t\t{\n\t\t\t\t/* Finally, if the item is in stock, buy it */\n\n\t\t\t\tm_money = m_money - q * price;\n\t\t\t\tm_bag.addItem(id, q);\n\t\t\t\tupdateClientMoney();\n\t\t\t\t/* Let player know he bought the item. */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.BOUGHT_ITEM);\n\t\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\tgetSession().Send(message);\n\t\t\t\t/* Update player inventory. */\n\t\t\t\tServerMessage update = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\t\tupdate.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\tupdate.addInt(q);\n\t\t\t\tgetSession().Send(update);\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Return You have no money, fool! */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.NOT_ENOUGH_MONEY);\n\t\t\t\tgetSession().Send(message);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(m_bag.hasSpace(id))\n\t\t{\n\t\t\t/* First, check if the player can afford this */\n\t\t\tif(m_money - q * m_currentShop.getPriceForItem(id) >= 0)\n\t\t\t{\n\t\t\t\t/* Finally, if the item is in stock, buy it */\n\t\t\t\tif(m_currentShop.buyItem(id, q))\n\t\t\t\t{\n\t\t\t\t\tm_money = m_money - q * m_currentShop.getPriceForItem(id);\n\t\t\t\t\tm_bag.addItem(id, q);\n\t\t\t\t\tupdateClientMoney();\n\t\t\t\t\t/* Let player know he bought the item. */\n\t\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.BOUGHT_ITEM);\n\t\t\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\t\tgetSession().Send(message);\n\t\t\t\t\t/* Update player inventory. */\n\t\t\t\t\tServerMessage update = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\t\t\tupdate.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\t\tupdate.addInt(1);\n\t\t\t\t\tgetSession().Send(update);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Return You have no money, fool! */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.NOT_ENOUGH_MONEY);\n\t\t\t\tgetSession().Send(message);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Send You cant carry any more items! */\n\t\t\tServerMessage message = new ServerMessage(ClientPacket.POCKET_FULL);\n\t\t\tgetSession().Send(message);\n\t\t}\n\t}", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew sell().execute(CartActivity.sendObject.toString());\n\t\t\t}", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String postObjectID = customAdapter.getItem(position).getObjectId();\n\n // go to viewwatchitem and pass postobjectd with the intent\n Intent intent = new Intent(this, ViewWatchItem.class);\n intent.putExtra(MESSAGE,postObjectID);\n startActivity(intent);\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tif(dbHelper.InsertItem(listResult))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSharedPreferences sharedPrefer = getSharedPreferences(getResources().getString(R.string.information_string), Context.MODE_PRIVATE);\r\n\t\t\t\t\t\t \tSharedPreferences.Editor sharedEditor = sharedPrefer.edit();\r\n\t\t\t\t\t\t \tsharedEditor.putString(getResources().getString(R.string.masterversion), Common.serverTime);\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tsharedEditor.commit();\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\t\t\t\t\tmsg.obj = \"ProductItemSave\";\r\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "@Override\n public void updateItem(P_CK t) {\n \n }", "public void sendToBack(int id)\n\t{\n\t\tgetObject().sendToBack(id);\n\t\treturn;\n\t}", "private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }", "public void command(byte[] cmdMessage) throws SAPIException{\r\n\t\t\t\t//sends command to RBNB\r\n\t\t\t\t\r\n\t\t\t\tsrcMap.PutDataAsByteArray(srcMap.GetIndex(getParameterToStringById(\"sourceChannelCommandName\")), cmdMessage); //cmds channel\t \t\r\n\t \tsrc.Flush(srcMap); \t\r\n\t\t}", "public void onClick(ClickEvent event) {\n getItemHolder().setSend(true);\n saveHandler.onClick(event);\n }", "private void handleIncQuestrelatedItem(Item item) {\r\n\t\t\tif(item.getQuestId() == this.getCurrentQuest().getId()) {\r\n\t\t\t\tthis.getCurrentQuest().incrementProgress();\r\n\t\t\t}\r\n\t\t\tif(!(this.getCurrentQuest().isCompleted()) && this.getCurrentQuest().getProgress() >= this.getCurrentQuest().getGoal()) {\r\n\t\t\t\tthis.getCurrentQuest().setQuestCompleted(true);\r\n\t\t\t\tthis.getCurrentQuest().setSendMessageNext(true);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t;\r\n\t\t\t}\r\n\t\t}", "public void doItemEffect(RobotPeer robot){\n\t\t//System.out.println(\"Energy = \" + robot.getEnergy());\n\t\trobot.updateEnergy(-15);\n\t\t//System.out.println(\"Poison item USED\");\n\t\t//System.out.println(\"Energy = \" + robot.getEnergy());\n\t\t\n\t}", "private void setSendDataButton() {\n\t\tsetDataInDB();\n\t\tif (!alreadyPushed)\n\t\t\tsendDataToServer();\n\t\treturnOnWorkoutList();\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n sendOperationMessage(data.get(+position));\n }", "private void updateStocks(StockTransferTransactionRequest item) {\n\n Integer updatedQuantity = item.getQuantity();\n StockTraderServiceFactoryIF serviceFactory = new StockTraderServiceFactory();\n DematServiceIF dematService = serviceFactory.dematService();\n\n Optional<Integer> oldQuantity = dematService.getStockStatus(item.getUserName(),\n item.getStock());\n if(oldQuantity != null && oldQuantity.get() > 0) {\n updatedQuantity = oldQuantity.get() + item.getQuantity();\n }\n try(Connection conn = DriverManager.getConnection(Constants.DB_URL,\n Constants.USER,\n Constants.PASS);\n PreparedStatement stmt = conn.prepareStatement(\n Constants.MERGE_STOCK)) {\n stmt.setString(1, item.getUserName());\n stmt.setString(2, item.getStock().toString());\n stmt.setInt(3, updatedQuantity);\n stmt.execute();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void push (E item){\n this.stack.add(item);\n }", "@Override\n public void e_on_mouse_click(EMouseClick e){\n NE_GUI_QuickslotBar.active_slot = id;\n Player.get_player_ent().set_active_item(item); //set player item and update data\n }", "public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}" ]
[ "0.6161333", "0.60320395", "0.5913483", "0.5762684", "0.5650933", "0.5611267", "0.5607754", "0.5586532", "0.55792105", "0.55741477", "0.556396", "0.54972905", "0.54807276", "0.5467972", "0.5460297", "0.5437284", "0.54280776", "0.5402355", "0.5402109", "0.5370555", "0.5356673", "0.5342333", "0.53335106", "0.5323185", "0.5316739", "0.52939284", "0.5282382", "0.5282172", "0.52775615", "0.52476805", "0.52356845", "0.5178316", "0.51745963", "0.5172749", "0.51705414", "0.5170506", "0.51696783", "0.51641595", "0.5160459", "0.5156492", "0.51505154", "0.5148446", "0.5148412", "0.51409435", "0.5134178", "0.5128504", "0.5123944", "0.511316", "0.51106524", "0.5101083", "0.5086498", "0.5078148", "0.5071756", "0.5071507", "0.506647", "0.50570834", "0.505608", "0.50506234", "0.5045294", "0.50437593", "0.5043554", "0.50400317", "0.5035894", "0.50319177", "0.50286007", "0.50285184", "0.50191057", "0.5017242", "0.50150585", "0.5008587", "0.4996334", "0.49938956", "0.49830502", "0.49809182", "0.49732918", "0.49732155", "0.49726805", "0.4972048", "0.49635136", "0.49604255", "0.4957901", "0.49517", "0.4950715", "0.49485463", "0.49460953", "0.49450508", "0.49443862", "0.49382365", "0.4935891", "0.49303654", "0.49298248", "0.4929338", "0.492786", "0.49253953", "0.49180138", "0.49149662", "0.49141014", "0.49099508", "0.49087477", "0.49076024" ]
0.62319994
0
Send the current item to the Green bin
void sendToGreen();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendCurrentState() {\n\ttry {\n\t channel.sendObject(getState());\n\t} catch (IOException e) {\n\t Log.e(\"423-client\", e.toString());\n\t}\n }", "void push(int item) {\r\n\t\tif (tos == 9)\r\n\t\t\tSystem.out.println(\"Stos jest pełny\");\r\n\t\telse\r\n\t\t\tstck[++tos] = item;\r\n\t}", "void sendToRed();", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "private void itemResult(Item item) {\r\n int bidder = item.getBidderId();\r\n AH_AgentThread agent = AuctionServer.agentSearch(bidder);\r\n if (bidder != -1) {\r\n Message release = new Message.Builder()\r\n .command(Message.Command.TRANSFER)\r\n .balance(item.getCurrentBid())\r\n .accountId(bidder)\r\n .senderId(AuctionServer.auctionId);\r\n Message response = BankActions.sendToBank(release);\r\n assert response != null;\r\n if(response.getResponse() == Message.Response.SUCCESS) {\r\n System.out.println(\"Item Transferred\");\r\n agent.winner(item);\r\n } else {\r\n System.out.println(\"Item Transfer failed\");\r\n }\r\n auctionList.remove(item);\r\n }\r\n }", "protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }", "public void sendPurchaseHit() {\n\n // In production code, would need to iterate\n // over all the products in the cart\n // Here we assume that the currently selected dinner\n // is the only thing in the cart\n Product product = new Product()\n .setName(\"dinner\")\n .setPrice(5)\n .setVariant(thisDinner)\n .setId(thisDinnerId)\n .setQuantity(1);\n\n // Get a unique transaction ID\n String tID = Utility.getUniqueTransactionId(thisDinnerId);\n ProductAction productAction =\n new ProductAction(ProductAction.ACTION_PURCHASE)\n .setTransactionId(tID);\n\n Tracker tracker = ((MyApplication) getApplication()).getTracker();\n\n tracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Shopping steps\")\n .setAction(\"Purchase\")\n .setLabel(thisDinner)\n .addProduct(product)\n .setProductAction(productAction)\n .build());\n }", "public void sendUseItem(Creature creature, String modelname, byte rarity, int colorRed, int colorGreen, int colorBlue, int secondaryColorRed, int secondaryColorGreen, int secondaryColorBlue) {\n/* 5774 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5778 */ if (vz.getWatcher().getWurmId() == creature.getWurmId()) {\n/* */ \n/* 5780 */ vz.sendUseItem(null, modelname, rarity, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue);\n/* */ \n/* */ \n/* */ }\n/* 5784 */ else if (creature.isVisibleTo(vz.getWatcher())) {\n/* 5785 */ vz.sendUseItem(creature, modelname, rarity, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue);\n/* */ }\n/* */ \n/* 5788 */ } catch (Exception e) {\n/* */ \n/* 5790 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "public void sendPickupItemPacket(ViewableEntity entity, ViewableEntity item) {\n Object packet = ReflectUtils.newInstance(\"PacketPlayOutCollect\");\n ReflectUtils.setField(packet, \"a\", item.getEntityId());\n ReflectUtils.setField(packet, \"b\", entity.getEntityId());\n ReflectUtils.setField(packet, \"c\", ((Item) item.getEntity()).getItemStack().getAmount());\n sendPacket(packet);\n }", "void sendUpdatePlayer(int x, int y, int color, byte tool);", "@Override\n\tpublic void push(int item) {\n\n\t}", "protected void consume(MonitorItem monItem) {\n BackgroundStatus bgStat= monItem.getStatus();\n for(PushItem item= getNextItem(bgStat); (item!=null); item= getNextItem(bgStat) ) {\n TitleFlasher.flashTitle(\"!! New Image !!\");\n CatalogPanel.setDefaultSearchMethod(CatalogRequest.Method.POLYGON);\n AllPlots.getInstance().getActionReporter().setMonitorItem(monItem);\n String fileName;\n switch (item.pushType) {\n case WEB_PLOT_REQUEST:\n WebPlotRequest wpr= WebPlotRequest.parse(item.data);\n String id;\n if (wpr.getPlotId()!=null) {\n id= wpr.getPlotId();\n }\n else {\n id=IMAGE_CMD_PLOT_ID+idCnt;\n idCnt++;\n wpr.setPlotId(id);\n }\n prepareRequest(wpr);\n break;\n case REGION_FILE_NAME:\n fileName= item.data;\n DS9RegionLoadDialog.loadRegFile(fileName,null,monItem);\n break;\n case TABLE_FILE_NAME:\n fileName= item.data;\n loadTable(fileName,monItem);\n //\n break;\n case FITS_COMMAND_EXT:\n PlotCmdExtension ext= parsePlotCmdExtension(item.data);\n List<PlotCmdExtension> list= AllPlots.getInstance().getExtensionList(null);\n list.add(ext);\n for(MiniPlotWidget mpw : AllPlots.getInstance().getAll()) {\n if (mpw.getPlotView()!=null) {\n mpw.recomputeUserExtensionOptions();\n }\n }\n\n break;\n }\n }\n }", "@Override\n public void onReceiveItem(InventoryItem itemReceived) {\n inventory.add(itemReceived);\n }", "@Override\n public void onClick(View v) {\n for (ObjectStock s : product.getStocks()) {\n s.setControlled(true);\n stockDataSource.updateStock(s);\n }\n adapter.notifyDataSetChanged();\n squareTotalStock.setBackgroundColor(\n Methods.giveColor(squareTotalStock,\n Methods.getInventoryState(product)));\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tmConnectedThread.write(\"send\");\n\t\t\t\t\tmConnectedThread.writeFile();\n\t\t\t\t}", "public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "public static void push()\n\t{\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tlblUpdate.setText(\"It is a push\");\n\t}", "@Override\n public Item vendItem(Item item) {\n allItems.put(item.getItemId(), item);\n return item;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n client.sendMessage(new BuzzInMessage(teamIndex));\n }", "public synchronized void send(StreamItem item) {\n\t\t// The EventBuilder is used to build an event using the\n\t\t// the raw JSON of a tweet\n\t\t//LOGGER.info(item.getTweet().getUserScreenName() + \": \" + item.getTweet().getText());\n\n\t\t// create object to be send\n\t\t// StreamItem si = new StreamItem();\n\t\t// si.setDataChannelId(dataChannelId);\n\t\t// si.setDataSourceId(dataSourceId);\n\t\t// si.setQueryData(query);\n\t\t// si.setTweet(TweetUtils.getTweetFromStatus(status));\n\n\t\tWriter writer = new StringWriter();\n\n\t\t// serialize the java class to XML file\n\t\ttry {\n\t\t\t//JAXBContext jc = JAXBContext.newInstance(StreamItem.class);\n\t\t\t//Marshaller marshaller = jc.createMarshaller();\n\t\t\t// marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tJAXBElement<StreamItem> jaxbElement = new JAXBElement<StreamItem>(new QName(\"streamItem\"), StreamItem.class, item);\n\t\t\tmarshaller.marshallToJSON(jaxbElement, writer);\n\t\t\t\n\t\t\t// KeyedMessage<String, String> data = new KeyedMessage<String,\n\t\t\t// String>(kafkaTopic, DataObjectFactory.getRawJSON(status));\n\t\t\tKeyedMessage<String, String> data = new KeyedMessage<String, String>(kafkaTopic, writer.toString());\n\t\t\tkafkaProducer.send(data);\n\t\t\t//LOGGER.info(writer.toString());\n\n\t\t\t\n\t\t} catch (JAXBException e) {\n\t\t\tLOGGER.info(\"Tweet serialisation error! \" + e);\n\t\t\tLOGGER.log(Level.SEVERE, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.info(\"Stream producer: Error while sending tweet! \" + e);\n\t\t\tLOGGER.log(Level.SEVERE, e.getMessage(), e);\t\t\t\n\t\t\te.printStackTrace();\t\n\t\t}\n\n\n\t}", "void syncItem() {\n\t\t\n\t\t\n\t\tHashMap<String, String> hm = new HashMap<String, String>();\n\t\thm.put(\"id\", \"2\");\n\t\thm.put(\"name\", \"食品\");\n\t\thm.put(\"test\", \"测试\");\n\t\t\n\t\tList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();\n\t\tlist.add(hm);\n\t\tString xml = getSyncXML(\"item\", list);\n\t\tSystem.out.println(xml);\n\t\tsendXMLToServer4Sync(xml);\n\t}", "public void send(int index) { GLTexCoordElt.send(index); }", "@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tLog.d(\"VoMPCall\", \"Picking up\");\n \t\t\t\tServalBatPhoneApplication.context.servaldMonitor\n \t\t\t\t\t\t.sendMessage(\"pickup \"\n \t\t\t\t\t\t+ Integer.toHexString(local_id));\n \t\t\t}", "public void sendInfo(){\r\n\t\tfor(int i = 0; i < attachedChooser.getNumberOfCommandsInChooser(); i++){\r\n\t\t\tthis.writeStringData(i + \" \" + attachedChooser.getCommand(i).toString() + \">>>\"); // >>> denoted the end of the current command to the arduino\r\n\t\t}\r\n\t\tthis.writeStringData(\"!!!\"); //denoted to arduino that we have given it all of the commands and it can do its thing \r\n\t}", "public void onSetNewCurrentItem() {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int pos, long l) {\n Bunny b = bunnyArray.get(pos);\n b.setCuteValue(85);\n b.setCutenessTypeEnum(Bunny.cutenessType.VERYCUTE);\n cupboard().withDatabase(db).put(b);\n bunnyAdapter.notifyDataSetChanged();\n }", "@Override\n public void addItem(ItemType item) {\n if (curArrayIndex > items.length - 1) {\n System.out.println(item.getDetails() + \" - This bin is full. Item cannot be added!\");\n }\n else if (item.getWeight() + curWeight <= maxWeight) {\n curWeight += item.getWeight();\n items[curArrayIndex++] = item;\n }\n else {\n System.out.println(item.getDetails() + \" - Overweighted. This item cannot be added!\");\n }\n if (item.isFragile()) {\n setLabel(\"Fragile - Handle with Care\");\n }\n\n }", "public void sendWieldItem(long creatureId, byte slot, String modelname, byte rarity, int colorRed, int colorGreen, int colorBlue, int secondaryColorRed, int secondaryColorGreen, int secondaryColorBlue) {\n/* 5751 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5755 */ if (vz.getWatcher().getWurmId() == creatureId)\n/* */ {\n/* 5757 */ vz.sendWieldItem(-1L, slot, modelname, rarity, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue);\n/* */ }\n/* */ else\n/* */ {\n/* 5761 */ vz.sendWieldItem(creatureId, slot, modelname, rarity, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue);\n/* */ }\n/* */ \n/* 5764 */ } catch (Exception e) {\n/* */ \n/* 5766 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "public void updateClientBag(int i)\n\t{\n\t\tif(getBag().getItems().get(i) != null)\n\t\t{\n\t\t\tServerMessage message = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\tmessage.addInt(getBag().getItems().get(i).getItemNumber());\n\t\t\tmessage.addInt(getBag().getItems().get(i).getQuantity());\n\t\t\tgetSession().Send(message);\n\t\t}\n\t}", "public void act() \n {\n if(Greenfoot.mouseClicked(this)){\n storeMenu.getLastPressed(this,item,cost);\n changeImage();\n } \n }", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }", "@Override\n public void onBoomButtonClick(int index) {\n }", "public void carry(Item item) {\n\t\trocketWeight += item.getWeight();\n\t}", "@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_TAIL;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }", "@Override\r\n\t\t\tpublic void itemClick(ItemClickEvent event) {\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"buscar Objects\");\r\n\t\t\t\tidPack = (int) event.getItem().getItemProperty(\"IdPack\").getValue();\r\n\t\t\t\tbuscaObjectsByPacks((int) event.getItem().getItemProperty(\"IdPack\").getValue());\r\n\t\t\t\t\r\n\t\t\t}", "private void send() {\n ModelManager.putFeedBack(getCurrentActivity(),\n GlobalValue.myAccount.getId() + \"\", edtTitle.getText()\n .toString(), edtDes.getText().toString(),type, true,\n new ModelManagerListener() {\n\n @Override\n public void onSuccess(Object object) {\n // TODO Auto-generated method stub\n edtDes.setText(\"\");\n edtTitle.setText(\"\");\n MainUserActivity activity = (MainUserActivity) getCurrentActivity();\n activity.backFragment(new AccountFragment());\n }\n\n @Override\n public void onError(VolleyError error) {\n // TODO Auto-generated method stub\n Toast.makeText(self, ErrorNetworkHandler.processError(error), Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\r\n public void run() {\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseRGBCmd(msAccessColor(color)), 0, 0, item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n runCommand = true;\r\n }", "private void green(){\n\t\tthis.arretes_fG();\n\t\tthis.coins_fG();\n\t\tthis.coins_a1G();\n\t\tthis.coins_a2G();\n\t\tthis.aretes_aG();\n\t\tthis.cube[31] = \"G\";\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}", "@Override\r\n\tpublic void run() {\r\n\t\twhile (true){\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tlogger.log(Level.SEVERE, e.toString(), e );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tDate now = new Date();\r\n\t\t\t\r\n\t\t\tfor (Item item : items.values()){\r\n\t\t\t\t\r\n\t\t\t\tif (item.getStatus() == Status.NOT_STARTED && item.getStart().before(now))\r\n\t\t\t\t\titem.setStatus(Status.ONGOING);\r\n\t\t\t\t\r\n\t\t\t\telse if (item.getStatus() == Status.ONGOING && item.getEnd().before(now)){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(item.getHighestBid() != null){\r\n\t\t\t\t\t\tBid winningBid = item.getHighestBid();\r\n\t\t\t\t\t\tif(winningBid.amount > item.getReserve()){\r\n\t\t\t\t\t\t\titem.setStatus(Status.SOLD);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tnote(new Notification(winningBid.userID, Notification.TYPE.SUCCESSFUL_BUY, \"you have won item '\"+item.ID + \"' from seller '\"+item.vendorID));\r\n\t\t\t\t\t\t\tnote(new Notification(item.vendorID, Notification.TYPE.SUCCESSFUL_SALE, \"you have sold item '\"+item.ID + \"' to buyer '\"+item.getHighestBid().userID));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tusers.get(winningBid.userID).addWonItem(winningBid.itemID);\r\n\t\t\t\t\t\t\tlogger.fine(\"item \" + item.ID + \"sold successfully \" );\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tcloseUnsuccessfulItem(item);\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcloseUnsuccessfulItem(item);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfinishedItems.put(item.ID, item);\r\n\t\t\t\t\titems.remove(item.ID);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "public void onClick(ClickEvent event) {\n getItemHolder().setSend(true);\n saveHandler.onClick(event);\n }", "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "private void buyButtonClicked(final ShopItem shopItem) {\n int cost = shopItem.getPrice();\n if (GameActivity.buyItem(cost)) {\n shopItem.setState(ItemStatusID.BOUGHT);\n updateUI();\n }\n }", "public void handleBuyEggCommand(){\n if(Aquarium.money >= EGGPRICE) {\n Aquarium.money -= EGGPRICE;\n Aquarium.egg++;\n }\n }", "@Override\n public void onSmelting(EntityPlayer player, ItemStack item) \n {\n \n }", "@Override\r\n\tpublic void itemAdded() {\r\n\t\tif (sendLines.size() == 1){\r\n\t\t\tgrblPort.addNewLineListener(this);\r\n\t\t\tgrblPort.sendDataLine(sendLines.get(0));\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "protected void sendNewLayerToWatchers(Item item) {\n/* 5295 */ logger.log(Level.INFO, \"Tile at \" + this.tilex + \", \" + this.tiley + \" sending secondary\");\n/* 5296 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5300 */ vz.justSendNewLayer(item);\n/* */ }\n/* 5302 */ catch (Exception e) {\n/* */ \n/* 5304 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew sell().execute(CartActivity.sendObject.toString());\n\t\t\t}", "private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }", "private void displayItem(){\n synchronized(this){\n for(ClientHandler client : clientArray){\n client.getOutput().println(\"\" + currentItem.getItem() +\n \" price starts at \" + currentItem.getStartingPrice() +\n \".\\n\");\n }\n }\n }", "public synchronized void Insere(int item, int id){\n try{\n while(count == N){\n System.out.println(\"pc.insereBloqueado(\" + id + \")\");\n wait();\n }\n\n buffer[in] = item;\n in = (in + 1) % N;\n count++;\n\n System.out.println(\"# P[\" + id + \"] inseriu \" + id);\n\n // Imprime buffer\n System.out.print(\"# Buffer atualizado = \");\n for(int i = 0; i < N; i++){\n System.out.print(buffer[i] + \" \");\n }\n System.out.println(\"\");\n\n notifyAll();\n } catch(InterruptedException e){ }\n }", "public void push(int val)\r\n throws IOException {\r\n getSocket();\r\n pout.println(\"push \" + val);\r\n pout.flush();\r\n }", "protected void send(InternalCommunicationNetwork tank){\n\t\ttank.put(0,this.rain_level);\n\t}", "@Override\r\n\tpublic void process() {\n\t\tSystem.out.println(\"this is singleBOx \" + this.toString());\r\n\t}", "@Override\n\tpublic void invokeHandsel(final BackPackItem item) {\n\t\tif (((item.Attribute[3] >> 1) & 1) == 0) {\n\t\t\tdialog = new HandselDialog(BackPackActivity.this, item.backpackName);\n\t\t\tdialog.setListener(new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// 发送赠送\n\t\t\t\t\tlong handselId = 0;\n\t\t\t\t\tshort handselNum = 1;\n\t\t\t\t\tboolean enable = true;\n\t\t\t\t\tResources resource = BackPackActivity.this.getResources();\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandselId = Long.parseLong(HandselDialog.handselId);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tToast.makeText(getApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_id_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tenable = false;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandselNum = Short.parseShort(HandselDialog.handselNum);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_largess_count_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tenable = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (guid == handselId) {\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_largess_myself_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t} else if (item.newHoldCount >= handselNum && enable\n\t\t\t\t\t\t\t&& (handselNum != 0)) {\n\t\t\t\t\t\trequestHandsel(handselId, item.id, handselNum,\n\t\t\t\t\t\t\t\titem.backpackName);\n\t\t\t\t\t} else if (enable) {\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_not_enaghe_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));\n\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\tdialog.show();\n\t\t} else {\n\t\t\tResources resource = BackPackActivity.this.getResources();\n\t\t\tToast.makeText(getApplication(),\n\t\t\t\t\tresource.getString(R.string.package_binded_error),\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}\n\t}", "private void botBuy(Stock stock, int numShares){\n player.getShares().set(game.getIndex(stock), player.getShares().get(game.getIndex(stock)) + numShares);\n player.setFunds(-numShares*(stock.getSharePrice()+3));\n System.out.println(\"purchase made\"); //rem\n }", "public void sendNBTPacket()\n\t{\n\t\tif (!this.worldObj.isRemote)\n\t\t{\n\t\t\tNBTTagCompound tag = new NBTTagCompound();\n\t\t\tthis.writeToNBT(tag);\n\t\t\tPacketHandler.sendPacketToClients(ResonantInduction.PACKET_TILE.getPacket(this, SimplePacketTypes.NBT.name, this, tag), worldObj, new Vector3(this), 64);\n\t\t}\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n DBObject dbo = (DBObject) parent.getItemAtPosition(position);\n commManager.assignBuoy(currentBoat,dbo.getUuidString());\n onBackPressed();\n }", "public void push(final String queueName, final String item);", "@Override\r\n\tpublic void push(int item) {\n\t\tif(tos == stack.length-1)\r\n\t\t\tSystem.out.println(\"스택이 꽉참\");\r\n\t\telse\r\n\t\t\tstack[++tos] = item;//화살표 즉시 +1 한후 들어온 값 대입\r\n\t}", "private void sendStatus() {\n\n // Only send status if we have UI bound to service\n if (isBound) {\n try {\n Message msg = Message.obtain(null, RadioPlayerFragment.UPDATE_STATUS);\n Bundle bundle = new Bundle();\n bundle.putString(RadioPlayerFragment.STATUS, mpState);\n msg.setData(bundle);\n fragmentMessenger.send(msg);\n } catch (RemoteException e) {\n Log.e(LOG_TAG, \"Cannot send status: \" + mpState);\n }\n }\n\n }", "void sendToDB() {add to sell SellItem\n//\n for (int i = 0; i < menuItems.size(); i++) {\n Map<String, String> params = new HashMap<>();\n params.put(\"user_sell_it_id\", session.getshared(\"id\"));\n params.put(\"sell_menu_id\", sellMenuId);\n params.put(\"item_name\", menuItems.get(i).getItem_name());\n params.put(\"item_price\", menuItems.get(i).getItem_price().toString());\n params.put(\"item_count\", menuItems.get(i).getItem_count().toString());\n params.put(\"item_id\", menuItems.get(i).getItem_id().toString());\n params.put(\"f4\", menuItems.get(i).getF4());\n // params.put(\"item_cost\", String.valueOf(menuItems.get(i).getItem_cost());\n// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());\n// String dt = sdf.format(new Date());\n// params.put(\"datetime\", dt);\n\n//\n if (menuItems.get(i).getId() == null) {\n\n sendItems(addSellMenuItemURL, params);\n\n } else {\n //updateitems using the id and count\n Map<String, String> upParams = new HashMap<>();\n upParams.put(\"id\", menuItems.get(i).getId().toString());\n upParams.put(\"item_count\", menuItems.get(i).getItem_count().toString());\n // upParams.put(\"datetime\", dt);\n sendItems(updatURL, upParams);\n }\n\n\n\n }\n\n\n show_menu(Integer.valueOf(sellMenuId));\n\n\n }", "public void handleBuyGuppyCommand() {\n if (Aquarium.money >= GUPPYPRICE) {\n guppyController.addNewEntity();\n Aquarium.money -= GUPPYPRICE;\n }\n }", "@Override\n\tpublic void push(E item) {\n\t\t\n\t}", "public void transferItem(Items item) throws Exception {\n\t\tif (item.getHolder() instanceof Monsters) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse if (item.getHolder() instanceof Backpacks) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse\n\t\t\tthrow new Exception(\"The transaction is only possible between monsters and/or backpacks.\");\n\t}", "public void tick() {\r\n assert (ic != null);\r\n \r\n Iterator<Item> it = items.iterator();\r\n while (it.hasNext()) {\r\n ic.setItem(it.next());\r\n ic.tick();\r\n if (ic.isItemPickedUp()) {\r\n it.remove();\r\n }\r\n }\r\n }", "public void sendWearItem(long creatureId, int itemId, byte bodyPart, int colorRed, int colorGreen, int colorBlue, int secondaryColorRed, int secondaryColorGreen, int secondaryColorBlue, byte material, byte rarity) {\n/* 5706 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5710 */ if (vz.getWatcher().getWurmId() == creatureId)\n/* */ {\n/* 5712 */ vz.sendWearItem(-1L, itemId, bodyPart, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue, material, rarity);\n/* */ }\n/* */ else\n/* */ {\n/* 5716 */ vz.sendWearItem(creatureId, itemId, bodyPart, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue, material, rarity);\n/* */ }\n/* */ \n/* 5719 */ } catch (Exception e) {\n/* */ \n/* 5721 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "public void onClickGreen(View view){\n int col;\n col = 3;\n byte[] colorBytes = {(byte)Color.red(col),\n (byte)Color.green(col),\n (byte)Color.blue(col),\n 0x0A};\n //remove spurious line endings so the serial device doesn't get confused\n for (int i=0; i<colorBytes.length-1; i++){\n if (colorBytes[i] == 0x0A){\n colorBytes[i] = 0x0B;\n }\n }\n //send the color to the serial device\n if (sPort != null){\n try{\n sPort.write(colorBytes, 500);\n }\n catch (IOException e){\n Log.e(TAG, \"couldn't write color bytes to serial device\");\n }\n }\n }", "public void sendStartCheckoutHit() {\n Product product = new Product()\n .setName(\"dinner\")\n .setPrice(5)\n .setVariant(thisDinner)\n .setId(thisDinnerId)\n .setQuantity(1);\n\n ProductAction productAction =\n new ProductAction(ProductAction.ACTION_CHECKOUT);\n\n Tracker tracker = ((MyApplication) getApplication()).getTracker();\n\n tracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Shopping steps\")\n .setAction(\"Start checkout\")\n .setLabel(thisDinner)\n .addProduct(product)\n .setProductAction(productAction)\n .build());\n }", "@Override\n\tpublic void onHit(WorldObj obj, Items item) {\n\t\t\n\t\tcounter++;\n\t}", "public void fireOnItemAddedToInventoryCommands();", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n if (mHandler != null) {\n Message message = mHandler.obtainMessage();\n Bundle bundle = new Bundle();\n message.what = Constants.FROM_CANERA;\n bundle.putString(\"img_path\", sublist.get(position).getImagePath());\n message.setData(bundle);\n mHandler.sendMessage(message);\n }\n }", "public void sendObject(Sendable s) {\r\n\t\t// code to send a single object\r\n\t\tPackager pack = new Packager();\r\n\t\tpack.firstObject = true;\r\n\t\t// packagers.add(pack);\r\n\t\ts.send(this, pack);\r\n\t\tpack.firstObject = false;\r\n\t\ttry {\r\n\t\t\tpack.send();\r\n\t\t\tif (autoFlush) {\r\n\t\t\t\tdos.flush();\r\n\t\t\t}\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\r\n\t}", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "public void mousePressed(MouseEvent me) {\r\n Object obj = getElementAt(me.getX(), me.getY());\r\n if (obj != null) {\r\n ((Brick) obj).setBrickColor(Color.BLUE);\r\n ((Brick) obj).setColor(Color.BLUE);\r\n }\r\n }", "@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_HEAD;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg=handler.obtainMessage();\r\n\t\t\t\tmsg.arg1=position;\r\n\t\t\t\tmsg.what=1;\r\n\t\t\t\tmsg.sendToTarget();\r\n\t\t\t}", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "private void showProgramData(ItemEvent itemEvent) {\n\n if (itemEvent.getStateChange() == ItemEvent.SELECTED) {\n\n setCurrentChannel(itemEvent.getItem().toString());\n scheduledUpdate();\n\n }\n }", "private void handleIncQuestrelatedItem(Item item) {\r\n\t\t\tif(item.getQuestId() == this.getCurrentQuest().getId()) {\r\n\t\t\t\tthis.getCurrentQuest().incrementProgress();\r\n\t\t\t}\r\n\t\t\tif(!(this.getCurrentQuest().isCompleted()) && this.getCurrentQuest().getProgress() >= this.getCurrentQuest().getGoal()) {\r\n\t\t\t\tthis.getCurrentQuest().setQuestCompleted(true);\r\n\t\t\t\tthis.getCurrentQuest().setSendMessageNext(true);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t;\r\n\t\t\t}\r\n\t\t}", "public void itemStateChanged(ItemEvent e) {\n toggleBeep();\n }", "private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }", "@Override\n public void onSmelting(EntityPlayer player, ItemStack item) {\n }", "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 }", "@Override\n public void notifyUpdate() {\n Update();\n //Invia all'activity di questo frammento il totale speso per aggiornare la sezione di controllo del budget\n onSendTotSpent.ReceiveTotSpent(contactGiftAdapter.totSpent());\n }", "public void sendDataToCrQueue() {\n List<Shares> sharesList = new ArrayList<>();\n amqpTemplate.convertAndSend(\"queueTestKey\", sharesList);\n }", "public static ClickableItem globalBuff() {\r\n\t\treturn new ClickableItem(ItemFactory.create(Material.DIAMOND_BLOCK, ChatColor.YELLOW + ChatColor.BOLD.toString() + \"Global Buffs\", ChatColor.AQUA + \"More treasure, less grind.\")) {\r\n\t\t\t@Override\r\n\t\t\tpublic void doClick(Player player) {\r\n\t\t\t\tplayer.closeInventory();\r\n\t\t\t\tCosmeticSuite cs = CosmeticSuite.getInstance();\r\n\t\t\t\tFileConfiguration config = cs.getConfig();\r\n\t\t\t\tString link = config.getString(\"buy-link\", CosmeticSuite.PREFIX + \"Purchase Global Loot Buffs at \" + ChatColor.UNDERLINE + \"buy.arkhamnetwork.org\");\r\n\t\t\t\tlink = ChatColor.translateAlternateColorCodes('&', link);\r\n\t\t\t\tplayer.sendMessage(link);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\tComands comand = null;\n\t\t\tswitch(selected){\n\t\t\tcase 0: comand = Comands.DROP_ITEM_0; break;\n\t\t\tcase 1: comand = Comands.DROP_ITEM_1; break;\n\t\t\tcase 2: comand = Comands.DROP_ITEM_2; break;\n\t\t\tcase 3: comand = Comands.DROP_ITEM_3; break;\n\t\t\tcase 4: comand = Comands.DROP_ITEM_4; break;\n\t\t\tcase 5: comand = Comands.DROP_ITEM_5; break;\n\t\t\tcase 6: comand = Comands.DROP_ITEM_6; break;\n\t\t\tcase 7: comand = Comands.DROP_ITEM_7; break;\n\t\t\tcase 8: comand = Comands.DROP_ITEM_8; break;\n\t\t\tcase 9: comand = Comands.DROP_ITEM_9; break;\n\t\t\tdefault: return;\n\t\t\t}\n\t\t\ttry{\n\t\t\t\tcomms.write(comand);\n\t\t\t}\n\t\t\tcatch(IOException err){\n\t\t\t\tSystem.out.println(err);\n\t\t\t}\n\t\t}", "private void sendStatus() throws IOException {\n\t\tWriteStatus status = new WriteStatus.Builder().build();\n\t\tstatus.writeTo(out);\n\t\tout.flush();\n\t}", "@Override\n public int itemsToSend() {\n return itemsToSend;\n }", "public static void handleBoostPotionShare(Player player, Item item) {\n\t\t\n\t}", "private void setSendDataButton() {\n\t\tsetDataInDB();\n\t\tif (!alreadyPushed)\n\t\t\tsendDataToServer();\n\t\treturnOnWorkoutList();\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n sendOperationMessage(data.get(+position));\n }", "@Override\n protected void sendUpdatedStateTo(GamePlayer p) {\n PigGameState copy = new PigGameState(pgs);\n p.sendInfo(copy);\n }", "public void tick() {\n\t\tground.tick(this);\n\t\tfor(Item item : new ArrayList<>(items)) {\n\t\t\titem.tick(this);\n\t\t}\n\t}", "private void sendBucks() {\n\t\tint userid = userID;\n\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"User: \" + userList.get(i).getId() + \"\\t\" + \"username: \" + userList.get(i).getUsername() + \"\\n\");\n\t\t}\n\n\t\tSystem.out.println(\"Select and ID you want to send TE Bucks to: \\n\");\n\n\t\tint sendTo = Integer.parseInt(scan.nextLine());\n\n\t\tSystem.out.println(\"How much money?\");\n\t\tBigDecimal money = (new BigDecimal(scan.nextLine()));\n\n\t\ttry {\n\t\t\tif (accountServices.getBalanceByAccountID(userid).compareTo(money) < 0) {\n\t\t\t\tSystem.out.println(\"You do not have enough funds to make transfer\");\n\t\t\t\tsendBucks();\n\n\t\t\t}\n\t\t} catch (AccountsServicesException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\tTransfers holder = sendTransfer(userid, sendTo, money);\n\t\taccountServices.sendMoney(userid, holder);\n\n\t\ttry {\n\t\t\tSystem.out.println(\"$\" + money + \" sent to \" + sendTo);\n\t\t\tSystem.out.println(\"New balance: $\" + accountServices.getBalanceByAccountID(userid));\n\t\t} catch (AccountsServicesException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic String execute() {\n\t\treturn \"Empezando a blendiar........ \" + receiver.blend();\n\t}", "public void carry(Item item)\n {\n\n // Check if item to be added doesn't go over carry limit.\n if (!((getPerson(PLAYER).getWeight() + item.getWeight()) > getPerson(PLAYER).getCarryLimit())){\n getPerson(PLAYER).getInventory().getItems().add(item); \n\n removeRoomItem(item);\n System.out.println();\n System.out.println(item.getName() + \" has been added to your bag.\");\n System.out.println(\"You are carrying \" + getPerson(PLAYER).getWeight()+ \"kg.\");\n }\n else {\n System.out.println(\"Your bag is too heavy to add more items.\");\n }\n\n }", "public void send() {\n\t}" ]
[ "0.6230949", "0.60766745", "0.60085225", "0.58139575", "0.57281536", "0.57230896", "0.5720287", "0.5663376", "0.56512755", "0.55898416", "0.55506945", "0.55155724", "0.5511894", "0.5505762", "0.5491472", "0.5490006", "0.547423", "0.5471005", "0.54704183", "0.5463903", "0.5460262", "0.54535526", "0.5450828", "0.5449939", "0.5447853", "0.54461354", "0.5422321", "0.54153377", "0.5375204", "0.5363509", "0.5355307", "0.53491855", "0.5347527", "0.5338252", "0.533691", "0.53323066", "0.5328288", "0.5326492", "0.5326338", "0.5320104", "0.5319508", "0.53164387", "0.53132623", "0.52893704", "0.5281959", "0.5276273", "0.527493", "0.5274243", "0.527254", "0.5255437", "0.5251855", "0.5249397", "0.52375656", "0.52314985", "0.5228425", "0.5224203", "0.52197987", "0.5217194", "0.52107835", "0.5209666", "0.5209609", "0.51793635", "0.51768535", "0.5170521", "0.5170076", "0.51692814", "0.51599455", "0.5155804", "0.5154338", "0.5153461", "0.51533026", "0.5152397", "0.51500356", "0.51440823", "0.51440823", "0.513535", "0.51319647", "0.5126051", "0.51247394", "0.51238906", "0.51144105", "0.51095015", "0.51046044", "0.5103054", "0.5102716", "0.5098907", "0.50963247", "0.5094863", "0.50931567", "0.5092743", "0.5091162", "0.50894606", "0.5081652", "0.50807136", "0.5079949", "0.50791955", "0.5076749", "0.5075948", "0.50744504", "0.50740725" ]
0.65422994
0
Send the current item to the Reject bin
void reject();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reject() {\n rejectBus.add(applicantQueue.dequeue());\n }", "void notifyReject(final TradeInstruction instruction);", "public void itemOkay() \r\n\t{\n\t\t\r\n\t}", "public void rejectProduct() {\n self.increaseRejectCount();\n env.updateMachine(self);\n }", "private void itemResult(Item item) {\r\n int bidder = item.getBidderId();\r\n AH_AgentThread agent = AuctionServer.agentSearch(bidder);\r\n if (bidder != -1) {\r\n Message release = new Message.Builder()\r\n .command(Message.Command.TRANSFER)\r\n .balance(item.getCurrentBid())\r\n .accountId(bidder)\r\n .senderId(AuctionServer.auctionId);\r\n Message response = BankActions.sendToBank(release);\r\n assert response != null;\r\n if(response.getResponse() == Message.Response.SUCCESS) {\r\n System.out.println(\"Item Transferred\");\r\n agent.winner(item);\r\n } else {\r\n System.out.println(\"Item Transfer failed\");\r\n }\r\n auctionList.remove(item);\r\n }\r\n }", "public void markUnsold(){\n\n myMaxRejectCountCount--;\n }", "public void setReject(String reject) {\n this.reject = reject;\n }", "protected abstract void sendCancel(Status reason);", "public void onReject (View view) {\n\n\t\t// Grab the list of items from the latest search (list starts with business currently displayed).\n\t\tList<Business> currentSearchList = ApplicationData.getInstance().getListCurrentSearch();\n\n\t\t// Add the current business to the history.\n\t\tApplicationData.getInstance().addBusinessToHistory(\n\t\t\t\tcurrentSearchList.get(0),\n\t\t\t\tfalse\t\t\t\t\t\t\t\t// false since rejected\n\t\t);\n\n\t\t// Now remove the index 0 item from the current search list and set the new top item to currently viewable\n\t\t// restaurant in restaurant selection\n\t\tcurrentSearchList.remove(0);\n\t\tif (currentSearchList.size() == 0) {\n\t\t\tsetViewToNoMoreResults(\"No more search results.\");\n\t\t\treturn;\n\t\t}\n\t\tBusiness newTop = currentSearchList.get(0);\n\t\ttextViewRestaurantName.setText(newTop.name());\n\t\ttextViewRestaurantDistance.setText(\"\" + (Math.round(newTop.distance())));\n\t\t(new taskLoadImage(\n\t\t\t\timageButtonRestaurantImage,\n\t\t\t\tnewTop.imageUrl()\n\t\t)).execute();\n\n\t}", "public String getReject() {\n return reject;\n }", "@Override\n\tpublic int updateRejectWannaBook(String num) throws RemoteException {\n\t\treturn 0;\n\t}", "void onCancel(int index, int begin, int length)\n {\n // validate common block parameters\n boolean correct = torrent.validateBlock(index, begin, length);\n if (!correct) {\n close(Peer.CloseReason.PROTOCOL_ERROR);\n return;\n }\n\n // check if are processing this request right now\n for (int i = 0; i < peerBlockRequests.size(); i++) {\n StdPeerMessage pm = peerBlockRequests.get(i);\n if ((pm.index == index)\n && (pm.begin == begin)\n && (pm.length == length))\n {\n peerBlockRequests.remove(i);\n pmCache.release(pm);\n break;\n }\n }\n\n // check if response has been enqueued,\n // could be skipped if found in pBR\n for (int i = 0; i < sendQueue.size(); i++) {\n StdPeerMessage pm = sendQueue.get(i);\n if ((pm.type == StdPeerMessage.PIECE)\n && (pm.index == index)\n && (pm.begin == begin)\n && (pm.length == length))\n {\n sendQueue.remove(i);\n // let storage to unlock block of data\n // and return it into cache of blocks\n TorrentStorage.Block block = (TorrentStorage.Block) pm.params;\n block.release();\n\n pmCache.release(pm);\n break;\n }\n }\n }", "public static void DeliverMessage(Object pipe) {\r\n\r\n\t\tString command\t= ((Pipe)pipe).getCommand();\r\n\t\tObject data\t\t= ((Pipe)pipe).getData();\r\n\t\t\r\n\t\tif(command.equals(\"loadBookBySerialResult\")) {\t\t\r\n\t\t\tBook book = (Book)data;\t\t\t\r\n\t\t\tManyBooks.clearStaticbooks();\r\n\t\t\tManyBooks.addBookToStatic(book);\r\n\t\t\tManyBooks.lookForThisBookBySerial = book.getSerial();\r\n\t\t\tRouter.RentByLibrarian();\r\n\t\t}\r\n\t\telse if(command.equals(\"attemptRentBookResult\")) {\r\n\t\t\tboolean answer = (boolean)data;\r\n\t\t\tString body = answer? \"Book was rented succesfully!\" : \"Book couldn't be rented for some reason!\";\r\n\t\t\tPlatform.runLater(new AlertBox(1, \"Rent A Book\", body, \"okay\"));\r\n\t\t}\r\n\t}", "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}", "@Override\r\n public void onClick(View view) {\n entries.remove(position);\r\n notifyItemRemoved(position);\r\n notifyItemRangeChanged(position, entries.size());\r\n Toast.makeText(mContext, \"Rejected : \" + u, Toast.LENGTH_SHORT).show();\r\n }", "public String getRejectReason() {\n\t\treturn rejectReason;\n\t}", "void reject(int errorCode) throws ImsException;", "@Override\r\n public void onClick(View v) {\n try {\r\n postDatatoServer(\"reject_request\", notification.toJSON());\r\n fetchDatafromServer(\"notifications\");\r\n } \r\n catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n public void cancelMsg() {\n System.out.println(\"Transaction has been cancelled for gas pump #1..\");\r\n }", "@Override\n\tpublic void invokeHandsel(final BackPackItem item) {\n\t\tif (((item.Attribute[3] >> 1) & 1) == 0) {\n\t\t\tdialog = new HandselDialog(BackPackActivity.this, item.backpackName);\n\t\t\tdialog.setListener(new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// 发送赠送\n\t\t\t\t\tlong handselId = 0;\n\t\t\t\t\tshort handselNum = 1;\n\t\t\t\t\tboolean enable = true;\n\t\t\t\t\tResources resource = BackPackActivity.this.getResources();\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandselId = Long.parseLong(HandselDialog.handselId);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tToast.makeText(getApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_id_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tenable = false;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandselNum = Short.parseShort(HandselDialog.handselNum);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_largess_count_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tenable = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (guid == handselId) {\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_largess_myself_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t} else if (item.newHoldCount >= handselNum && enable\n\t\t\t\t\t\t\t&& (handselNum != 0)) {\n\t\t\t\t\t\trequestHandsel(handselId, item.id, handselNum,\n\t\t\t\t\t\t\t\titem.backpackName);\n\t\t\t\t\t} else if (enable) {\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplication(),\n\t\t\t\t\t\t\t\tresource.getString(R.string.package_not_enaghe_error),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));\n\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\tdialog.show();\n\t\t} else {\n\t\t\tResources resource = BackPackActivity.this.getResources();\n\t\t\tToast.makeText(getApplication(),\n\t\t\t\t\tresource.getString(R.string.package_binded_error),\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}\n\t}", "public void clickbtnReject() {\n\t\twaitForElementClickable(10,btnReject);\n\t\tdriver.findElement(btnReject).click();\n\t\tsleep(1);\n\t}", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "public void setRejected(boolean value) {\n this.rejected = value;\n }", "@Override\n public void doPickupItem(final GameObject object) {\n if (!object.isItem()) {\n _log.warn(\"trying to pickup wrong target.\" + getTarget());\n return;\n }\n\n sendActionFailed();\n stopMove();\n\n final ItemInstance item = (ItemInstance) object;\n\n synchronized (item) {\n if (!item.isVisible()) {\n return;\n }\n\n // Check if me not owner of item and, if in party, not in owner party and nonowner pickup delay still active\n if (!ItemFunctions.checkIfCanPickup(this, item)) {\n final SystemMessage sm;\n if (item.getItemId() == ItemTemplate.ITEM_ID_ADENA) {\n sm = new SystemMessage(SystemMsg.YOU_HAVE_FAILED_TO_PICK_UP_S1_ADENA);\n sm.addNumber(item.getCount());\n } else {\n sm = new SystemMessage(SystemMsg.YOU_HAVE_FAILED_TO_PICK_UP_S1);\n sm.addItemName(item.getItemId());\n }\n sendPacket(sm);\n return;\n }\n\n // Herbs\n if (item.isHerb()) {\n final SkillEntry[] skills = item.getTemplate().getAttachedSkills();\n if (skills.length > 0) {\n for (final SkillEntry skill : skills) {\n altUseSkill(skill, this);\n if (getServitor() != null && getServitor().isSummon() && !getServitor().isDead()) {\n getServitor().altUseSkill(skill, getServitor());\n }\n }\n }\n\n broadcastPacket(new GetItem(item, getObjectId()));\n item.deleteMe();\n return;\n }\n\n final FlagItemAttachment attachment = item.getAttachment() instanceof FlagItemAttachment ? (FlagItemAttachment) item.getAttachment() : null;\n\n if (!isInParty() || attachment != null) {\n if (pickupItem(item, Log.Pickup)) {\n broadcastPacket(new GetItem(item, getObjectId()));\n broadcastPickUpMsg(item);\n item.pickupMe();\n }\n } else {\n getParty().distributeItem(this, item, null);\n }\n }\n }", "public void sendPickupItemPacket(ViewableEntity entity, ViewableEntity item) {\n Object packet = ReflectUtils.newInstance(\"PacketPlayOutCollect\");\n ReflectUtils.setField(packet, \"a\", item.getEntityId());\n ReflectUtils.setField(packet, \"b\", entity.getEntityId());\n ReflectUtils.setField(packet, \"c\", ((Item) item.getEntity()).getItemStack().getAmount());\n sendPacket(packet);\n }", "@Override\n\tpublic void processConfirmItemButtonClick(ProcessConfirmItemObjectEvent e) {\n\t\t\n\t}", "@Then(\"^I get the same item back$\")\n\tpublic void i_get_the_same_item_back() throws Throwable {\n\t throw new PendingException();\n\t}", "protected boolean processAbortOffered(boolean toUser, int offerIndex, String oppName){\n return false;\n }", "void sendCancelMessage();", "public int makeBid(AuctionItem item, int secretKey){\n Bid oldBid = item.getBid();\n oldBid.setSecretKey(secretKey);\n item.setBid(oldBid);\n Message<AuctionItem> message = new Message<>(Message.MessageIdentifier.\n MAKE_BID,item);\n Message<String> reply = sendMSG(message);\n switch( reply.getMessageIdentifier() ) {\n case BID_REJECTED_INADEQUATE:\n return 0;\n case BID_REJECTED_NSF:\n return 1;\n case BID_ACCEPTED:\n return 2;\n case CASE_NOT_FOUND:\n default:\n return -1;\n }\n }", "@Override\n public void onReceiveItem(InventoryItem itemReceived) {\n inventory.add(itemReceived);\n }", "protected void handleBuy(Message m) {\n return;\n }", "public void rejectApplication(MortgageApplication application, Applicant applicant, String message) throws SQLException, MessagingException {\r\n\t\tapplicationDao.updateMortgageApplicationStatus(\"R\", application.getApplicationId());\r\n\t\tsendApplicationRejectedMail(application, applicant, message);\r\n\t}", "@Override\r\n\tpublic void rejectApplier(Applier applier) {\n\t\tapplier.setStatus(\"Rejected\");\r\n\t\tem.merge(applier);\r\n\r\n\t}", "public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}", "void rejectNewOrders();", "@Override\n public void finalizeOffer(Item item, Offer offer) {\n itemRepo.acceptOffer(item,offer);\n }", "private void handleDecQuestrelatedItem(Item item) {\r\n\t\t\tif(item.getQuestId() == this.getCurrentQuest().getId()) {\r\n\t\t\t\tthis.getCurrentQuest().decrementProgress();\r\n\t\t\t}\r\n\t\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 }", "protected void onDiscard() {\r\n this.setActive(false);\r\n }", "void rejectOrder(int id, String reason) throws ServiceException;", "@Override\n public Event performAction(RemoteView remoteView) {\n\n return remoteView.weaponDiscardChoice(getWeapons());\n }", "private void sendReceiveRes(){\n\t}", "@Override\n public int cancelTransaction() {\n System.out.println(\"Please make a selection first\");\n return 0;\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 }", "@Override\n public void onClick(View v) {\n if((currentRiderIndex+1) == totalRiderIndex){\n sendFailedNotificationToClient(dataForStoreOrder);\n //finish();\n }else {\n sendNotificationToNextRider(dataForStoreOrder);\n //finish();\n }\n }", "@Override\r\n\tpublic void quack() {\n\t\tsuper.gobble();\r\n\t}", "@Override\r\n\t@SuppressWarnings(\"deprecation\")\r\n\tpublic void raiseEvent(Event e) {\r\n\t\tPlayer p = ((PlayerInteractEvent) e).getPlayer();\r\n\t\tPlayerStats stats = plugin.getStats(p);\r\n\t\tif (stats.subtractmoney(cost)) {\r\n\t\t\tif (!items.isEmpty()) {\r\n\t\t\t\tLinkedList<ItemStack> givenItems = new LinkedList<ItemStack>();\r\n\t\t\t\tfor (ItemStack item : items.getItemStacks()) {\r\n\t\t\t\t\tgivenItems.add(item);\r\n\t\t\t\t\tHashMap<Integer, ItemStack> failed = p.getInventory().addItem(item);\r\n\r\n\t\t\t\t\tif (failed != null && failed.size() > 0) {\r\n\t\t\t\t\t\t// the inventory may be full\r\n\t\t\t\t\t\tTribu.messagePlayer(p, (plugin.getLocale(\"Message.UnableToGiveYouThatItem\")),ChatColor.RED);\r\n\t\t\t\t\t\tstats.addMoney(cost);\r\n\t\t\t\t\t\tfor (ItemStack i : givenItems)\r\n\t\t\t\t\t\t\tp.getInventory().remove(i);\r\n\t\t\t\t\t\tgivenItems = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tp.updateInventory();\r\n\t\t\t\t// Alright\r\n\t\t\t\tTribu.messagePlayer(p,String.format(plugin.getLocale(\"Message.PurchaseSuccessfulMoney\"), String.valueOf(stats.getMoney())),ChatColor.GREEN);\r\n\t\t\t} else {\r\n\t\t\t\tTribu.messagePlayer(p,plugin.getLocale(\"Message.UnknownItem\"),ChatColor.RED);\r\n\t\t\t\tstats.addMoney(cost);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tTribu.messagePlayer(p,plugin.getLocale(\"Message.YouDontHaveEnoughMoney\"),ChatColor.RED);\r\n\t\t}\r\n\r\n\t}", "@Override\n public Item vendItem(Item item) {\n allItems.put(item.getItemId(), item);\n return item;\n }", "public void reportIrreversibleChange() {\r\n Assert.isTrue(isReceiving());\r\n irreversibleChangeReported = true;\r\n }", "protected void handleRejectProposal(ACLMessage cfp, ACLMessage propose, ACLMessage reject) {\r\n\t\twindow.println(\"Agent \"+reject.getSender().getLocalName()+\" a rejete la proposition pour \" + reject.getContent());\r\n\t}", "private int notify(Wishlist wishlist, WishlistItem watched, InventoryItem invItem) {\n\t\tif (watched.isNotified) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tSystem.out.println(invItem.name + \" is in stock. Notify \" + wishlist.distributorID);\n\t\tif (notifier.notifyInStock(wishlist.notificationEmail, invItem.name)) {\n\t\t\twatched.setNotified();\n\t\t}\n\t\treturn 1;\n\t}", "public DocApproveRejectListModel() {\n super();\n }", "@Test\n\tpublic void rejectedOfferCanNotBeAccepted() {\n\t}", "protected void handleRejectProposal(ACLMessage cfp, ACLMessage propose, ACLMessage reject) {\r\n\t\t}", "@Override\r\n\tpublic void sellItem(AbstractItemAPI item) {\n\t\titems.remove(item);\r\n\t\t\r\n\t}", "private void offer() {\n\t\t\t\n\t\t}", "public void notifyResultFromMarket(ArrayList<Resource> buffer) throws IOException, InterruptedException {\n notifyToOneObserver(new ResultFromMarketMessage(buffer) );\n notifyAllObserverLessOne(new ResultFromMarketNotCurrentMessage(currentPlayer.getNickName(),buffer) );\n }", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "@Override\n public Consumer<InventoryClickEvent> getAcceptAction() {\n return event -> {\n event.setCancelled(true);\n\n this.grantHandler.register(new Grant(\n this.target.getUniqueId(),\n this.rank.getUniqueId(),\n UUID.randomUUID(),\n this.getPlayer().getUniqueId(),\n this.reason,\n this.duration\n ));\n\n this.getPlayer().closeInventory();\n };\n }", "public void rejectSubscriber(Friend lf);", "protected void handleRejectProposal(ACLMessage cfp, ACLMessage propose, ACLMessage reject) {\n\t}", "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 void setOnRejectBranchsequenceType(Enumerator newValue);", "@Override\n public void run() {\n try {\n pendingConfirms.remove(target.getName(),sender.getName());\n } catch (Exception ignored) {/*player has already confirmed*/}\n }", "public void stampMessageAsRejected(UUID channel, long messageID) {\n if(log.isDebugEnabled()) {\n log.debug(\"stamping message as rejected id = \" + messageID);\n }\n MsgData trackingData = getTrackingData(messageID);\n trackingData.timestamp = System.currentTimeMillis();\n sendButNotAckedMessageCount.decrementAndGet();\n trackingData.messageStatus = MessageStatus.RejectedAndBuffered;\n //release delivery tracing\n releaseMessageDeliveryFromTracking(channel, messageID);\n }", "@Override\n\tpublic boolean rejectIt() {\n\t\treturn false;\n\t}", "public String purchaseItem(int vendItemIndex) {\n String res;\n if (vmStatus == Status.VENDING_MODE) {\n if (vendItemIndex >= 0 && vendItemIndex < maxItems && stock[vendItemIndex] != null &&\n stock[vendItemIndex].getQtyAvailable() > 0) {\n if (userMoney >= stock[vendItemIndex].getUnitPrice()) {\n res = stock[vendItemIndex].deliver();\n if (res != null) {\n totalMoney += stock[vendItemIndex].getUnitPrice();\n userMoney -= stock[vendItemIndex].getUnitPrice();\n } else {\n res = String.format(\"Sorry %s is currently out of stock\", stock[vendItemIndex].getName());\n }\n } else {\n res = String.format(\"Sorry you have insufficient funds to purchase %s\", stock[vendItemIndex].getName());\n }\n } else {\n res = \"Sorry the item you selected is not available\";\n }\n } else {\n res = \"Sorry the vending machine is not currently in operation\";\n }\n res += String.format(\"\\n£%.2f will be returned\", userMoney);\n returnChange();\n\n setStatus(Status.SERVICE_MODE);\n for (VendItem item: stock) {\n if (item.getQtyAvailable() > 0) {\n setStatus(Status.VENDING_MODE);\n break;\n }\n }\n\n return res;\n }", "private void dropItem(String item)//Made by Justin\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n player.inventoryDel(itemFound);\n }\n }", "public void onPowerSaveUnwhitelisted(AppStateTracker sender) {\n updateAllJobs();\n unblockAllUnrestrictedAlarms();\n }", "public void use(Consume item)\r\n {\r\n int gain = item.getRating();\r\n health += gain;\r\n \r\n if (health > maxHealth)\r\n health = maxHealth;\r\n \r\n say(\"I gained \" + gain + \" health by using \" + item.getName() + \" and now have \" + health + \"/\" + maxHealth);\r\n \r\n items.remove(item);\r\n }", "@Override\n\tpublic void sendBuyRequest() {\n\t\ttry {\n\t\t\tString result = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.checkOutCart(clientId);\n\t\t\t} else {\n\t\t\t\tWebResource checkOutService = service.path(URI_CHECKOUT).path(String.valueOf(clientId));\n\t\t\t\tresult = checkOutService.accept(MediaType.TEXT_XML).get(String.class);\n\t\t\t}\n\t\t\n\t\t\tStatusMessageObject status = XMLParser.parseStatusMessage(result);\n\t\t\tif (status.getStatusCode() == 1){\n\t\t\t\tgui.setupCart(null);\t\n\t\t\t}\n\t\t\tsendItemListRequest();\n\t\t\tgui.setStatus(status.getMessage());\n\t\t\tsetOKDialog(\"Check out confirmation!\", status.getMessage());\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClientHandlerException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!!\");\n\t\t} catch (WebServiceException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!!\");\n\t\t}\n\t}", "@EventHandler\n\tpublic void onDispenserThrow(BlockDispenseEvent e){\n\t\t\n\t\tItemStack item = e.getItem();\n\t\tfromDisp = true; //prevents launched eggs from glowing\n\t\t\n\t\tif(item.hasItemMeta()){\n\t\t\tif(item.getItemMeta().hasLore()){\n\t\t\t\tif(item.getItemMeta().getLore().contains(ChatColor.MAGIC + \"lootEgg\")){\n\t\t\t\t\te.setCancelled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public TransactionResponse buyEnchantFromItem() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\tCalculation calc = hc.getCalculation();\r\n \t\tAccount acc = hc.getAccount();\r\n \t\tLog log = hc.getLog();\r\n \t\ttry {\r\n \t\t\tPlayer p = hp.getPlayer();\r\n \t\t\tString nenchant = \"\";\r\n \t\t\tnenchant = hyperObject.getMaterial();\r\n \t\t\tEnchantment ench = Enchantment.getByName(nenchant);\r\n \t\t\tString mater = p.getItemInHand().getType().toString();\r\n \t\t\tdouble price = hyperObject.getValue(EnchantmentClass.fromString(mater));\r\n \t\t\tif (price != 123456789) {\r\n \t\t\t\tif (!im.containsEnchantment(p.getItemInHand(), ench)) {\r\n \t\t\t\t\tif (im.canAcceptEnchantment(p.getItemInHand(), ench) && p.getItemInHand().getAmount() == 1) {\r\n \t\t\t\t\t\tif (acc.checkFunds(price, p)) {\r\n \t\t\t\t\t\t\tacc.withdraw(price, p);\r\n \t\t\t\t\t\t\tacc.depositAccount(price, tradePartner.getName());\r\n \t\t\t\t\t\t\tint l = hyperObject.getName().length();\r\n \t\t\t\t\t\t\tString lev = hyperObject.getName().substring(l - 1, l);\r\n \t\t\t\t\t\t\tint level = Integer.parseInt(lev);\r\n \t\t\t\t\t\t\tim.addEnchantment(p.getItemInHand(), ench, level);\r\n \t\t\t\t\t\t\tim.removeEnchantment(giveItem, ench);\r\n \t\t\t\t\t\t\tprice = calc.twoDecimals(price);\r\n \t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"PURCHASE_ENCHANTMENT_CHEST_MESSAGE\"), 1, calc.twoDecimals(price), hyperObject.getName(), tradePartner.getName()), calc.twoDecimals(price), hyperObject);\r\n \t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\tlog.writeSQLLog(p.getName(), \"purchase\", hyperObject.getName(), 1.0, price, 0.0, tradePartner.getName(), \"chestshop\");\r\n \t\t\t\t\t\t\ttradePartner.sendMessage(L.f(L.get(\"CHEST_ENCHANTMENT_BUY_NOTIFICATION\"), 1, calc.twoDecimals(price), hyperObject.getName(), p));\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.get(\"INSUFFICIENT_FUNDS\"), hyperObject);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.get(\"ITEM_ALREADY_HAS_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"ETransaction buyChestEnchant() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', owner='\" + tradePartner.getName() + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "@Test\r\n\tpublic void testCoinRejected() {\r\n\t\tCoin coin = new Coin(7);\r\n\t\tTheCoinSlotListener csListener = new TheCoinSlotListener();\r\n\t\tcsListener.coinRejected(vend.getCoinSlot(), coin);\r\n\t\tassertEquals(csListener.getCurrentCredit(), 0);\t\t\t\r\n\t}", "public void markDone (Index index) throws InventoryNotFoundException {\n\n try {\n Inventory inventory = list.get(index.getZeroBased());\n\n inventory.setIsDone(true);\n\n } catch (IndexOutOfBoundsException e) {\n throw new InventoryNotFoundException();\n }\n\n }", "public boolean unreserveItem(int id, String key)\n \t\tthrows RemoteException, TransactionAbortedException{\n \tReservableItem item = (ReservableItem) readData(id, key);\n \tif ( item == null ) {\n \t\tTrace.warn(\"RM::reserveItem( \" + id + \", \" + key+\") failed--item doesn't exist\" );\n \t\tthrow new TransactionAbortedException(id);\n \t}\n \tTrace.info(\"RM::unreserveItem(\" + id + \") has reserved \" + key + \"which is reserved\" + item.getReserved() + \" times and is still available \" + item.getCount() + \" times\" );\n \titem.setReserved(item.getReserved()-1);\n \titem.setCount(item.getCount()+1);\n \treturn true;\n }", "void doNegativeEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 200 */ performer.getCommunicator().sendNormalServerMessage(\"The \" + target\n/* 201 */ .getName() + \" emits a deep worrying sound of resonance, but stays intact.\", (byte)3);\n/* */ }", "private void sendRemoveItem(Item item, boolean moving) {\n/* 2590 */ if (this.watchers != null)\n/* */ {\n/* 2592 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 2596 */ if (!moving || !vz.isVisible(item, this)) {\n/* 2597 */ vz.removeItem(item);\n/* */ }\n/* 2599 */ } catch (Exception e) {\n/* */ \n/* 2601 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* */ }", "public void buy(Item item) {\n // remove money from wallet\n try { \n wallet.removeMoney(item.getPrice());\n // remove item from room\n currentRoom.removeItem(item);\n // add item to inventory\n addToInventory(item);\n } catch (IllegalArgumentException e) {\n System.err.println(\"You don't have enough money to purchase \" + item.getDescription());\n }\n\n\n }", "protected void responseFail(){\n\t\tqueue.clear();\n\t}", "@Test\r\n\tpublic void testButtonPressedDeliverPop() {\r\n\t\tCoin coin = new Coin(200);\r\n\t\ttry {\r\n\t\t\tvend.getCoinSlot().addCoin(coin);\r\n\t\t\tvend.getSelectionButton(0).press();\r\n\t\t\tDeliverable[] items= vend.getDeliveryChute().removeItems();\r\n\t\t\tassertTrue((items.length==1) && (items[0].toString().equals(\"Coke\")));\t\t\t\t\r\n\t\t} catch (DisabledException e) {\r\n\t\t\tassertTrue(false);\r\n\t\t}\r\n\t}", "public void actionPerformed( ActionEvent evt )\n\t{\n\t\tif( ignoreActions )\n\t\t\treturn ;\n\n\t\tObject w = evt.getSource() ;\n\t\tSpObs spObs = ( SpObs )_spItem ;\n\n\t\tif( w instanceof JComboBox )\n\t\t\tspObs.setPriority( ( Integer )_w.jComboBox1.getSelectedItem() ) ;\n\t\telse if( ( w instanceof AbstractButton ) && !(( AbstractButton )w).isSelected() )\n\t\t\treturn ;\n\n\t\tif( w == _w.unSuspendCB )\n\t\t{\n\t\t\tString message = \"This is an Irreversible Operation\" + \"\\n\" + \"Are you sure you want to proceed?\" ;\n\t\t\tint option = JOptionPane.showConfirmDialog( _w , message , \"Irreversible Operation\" , JOptionPane.YES_NO_OPTION , JOptionPane.WARNING_MESSAGE ) ;\n\t\t\tif( option == JOptionPane.NO_OPTION )\n\t\t\t\treturn ;\n\n\t\t\tspObs.unSuspend() ;\n\t\t\t_w.unSuspendCB.setVisible( false ) ;\n\t\t}\n\t}", "FlowRemoveReason reason();", "public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}", "public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}", "public void receiveResultrevokeApplication(\n boolean result\n ) {\n }", "public String getNotAcceptReason() {\r\n\t\treturn notAcceptReason;\r\n\t}", "@Override\n public void onClick(InventoryClickEvent event) {\n if(event.getCurrentItem() != null) {\n if (NimbleServer.enchantmentConfig.isFillerItem(event.getCurrentItem(), event.getSlot())\n || event.getCurrentItem().getType() == Material.AIR) {\n event.setCancelled(true);\n NimbleLogger.getInstance()\n .log(\"CustomEnchantmentTable onClick is CANCELLED because it is an filler item\");\n } else {\n event.setCancelled(false);\n }\n } else if(event.getCursor() != null) {\n if (NimbleServer.enchantmentConfig.isFillerItem(event.getCursor(), event.getSlot()) || event.getCursor().getType() == Material.AIR) {\n event.setCancelled(true);\n NimbleLogger.getInstance()\n .log(\"CustomEnchantmentTable onClick is CANCELLED because it is an filler item\");\n } else {\n event.setCancelled(false);\n }\n }\n\n }", "void rejectOrder(String orderId);", "private void rejectBooking() {\r\n //Start add into notification fragment process\r\n notify = new Notify();\r\n DatabaseReference NotRef = FirebaseDatabase.getInstance().getReference().child(\"Notify\");\r\n notify.setBookID(getBookID.getText().toString());\r\n notify.setUserID(getUID.getText().toString());\r\n String key = NotRef.push().getKey();\r\n notify.setNotifyID(key);\r\n NotRef.child(key).setValue(notify);\r\n\r\n //Update notify status\r\n DatabaseReference dbNotify = FirebaseDatabase.getInstance().getReference(\"Booking\").child(getUID.getText().toString()).child(getBookID.getText().toString());\r\n HashMap<String, Object> hashMap = new HashMap<>();\r\n hashMap.put(\"notifyStatus\", \"Rejected\");\r\n dbNotify.updateChildren(hashMap);\r\n\r\n //Send push notification\r\n String StaffID = id.getText().toString();\r\n TOPIC = \"/topics/\" + StaffID.toLowerCase(); //topic must match with what the receiver subscribed to\r\n Log.v(TAG,StaffID);\r\n NOTIFICATION_TITLE = \"FKOM Car Booking\";\r\n NOTIFICATION_MESSAGE = \"Dear \" + name.getText().toString() + \", Your Booking \" + getBookID.getText().toString() + \" is rejected!\";\r\n\r\n JSONObject notification = new JSONObject();\r\n JSONObject notificationBody = new JSONObject();\r\n try {\r\n notificationBody.put(\"title\", NOTIFICATION_TITLE);\r\n notificationBody.put(\"message\", NOTIFICATION_MESSAGE);\r\n\r\n notification.put(\"to\", TOPIC);\r\n notification.put(\"data\", notificationBody);\r\n } catch (JSONException e) {\r\n Log.e(TAG, \"onCreate: \" + e.getMessage());\r\n }\r\n sendNotify(notification, StaffID);\r\n }", "@Test\n\tpublic void testRejectCall() throws Exception {\n\t\tlog.info(\"-------------------- Test Invite with Reject --------------------\");\n\n\t\tEndPointEvent endPointEvent;\n\t\tCallEvent callEvent;\n\n\t\t// C:---INVITE---------->:S\n\t\tlog.info(clientName + \" dial to \" + serverName + \"...\");\n\t\tSipCallController clientCallController = new SipCallController(\n\t\t\t\tclientName);\n\t\tclientEndPoint.dial(serverUri, clientCallController);\n\t\tlog.info(\"OK\");\n\n\t\tlog.info(serverName + \" expects incoming call from \" + clientName\n\t\t\t\t+ \"...\");\n\t\tendPointEvent = serverEndPointController\n\t\t\t\t.pollSipEndPointEvent(TestConfig.WAIT_TIME);\n\t\tassertTrue(\"No message received in server UA\", endPointEvent != null);\n\t\tassertTrue(\n\t\t\t\t\"Bad message received in server UA: \"\n\t\t\t\t\t\t+ endPointEvent.getEventType(),\n\t\t\t\tEndPointEvent.INCOMING_CALL.equals(endPointEvent.getEventType()));\n\n\t\tCall serverCall = endPointEvent.getCallSource();\n\t\tlog.info(\"OK\");\n\n\t\tlog.info(clientName + \" expects call ringing \" + serverName + \"...\");\n\t\tcallEvent = clientCallController\n\t\t\t\t.pollSipEndPointEvent(TestConfig.WAIT_TIME);\n\t\tassertTrue(\"No message received in client UA\", callEvent != null);\n\t\tassertTrue(\"Bad message received in client UA\",\n\t\t\t\tCallEvent.CALL_RINGING.equals(callEvent.getEventType()));\n\t\tlog.info(\"OK\");\n\n\t\t// C:<------REJECT-------:S\n\t\tlog.info(serverName + \" rejects call...\");\n\t\tSipCallController serverCallController = new SipCallController(\n\t\t\t\tserverName);\n\t\tserverCall.addListener(serverCallController);\n\t\tserverCall.terminate();\n\t\tlog.info(\"OK\");\n\n\t\tlog.info(clientName + \" expects call rejected from \" + serverName\n\t\t\t\t+ \"...\");\n\t\tcallEvent = clientCallController\n\t\t\t\t.pollSipEndPointEvent(TestConfig.WAIT_TIME);\n\t\tassertTrue(\"No message received in client UA\", callEvent != null);\n\t\tassertTrue(\"Bad message received in client UA\",\n\t\t\t\tCallEvent.CALL_REJECT.equals(callEvent.getEventType()));\n\t\tlog.info(\"OK\");\n\n\t\tlog.info(\"-------------------- Test Invite with Reject finished OK --------------------\");\n\n\t}", "public boolean revokeItem(Item item)\n {\n return sellerManager.revokeItem(item);\n }", "public void setItem(Item collectibleItem) {\n\t\tthis.item = collectibleItem;\r\n\t}", "public void rejectApplication(PersonalLoanApplication application, Applicant applicant, String message) throws SQLException, MessagingException {\r\n\t\tapplicationDao.updateLoanApplicationStatus(\"R\", application.getApplicationId());\r\n\t\tsendApplicationRejectedMail(application, applicant, message);\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 }", "@When(\"je clique sur le bouton Valider ma commande\")\n\tpublic void je_clique_sur_le_bouton_Valider_ma_commande() {\n\t throw new PendingException();\n\t}", "@Test\n\tpublic void acceptedOfferCanNotBeRejected() {\n\t}", "private void receiveVote() {\n\t\t//Se la postazione termina la connessione informiamo lo staff con un messaggio di errore\n\t\tif(!link.hasNextLine()) {\n\t\t\tcontroller.printError(\"Errore di Comunicazione\", \"La postazione \"+ ip.getHostAddress() + \" non ha inviato i pacchetti di voto.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Vengono recuperati i voti cifrati\n\t\tMessage request;\n\t\tWrittenBallot[] encryptedBallots;\n\t\ttry {\n\t\t\trequest = (Message) Message.fromB64(link.read(), \"postazione \" + ip.getHostAddress());\n\t\t\tString[] required = {\"encryptedBallots\"};\n\t\t\tClass<?>[] types = {WrittenBallot[].class};\n\t\t\t\n\t\t\trequest.verifyMessage(Protocol.sendVoteToStation, required, types, \"postazione \" + ip.getHostAddress());\n\t\t\tencryptedBallots = request.getElement(\"encryptedBallots\");\n\t\t\t\n\t\t\t//I voti vengono memorizzati nel seggio in attesa dell'invio all'urna\n\t\t\tif(((Controller) controller).storeVoteLocally(encryptedBallots, ip))\n\t\t\t\tlink.write(Protocol.votesReceivedAck);\n\t\t\telse\n\t\t\t\tlink.write(Protocol.votesReceivedNack);\n\t\t\t\n\t\t} catch (PEException e) {\n\t\t\tlink.write(Protocol.votesReceivedNack);\n\t\t\tcontroller.printError(e);\n\t\t}\n\t}", "@Override\n\tpublic String textoVerificarAceptar() {\n\t\treturn \"Debe seleccionar un item o hacer click en [Cancelar] para continuar\";\n\t}" ]
[ "0.67178977", "0.6538574", "0.61581445", "0.6137034", "0.6080224", "0.5808037", "0.55974954", "0.55960643", "0.55361176", "0.54724056", "0.5462206", "0.5422965", "0.53775793", "0.53747493", "0.53603256", "0.5344072", "0.53373057", "0.5321884", "0.5318674", "0.5304558", "0.5285537", "0.525136", "0.5249513", "0.52484995", "0.524721", "0.52342135", "0.5233356", "0.52328247", "0.52308625", "0.52095073", "0.5208276", "0.52029574", "0.5185485", "0.5181361", "0.5181097", "0.517942", "0.51675326", "0.5161063", "0.51594895", "0.5144899", "0.5132138", "0.512975", "0.51203144", "0.5118067", "0.5115325", "0.5110643", "0.5108235", "0.51079535", "0.5086488", "0.5078914", "0.5059344", "0.5051269", "0.50477916", "0.5038392", "0.503742", "0.5032482", "0.5029916", "0.50283146", "0.50146085", "0.50117725", "0.5011211", "0.50078213", "0.49900684", "0.49855438", "0.49850303", "0.4983912", "0.4977633", "0.4975674", "0.4974067", "0.49713096", "0.49712145", "0.4963158", "0.49557495", "0.4950705", "0.49422917", "0.4928987", "0.49222383", "0.4920873", "0.4920653", "0.49201268", "0.49186936", "0.49182853", "0.49159348", "0.4914024", "0.49134457", "0.49134457", "0.49101326", "0.49083552", "0.4906626", "0.4906477", "0.49058035", "0.49035805", "0.48973298", "0.48970717", "0.48967123", "0.48967096", "0.48889977", "0.48865297", "0.48858684", "0.4877667" ]
0.517266
36
Sort the decorations that 'sorter' reads.
void sort() { // ... fill this in ... //how do I get teh next item? where is the reader in the interface that returns the next item??? if (sorter==null || sorter.nextItem()==false) return ; while(sorter.nextItem()) { /*Red, if the decoration is more than 35% red Green, if the decoration is more than 30% green Reject, if the decoration is both more than 35% red and 30% green - these are just too "loud". */ //ScannerAndSorter item=sorter.read(); if (sorter.redPercentage()>35.00) if (sorter.greenPercentage()>30) sorter.reject(); else sorter.sendToRed(); else if (sorter.greenPercentage()>30) sorter.sendToGreen(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sort() {\n if (sorter != null)\n sort(sorter);\n }", "public void sortCompetitors(){\n\t\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sort() {\n }", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "public void sortDescriptors() {\n\n XMLFieldDescriptor fieldDesc = null;\n NodeType nodeType = null;\n\n List remove = new List(3);\n for (int i = 0; i < attributeDescriptors.size(); i++) {\n fieldDesc = (XMLFieldDescriptor)attributeDescriptors.get(i);\n switch (fieldDesc.getNodeType().getType()) {\n case NodeType.ELEMENT:\n elementDescriptors.add(fieldDesc);\n remove.add(fieldDesc);\n break;\n case NodeType.TEXT:\n remove.add(fieldDesc);\n break;\n default:\n break;\n }\n }\n for (int i = 0; i < remove.size(); i++)\n attributeDescriptors.remove(remove.get(i));\n\n remove.clear();\n for (int i = 0; i < elementDescriptors.size(); i++) {\n fieldDesc = (XMLFieldDescriptor)elementDescriptors.get(i);\n switch (fieldDesc.getNodeType().getType()) {\n case NodeType.ATTRIBUTE:\n attributeDescriptors.add(fieldDesc);\n remove.add(fieldDesc);\n break;\n case NodeType.TEXT:\n remove.add(fieldDesc);\n break;\n default:\n break;\n }\n }\n for (int i = 0; i < remove.size(); i++)\n elementDescriptors.remove(remove.get(i));\n\n }", "public void sortElements(Comparator<TLProperty> comparator);", "public SoilTypeComparator() {\n\t\tthis.descending = true;\n\t}", "@VTID(25)\n com.exceljava.com4j.excel.XlSlicerSort getSortItems();", "@Override\n public void sort() {\n\n List<Doctor> unsortedDocs = this.doctors;\n\n Collections.sort(unsortedDocs, new Comparator<Doctor>() {\n @Override\n public int compare(Doctor a, Doctor b) {\n //Compare first name for doctors and re-arrange list\n return a.getFirstName().compareTo(b.getFirstName());\n }\n });\n \n this.doctors = unsortedDocs;\n\n }", "public String doSort();", "private List<Criterion> _sortCriterionList()\n {\n Collections.sort(_criterionList, _groupNameComparator);\n Collections.sort(_criterionList, _fieldOrderComparator);\n for(int count = 0 ; count < _criterionList.size() ; count++)\n {\n ((DemoAttributeCriterion)_criterionList.get(count)).setOrderDirty(false);\n }\n return _criterionList;\n }", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "default YList<T> sorted() {\n return YCollections.sortedCollection(this);\n }", "public String sortBy();", "@Override\n\tpublic int compare(IIntercepter in1, IIntercepter in2) {\n\t\treturn in2.getOrder().compareTo(in1.getOrder());\n\t}", "public void sortByRating() {\n Log.d(Contract.TAG_WORK_PROCESS_CHECKING, \"ListPresenter - sortByRating\");\n\n listInteractor.sortByRating(new ListCallback() {\n @Override\n public void setPhotosList(List<BasePojo.Result> photosList) {\n Log.d(Contract.TAG_WORK_PROCESS_CHECKING, \"ListPresenter - sortByRating - setPhotosList\");\n\n getViewState().setData(photosList);\n }\n });\n }", "public void sort_crystals() {\n\t\tArrays.sort(identifiedArray, new SortByRating()); \n\t}", "public void sortManlist(){\r\n\t\tCollections.sort(Manlist, new MySort());\r\n\t}", "interface ScannerAndSorter {\n\t// Read and scan another item; return false when there are no more\n\t// items.\n\tboolean nextItem();\n\n\t// Percentage (0-100) of the current item that's red.\n\tdouble redPercentage();\n\n\t// Percentage (0-100) of the current item that's green.\n\tdouble greenPercentage();\n\n\t// Send the current item to the Red bin\n\tvoid sendToRed();\n\n\t// Send the current item to the Green bin\n\tvoid sendToGreen();\n\n\t// Send the current item to the Reject bin\n\tvoid reject();\n}", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "public void sortAttributes(Comparator<TLAttribute> comparator);", "public void sort () {\n\t\t\n\t\t// Clear iterator\n\t\titer = null;\n\t\t\n\t\tCollections.sort(this.pathObjects, new Comparator<PathObject>() {\n\t\t @Override\n\t\t public int compare(PathObject lhs, PathObject rhs) {\n\t\t // -1 - less than, 1 - greater than, 0 - equal, all inversed for descending\n\t\t return Double.compare(lhs.getClassProbability(), rhs.getClassProbability()); // Use double compare to safely handle NaN and Infinity\n\t\t }\n\t\t});\n\t\t\n\t\titer = this.pathObjects.iterator();\n\t}", "public ArrayList<SortingRule> get_sort_by() {\n\t\treturn sort_by;\n\t}", "public String getName() {\n return DecoratedSortAlgo.getName();\r\n }", "public interface LodashSortCallback {\n}", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "private Sort() { }", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "public Map findAvailableSorters(INavigatorContentDescriptor theSource);", "private void sortOutlines() {\r\n Collections.sort(outlines, reversSizeComparator);\r\n }", "public void sort() {\n\t\tdivider(0, array.size() - 1);\n\t}", "Map<String, Decorator> getDecorators();", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "@Override\n\tpublic String sort() {\n\t\tString s=\"Insertionsort Function\";\n\t\treturn s;\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "protected void sortAndFilterAnnotationData() {\n SortColumn sortType = (SortColumn) sortAction.getValue(COLUMN_PROPERTY);\r\n FilterSubTypeColumn filterType = (FilterSubTypeColumn) filterTypeAction.getValue(COLUMN_PROPERTY);\r\n FilterAuthorColumn filterAuthor = (FilterAuthorColumn) filterAuthorAction.getValue(COLUMN_PROPERTY);\r\n Color filterColor = (Color) filterColorAction.getValue(COLUMN_PROPERTY);\r\n FilterVisibilityColumn filterVisibility = (FilterVisibilityColumn) filterVisibilityAction.getValue(COLUMN_PROPERTY);\r\n filterDropDownButton.setSelected(!filterAuthor.equals(FilterAuthorColumn.ALL) ||\r\n !filterType.equals(FilterSubTypeColumn.ALL) ||\r\n filterColor != null);\r\n\r\n // setup search pattern\r\n Pattern searchPattern = null;\r\n String searchTerm = searchTextField.getText();\r\n boolean caseSensitive = caseSensitiveMenutItem.isSelected();\r\n if (searchTerm != null && !searchTerm.isEmpty()) {\r\n searchPattern = Pattern.compile(caseSensitive ? searchTerm : searchTerm.toLowerCase());\r\n // todo we can add search flags at a later date, via drop down on search or checkboxes.\r\n }\r\n\r\n markupAnnotationHandlerPanel.sortAndFilterAnnotationData(\r\n searchPattern, sortType, filterType, filterAuthor, filterVisibility, filterColor,\r\n regexMenuItem.isSelected(), caseSensitive);\r\n }", "@Override\n public void onSortByRating() {\n mSorter.sortLocationsByRating(mListLocations);\n mAdapter.notifyDataSetChanged();\n }", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "void sortUI();", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "public List<Pattern> getPatternsAuthorSorted() {\n List<Pattern> copy = new LinkedList<Pattern>(patterns);\r\n // inplace method to allow comparison to be done by author name\r\n Collections.sort(copy, byAuthorThenName);\r\n return copy;\r\n }", "public void sortByBreed() {\n\t\tAnimalCompare animalCompare = new AnimalCompare();\n\t\tCollections.sort(animals, animalCompare);\n\t}", "List <Dish> getDishesSortedBy(String sortBy);", "private Sort sortByLastNameAsc() {\n return new Sort(Sort.Direction.ASC, \"remName\");\n }", "@Override\n public void sortIt(final Comparable a[]) {\n }", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "public void listSort() {\n\t\tCollections.sort(cd);\n\t}", "static String getSorting(String sortingKey, boolean modifier)\r\n {\r\n String s;\r\n if (sortingMap.containsKey(sortingKey))\r\n {\r\n s = sortingMap.get(sortingKey);\r\n }\r\n else\r\n {\r\n s = sortingMap.get(SORT_PROPERTY_NAME);\r\n }\r\n\r\n if (modifier)\r\n {\r\n s += \" ASC\";\r\n }\r\n else\r\n {\r\n s += \" DESC\";\r\n }\r\n\r\n return s;\r\n }", "public void sort() {\r\n\t\tCollections.sort(parts);\r\n\t}", "@Override\n\tpublic void setSortCounters(boolean sortCounters) {\n\t\t\n\t}", "private void sortMedApts(List<MedicationAppointment> medApts2) {\n \t}", "public void employeeSorter(){\n Collections.sort(employees, new Comparator<Employee>() {\n @Override\n public int compare(Employee o1, Employee o2) {\n if(o1.getSalary() < o2.getSalary())\n return 1;\n else if(o1.getSalary() > o2.getSalary())\n return -1;\n else\n return 0;\n }\n });\n }", "public void step2(){\n\n Collections.sort(names,(String a,String b) -> {\n return a.compareTo(b);\n });\n }", "public void sortAuthor(){\r\n \r\n Book temp; // used for swapping books in the array\r\n for(int i=0; i<items.size(); i++) {\r\n\r\n\t // Check to see the item is a book. We will only\r\n //use books.\r\n\t if(items.get(i).getItemType() != Item.ItemTypes.BOOK)\r\n\t continue;\r\n\t\t\t\t\t\r\n\t for(int j=i+1; j<items.size(); j++) {\r\n\t\t // We consider only books\r\n\t // We consider only magazines\r\n\t if(items.get(j).getItemType() != Item.ItemTypes.BOOK)\r\n\t\t continue;\r\n\t\t // Compare the authors of the two books\r\n\t if(((Book)items.get(i)).getAuthor().compareTo(((Book)items.get(j)).getAuthor()) > 0) {\r\n\t\t // Swap the items\r\n\t\t temp = (Book)items.get(i);\r\n\t\t items.remove(i);\r\n\t\t items.add(i, items.get(j-1));\r\n\t\t items.remove(j);\r\n\t\t items.add(j, temp);\r\n\t }\r\n\t }\r\n\t }\r\n\t\t// Print the magazines\r\n for(int i=0; i<items.size(); i++)\r\n\t if(items.get(i).getItemType() == Item.ItemTypes.BOOK)\r\n\t\tSystem.out.println(items.get(i).toString());\r\n \t\r\n }", "public void sort(){\n Collections.sort(list, new SortBySpecies());\n }", "private List<Article> orderArticles(List<Article> things){\n\t\t Comparator<Article> comparatorPrizes = new Comparator<Article>() {\n\t public int compare(Article x, Article y) {\n\t return (int) (x.getPrize() - y.getPrize());\n\t }\n\t };\n\t Collections.sort(things,comparatorPrizes); \n\t Collections.reverse(things);\n\t return things;\n\t }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tList<Student> students = new ArrayList<>();\r\n\t\t\r\n\t\tstudents.add(new Student(23, \"Aryan\"));\r\n\t\tstudents.add(new Student(23, \"Jeet\"));\r\n\t\tstudents.add(new Student(83, \"Dhruv\"));\r\n\t\tstudents.add(new Student(13, \"Amit\"));\r\n\t\tstudents.add(new Student(65, \"Aditya\"));\r\n\t\tstudents.add(new Student(57, \"Jeet\"));\r\n\t\t\r\n//\t\tCollections.sort(students);\r\n\t\t\r\n//\t\tCollections.sort(students, new SortByNameThenMarks());\t// We passed our own comparator object.\r\n\t\t\r\n\t\t// We can have our own anonymous comparator without making a class. We can do that so by doing the following:\r\n\t\t\r\n//\t\tCollections.sort(students, new Comparator<Student>() {\r\n//\r\n//\t\t\t@Override\r\n//\t\t\tpublic int compare(Student obj1, Student obj2) {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t});\r\n\t\t\r\n\t\t// With the help of Lambda we could cut short the lines but we have to mention the sign \"->\".\r\n//\t\tCollections.sort(students,(Student obj1, Student obj2) -> {\r\n\t\t\r\n//\t\tCollections.sort(students,(obj1, obj2) -> {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t});\r\n\t\t\r\n//\t\tCollections.sort(students, (obj1, obj2) -> obj1.name.compareTo(obj2.name));\r\n\t\t\r\n//\tThe comparator SortByNameThenMarks can be written in one line as follows. Also \".reversed()\" is used to reverse the order of comparison.\r\n\t\tCollections.sort(students, Comparator.comparing(Student::getName).thenComparing(Student::getMarks).reversed());\r\n\t\t\r\n\t\tstudents.forEach(System.out::println);\t// This is lambda expression to print \r\n\t}", "public String getSortOrder();", "private static void sortActors(ActorSort actorSort) {\n\t\tList<Actor> actors = null;\n\t\t// Check for which comparator to use.\n\t\tif(actorSort == ActorSort.AA || actorSort == ActorSort.AD) {\n\t\t\tactors = movieManager.getSortedActors(new NameComparator());\n\t\t} else if(actorSort == ActorSort.NA || actorSort == ActorSort.ND) {\n\t\t\tactors = movieManager.getSortedActors(new CountComparator());\n\t\t}\n\t\tif(actors != null) {\n\t\t\tprintln(\"Actor Number of Movies\");\n\t\t\tprintln(\"------------------------------------------------\"\n\t\t\t + \"-------------------------------------------\");\n\t\t\t// Check for decrementing sort.\n\t\t\tif(actorSort == ActorSort.AD || actorSort == ActorSort.ND) {\n\t\t\t\tfor(int i = actors.size() - 1; i >= 0; i--) {\n\t\t\t\t\tActor actor = actors.get(i);\n\t\t\t\t\tprintActorTab(actor);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor(Actor actor : actors) {\n\t\t\t\t\tprintActorTab(actor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public List getOrderedInterceptorContributions()\n {\n if (!_interceptorsOrdered)\n {\n _interceptorContributions = orderInterceptors();\n _interceptorsOrdered = true;\n }\n\n return _interceptorContributions;\n }", "protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "protected Sort getSortDESC() {\n Sort.Order order = new Sort.Order(Sort.Direction.DESC, \"id\");\n return Sort.by(order);\n }", "@Override\n public void sort(List<T> items) {\n }", "public void sortByWordLengthDesc() {\r\n\t\tcomparator = new WordLengthDesc();\r\n\t}", "private static void populateArtworkSorts() {\r\n if (artworkSorts.isEmpty()) {\r\n artworkSorts.add(SORT_FAV_ASC);\r\n artworkSorts.add(SORT_FAV_DESC);\r\n artworkSorts.add(SORT_NAME_ASC);\r\n artworkSorts.add(SORT_NAME_DESC);\r\n }\r\n }", "public int compare(Object o1, Object o2) {\n/* 25 */ Alphabet a1 = (Alphabet)o1;\n/* 26 */ Alphabet a2 = (Alphabet)o2;\n/* */ \n/* 28 */ return a2.order - a1.order;\n/* */ }", "private void sortViewEntries() {\n runOnUiThread(new Runnable() {\n public void run() {\n try {\n Collections.sort(viewEntries, new DateComparator());\n } catch (final Exception ex) {\n // Log.i(\"sortViewEntries\", \"Exception in thread\");\n }\n }\n });\n }", "Sort(String description) {\n this.description = description;\n matcher = new MethodSortMatcher<MethodDescription>(this);\n }", "@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}", "public Collection getSortedEntries(final PropertyAccessor sortProperty, boolean descending) {\n \t\tIEntryQueries queries = (IEntryQueries)getSession().getAdapter(IEntryQueries.class);\n \tif (queries != null) {\n \t\treturn queries.getSortedEntries(this, sortProperty, descending);\n \t} else {\n \t\t// IEntryQueries has not been implemented in the datastore.\n \t\t// We must therefore provide our own implementation.\n \t\t\n \t\tList sortedEntries = new LinkedList();\n \t\t\n \t\tIterator it = entries.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tsortedEntries.add(it.next());\n \t\t}\n \t\t\n \t\tComparator entryComparator;\n \t\tif (sortProperty.getPropertySet() == EntryInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else if (sortProperty.getPropertySet() == TransactionInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getTransaction().getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getTransaction().getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else if (sortProperty.getPropertySet() == AccountInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getAccount().getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getAccount().getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else {\n \t\t\tthrow new RuntimeException(\"given property cannot be used for entry sorting\");\n \t\t}\n \t\t\n \t\tif (descending) {\n \t\t\tfinal Comparator ascendingComparator = entryComparator;\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\treturn ascendingComparator.compare(b, a);\n \t\t\t\t}\n \t\t\t};\n \t\t}\n \t\t\n \t\tCollections.sort(sortedEntries, entryComparator);\n \t\t\n \t\treturn sortedEntries;\n \t}\n \t}", "public void sort(){\n listOperation.sort(Comparator.comparingInt(Operation::getiStartTime));\n }", "@SuppressWarnings(\"unused\")\n private OrderBy() {\n }", "public String sortOriginOrReturn();", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "@VTID(28)\n boolean getSortUsingCustomLists();", "public List<Entry<String, Double>> sort()\n\t{\n\t\tList<Entry<String, Double>> list = new ArrayList<Entry<String, Double>>();\n\t\tfor(Entry<String, Double> entry : map.entrySet())\n\t\t{\n\t\t\tlist.add(entry);\n\t\t}\n\n\t\tComparator<Entry<String, Double>> compare = new Comparator<Entry<String, Double>>() {\n\t @Override\n\t public int compare(Entry<String, Double> first, Entry<String, Double> second)\n\t {\n\t \tif (first.getValue() > second.getValue())\n\t \t{\n\t return -1;\n\t }\n\t if (first.getValue() < second.getValue())\n\t {\n\t return 1;\n\t }\n\t return 0;\n\t }\n\t };\n\n\t Collections.sort(list, compare);\n return list;\n\t}", "public void sort(){\n\t\tCollections.sort(_ligacoes, (new Comparator<Ligacao>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Ligacao l1, Ligacao l2){\n\t\t\t\tint resultado = Integer.compare(l1.getCusto(), l2.getCusto());\n\t\t\t\tif (resultado == 0)\n\t\t\t\t\tresultado = Boolean.compare(l1.isAerea(), l2.isAerea());\n\t\t\t\treturn resultado;\n\t\t\t}\n\t\t}));\n\t}", "public int getSort() {\n/* 350 */ return this.value >>> 24;\n/* */ }", "@Override\n protected Comparator<? super UsagesInFile> getRefactoringIterationComparator() {\n return new Comparator<UsagesInFile>() {\n @Override\n public int compare(UsagesInFile o1, UsagesInFile o2) {\n int result = comparePaths(o1.getFile(), o2.getFile());\n if (result != 0) {\n return result;\n }\n int imports1 = countImports(o1.getUsages());\n int imports2 = countImports(o2.getUsages());\n return imports1 > imports2 ? -1 : imports1 == imports2 ? 0 : 1;\n }\n\n private int comparePaths(PsiFile o1, PsiFile o2) {\n String path1 = o1.getVirtualFile().getCanonicalPath();\n String path2 = o2.getVirtualFile().getCanonicalPath();\n return path1 == null && path2 == null ? 0 : path1 == null ? -1 : path2 == null ? 1 : path1.compareTo(path2);\n }\n\n private int countImports(Collection<UsageInfo> usages) {\n int result = 0;\n for (UsageInfo usage : usages) {\n if (FlexMigrationUtil.isImport(usage)) {\n ++result;\n }\n }\n return result;\n }\n };\n }", "public void step4(){\n\n Collections.sort(names,(a,b)->b.compareTo(a));\n\n\n System.out.println(\"names sorted are :\"+names);\n }", "private List<AccessTypeInjector> getAccessTypeOrderByPriority(boolean ascending) {\n List<AccessTypeInjector> list = new ArrayList<AccessTypeInjector>();\n for (AccessTypeInjector injector : accessTypeInjectors) {\n list.add(injector);\n }\n Collections.sort(list);\n if (!ascending) {\n Collections.reverse(list);\n }\n return list;\n }", "@Test\n public void testShipment_Sorted_By_Color() {\n List<Widget> widgets = shipment.getWidgetsSortedByColor();\n assertNotNull(widgets);\n assertTrue(widgets.size() == 10);\n Widget widget1 = (Widget) widgets.get(0);\n Widget widget2 = (Widget) widgets.get(1);\n assertTrue(widget1.getColor().compareTo(widget2.getColor()) <= 0);\n }", "private static Comparator<Person> comparator(CrudFilter filter) {\n return filter.getSortOrders().entrySet().stream()\n .map(sortClause -> {\n try {\n Comparator<Person> comparator\n = Comparator.comparing(person ->\n (Comparable) valueOf(sortClause.getKey(), person));\n\n if (sortClause.getValue() == SortDirection.DESCENDING) {\n comparator = comparator.reversed();\n }\n\n return comparator;\n } catch (Exception ex) {\n return (Comparator<Person>) (o1, o2) -> 0;\n }\n })\n .reduce(Comparator::thenComparing)\n .orElse((o1, o2) -> 0);\n }", "public CollectionComparator(Method attributeCaller, boolean descending)\n\t{\n\t\tthis.attributeCaller = attributeCaller;\n\t\tthis.descending = descending;\n\t}", "public List<ValueType> sort() {\r\n // TODO\r\n return null;\r\n }", "Results sortResults(FilterSpecifier.ListBy listBy, SortSpecifier sortspec) throws SearchServiceException;", "public static void main(String[] args) {\n\n List<String> animals = new ArrayList <String>();\n\n animals.add(\"Elephatn\");\n animals.add(\"snake\");\n animals.add(\"Lion\");\n animals.add(\"Mongoose\");\n animals.add(\"Cat\");\n\n\n\n// Collections.sort(animals, new StringLengthComparator());\n// Collections.sort(animals, new AlphabeticalComparator());\n Collections.sort(animals, new ReverseAlphabeticalComparator());\n for(String animal:animals){\n System.out.println(animal);\n }\n\n//////////////Sorting Numbers ///////////\n List<Integer> numbers = new ArrayList <Integer>();\n\n numbers.add(54);\n numbers.add(1);\n numbers.add(36);\n numbers.add(73);\n numbers.add(9);\n\n Collections.sort(numbers, new Comparator <Integer>() {\n @Override\n public int compare(Integer num1, Integer num2) {\n return num1.compareTo(num2);\n }\n });\n\n for(Integer number: numbers){\n System.out.println(number);\n }\n\n\n///////////////Sorting Arbitrary objects////////\n\n\n List<Person> people = new ArrayList <Person>();\n\n people.add(new Person(1,\"Joe\"));\n people.add(new Person(5,\"Harry\"));\n people.add(new Person(2,\"Hermoine\"));\n people.add(new Person(4,\"Muffet\"));\n\n// Sort in order of ID\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n if(p1.getId()>p2.getId()){\n return 1;\n }else if(p1.getId()<p2.getId()){\n return -1;\n }\n return 0;\n\n }\n });\n\n\n // Sort in order of Name\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n return p1.getName().compareTo(p2.getName());\n\n\n }\n });\n\n for(Person person: people){\n System.out.println(person);\n\n }\n\n }", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "public static void main(String[] args) {\n\t\tList<String> animal = new ArrayList<String>();\n\n\t\tanimal.add(\"Cat\");\n\t\tanimal.add(\"Mouse\");\n\t\tanimal.add(\"Lion\");\n\t\tanimal.add(\"Zeebra\");\n\t\tanimal.add(\"Bear\");\n\t\tanimal.add(\"Deer\");\n\n\t\t// Collections.sort(animal,new StringLengthComparator());\n\n\t\tCollections.sort(animal, new ReverseAlphabeticalComparator());\n\t\tfor (String animal1 : animal) {\n\n\t\t\tSystem.out.println(animal1);\n\t\t}\n\n\t\t/////////////////////////////// Sorting Numbers ////////////////////////////////\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tnumbers.add(5);\n\t\tnumbers.add(31);\n\t\tnumbers.add(16);\n\t\tnumbers.add(605);\n\t\tnumbers.add(15);\n\n\t\tCollections.sort(numbers, new Comparator<Integer>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Integer num1, Integer num2) {\n\n\t\t\t\treturn -num1.compareTo(num2);\n\t\t\t}\n\n\t\t});\n\n\t\tfor (Integer num1 : numbers) {\n\n\t\t\tSystem.out.println(num1);\n\t\t}\n\t\t///////////////////////////// Sorting Arbitrary Objects ////////////////////////////\n\n\t\tList<Person> people = new ArrayList<Person>();\n\n\t\tpeople.add(new Person(3, \"Ajeer\"));\n\t\tpeople.add(new Person(1, \"Sudeer\"));\n\t\tpeople.add(new Person(2, \"Sureash\"));\n\t\tpeople.add(new Person(4, \"Sam\"));\n\t\t\n\t\t// Sort in Order of ID\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\tif (p1.getId() > p2.getId()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse if (p1.getId()< p2.getId()) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t// Sort In Order of NAME....\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\n\t\t\t\treturn p1.getName().compareTo(p2.getName());\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t}", "private void sortIndices() {\n sortImpl(this.indices, this.values, 0, this.indices.length - 1);\n }", "static List<AccessibleObject> orderFieldsAndMethodsByDependency(List<AccessibleObject> unorderedList, Map<String, AccessibleObject> propertiesMap) {\n Stack<AccessibleObject> stack = new Stack<AccessibleObject>();\n // the result list \n List<AccessibleObject> orderedList = new LinkedList<AccessibleObject>();\n // add the elements from the unordered list to the ordered list \n // any dependencies will be checked and added first, in recursive manner \n for (int i = 0; i < unorderedList.size(); i++) {\n AccessibleObject obj = unorderedList.get(i);\n addPropertyToDependencyList(orderedList, propertiesMap, stack, obj);\n }\n return orderedList;\n}", "@Override\n\tpublic void setSorting(Object[] propertyIds, boolean[] ascending) {\n\t\t\n\t}", "public void sort(Metric metr, DoubleData dObj, DoubleData[] dObjects)\n {\n sort(metr, dObj, dObjects, 0, dObjects.length-1);\n }", "public SoilTypeComparator(boolean descending) {\n\t\tthis.descending = descending;\n\t}", "@Override\n\tpublic double sort() {\n\t\tlong startTime = System.nanoTime();\n\t\tArrayList<Offender> offenders = Offender.readArrayListCSV();\n\t\tCollections.sort(offenders, (a, b) -> ((Offender) a).getAge() < ((Offender) b).getAge() ? -1 : ((Offender) a).getAge() == ((Offender) b).getAge() ? 0 : 1);\n\t\tlong endTime = System.nanoTime();\n\t\tlong duration = (endTime - startTime); \n\t\tdouble seconds = (double)duration / 1_000_000_000.0;\n\t\t\n\t\treturn seconds;\n\t}" ]
[ "0.6181947", "0.5994208", "0.5889331", "0.57061553", "0.56300986", "0.5593049", "0.5542623", "0.5464379", "0.54299563", "0.54239", "0.54220474", "0.54120404", "0.5388341", "0.5377356", "0.53549933", "0.5343284", "0.5341637", "0.5317202", "0.53087854", "0.5301058", "0.52773035", "0.52617145", "0.5256547", "0.5256007", "0.52470773", "0.5235763", "0.5223458", "0.52191776", "0.5208613", "0.5202031", "0.5186497", "0.51819456", "0.5175092", "0.51740414", "0.5161034", "0.5155075", "0.5134897", "0.5123564", "0.5111326", "0.5094397", "0.5090712", "0.5083885", "0.5074662", "0.5068977", "0.50571585", "0.50365686", "0.5031952", "0.5026418", "0.50239533", "0.5017684", "0.50147283", "0.50029796", "0.49977985", "0.49902478", "0.49804106", "0.49804035", "0.49785316", "0.49728802", "0.49710727", "0.4963728", "0.49615085", "0.4958844", "0.49337074", "0.49252504", "0.4923023", "0.49179316", "0.49139017", "0.49076593", "0.4900768", "0.48861596", "0.48842633", "0.48839146", "0.48803613", "0.48778108", "0.48740715", "0.48672765", "0.48650187", "0.4853102", "0.4850871", "0.4844865", "0.48437354", "0.4842112", "0.48367205", "0.48354167", "0.48333305", "0.48307854", "0.48262593", "0.482604", "0.48240864", "0.48172277", "0.48167425", "0.4813229", "0.48108476", "0.48086706", "0.48062456", "0.48059833", "0.480141", "0.4795974", "0.47901338", "0.4788284" ]
0.61392564
1
this is a DFS problem i will use a stack to traverse.. at every point, I will make a new String buffer, and either when i get a wall or cheese, i will continue to visit all the "places" i will simply do DFS.. and mark the nod i visited as boolean> visited=t char to my strig
interface Place { // Return the adjacent Place in the given direction public Place goNorth(); public Place goSouth(); public Place goEast(); public Place goWest(); // Returns true only for the special "Wall" place public boolean isWall(); // Returns true only for the special "Cheese" place public boolean isCheese(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String findCheese(Place startingPoint) {\nif (startingPoint==null)\n\treturn null;\n\nvisited.add(startingPoint);\nStack<Place> vstdstack=new Stack<Place>();\nvstdstack.add(startingPoint);\n//Stack<c> pather=\"start->\";\nwhile(!vstdstack.isEmpty())\n{\n\tPlace curpos=getNextPlace(vstdstack.peek());\n if (curpos==null)\n {\n vstdstack.pop();\n soln.deleteCharAt(soln.length()-1);\n continue;\n }\n if(curpos.isCheese())\n return soln.toString();\n else \n vstdstack.push(curpos);\n \n}\nreturn null;\n}", "boolean dfs(char[][] board, boolean[][] visited, int i, int j,String word, int k) {\n\t\t if(k==word.length()) return true;\n\t\t if(i<0||i>=board.length||j<0||j>=board[0].length) return false;\n\t\t if(visited[i][j]) return false;\n\t\t if(board[i][j]!=word.charAt(k)) return false;\n\t\t \n\t\t visited[i][j]=true;\n\t\t if(dfs(board,visited,i-1,j,word,k+1)) return true;\n\t\t if(dfs(board,visited,i+1,j,word,k+1)) return true;\n\t\t if(dfs(board,visited,i,j-1,word,k+1)) return true;\n\t\t if(dfs(board,visited,i,j+1,word,k+1)) return true;\n\t\t visited[i][j]=false;\n\t\t \n\t\treturn false;\n\t}", "public String depthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n ConstantTimeStack<Vertex<AnyType>> stack = new ConstantTimeStack<Vertex<AnyType>>();\n boolean exists = false;\n Vertex<AnyType> S = new Vertex<AnyType>(start_vertex);\n int counter = 0;\n //loop through to set each vertex to not visited\n for( int i = 0; i < vertex_adjacency_list.size(); i++){\n vertex_adjacency_list.get(i).setVisited(-1);\n //if find the start vertex then set index position to counter\n if(vertex_adjacency_list.get(i).compareTo(S) == 0){\n exists = true;\n vertex_adjacency_list.get(i).setVisited(counter);\n counter = i;\n }\n }\n //if doesn't exist then through exception\n if(exists == false){\n throw new VertexException(\"Start Vertex does not exist\");\n }\n //if it does exist then push start node onto stack, set visited \n else if(exists){\n stack.push(vertex_adjacency_list.get(counter));\n vertex_adjacency_list.get(counter).setVisited(1);\n Vertex <AnyType> e = vertex_adjacency_list.get(counter);\n counter = 2;\n int n = e.numberOfAdjacentVertices();\n try{\n \n while(true){\n //loop through e's adjacent vertices \n for (n = e.numberOfAdjacentVertices()-1; n >=0 ; n--){\n //if the adacent vertex has not been visited\n if(e.getAdjacentVertex(n).hasBeenVisited()==false){\n //change e to adjacent vertex and push onto stack\n e = e.getAdjacentVertex(n);\n stack.push(e);\n //set e as visited at counter\n e.setVisited(counter);\n counter++;\n //reset n to e's num of vertices\n n = e.numberOfAdjacentVertices();\n }\n //if it has been visited and it's the first node in list\n //then pop it off the stack and then set e to new top\n //set n to new num of vertices\n else if(e.getAdjacentVertex(n).hasBeenVisited() && n == 0){\n stack.pop();\n e = stack.peek();\n n = e.numberOfAdjacentVertices();\n }\n }\n }\n }catch(EmptyStackException m){\n }\n }\n //loop through the list and print each with when it was visited\n for(int k = 0; k< vertex_adjacency_list.size(); k++){\n buffer.append(vertex_adjacency_list.get(k) + \":\" + vertex_adjacency_list.get(k).getVisited()+ \"\\n\");\n }\n \n return buffer.toString();\n \n }", "public boolean serch(String word){\n return searchDFS(word, 0, root);\n}", "private void dfsVisit(Node node) {\n\t\tStack<Node>stack = new Stack<>();\r\n\t\tstack.push(node); //add source node to queue\r\n\t\twhile(!stack.isEmpty()) {\r\n\t\t\tNode presentNode = stack.pop();\r\n\t\t\tpresentNode.setVisited(true);\r\n\t\t\tSystem.out.print(presentNode.getName()+\" \");\r\n\t\t\tfor(Node neighbor: presentNode.getNeighbors()) { //for each neighbor of present node\r\n\t\t\t\tif(!neighbor.isVisited()) { //if neighbor is not visited then add it to queue\r\n\t\t\t\t\tstack.push(neighbor);\r\n\t\t\t\t\tneighbor.setVisited(true);\r\n\t\t\t\t}\r\n\t\t\t}//end of for loop\r\n\t\t}//end of while loop\r\n\t\t\r\n\t}", "public void dfs (String input)\r\n\t {\r\n\t\t \tNode root_dfs = new Node (input);\r\n\t\t \tNode current = new Node(root_dfs.getState());\r\n\t\t \t\r\n\t\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\tStack<Node> stack_dfs = new Stack<Node>();\r\n\t\t\t\r\n\t\t\tint nodes_popped = 0;\r\n\t\t\tint stack_max_size = 0;\r\n\t\t\tint stack_size = 0;\r\n\t\t\tcurrent.cost = 0;\r\n\t\t\t\r\n\t\t\tgoal_dfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t\twhile(!goal_dfs)\r\n\t\t\t{\r\n\t\t\t\tvisited.add(current.getState());\r\n\t\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\t\r\n\t\t\t\tfor (String a : children)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Repeated state check\r\n\t\t\t\t\t\tif (!stack_dfs.contains(nino))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tstack_dfs.add(nino);\r\n\t\t\t\t\t\t\tstack_size++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Popping off the stack. LIFO architecture\r\n\t\t\t\tcurrent = stack_dfs.pop();\r\n\t\t\t\tnodes_popped++;\r\n\t\t\t\t\r\n\t\t\t\tif (stack_size > stack_max_size)\r\n\t\t\t\t{\r\n\t\t\t\t\tstack_max_size = stack_size;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tstack_size--;\r\n\t\t\t\tgoal_dfs = isGoal(current.getState());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgoal_dfs = false;\r\n\t\t\tSystem.out.println(\"DFS Solved!!\");\r\n\t\t\tSolution.performSolution(current, root_dfs, nodes_popped, stack_max_size);\r\n\t }", "private static boolean dfs(char[][] matrix, String word, int i, int j, int index) {\n if (index == word.length()) {\n return true;\n }\n if (i < 0 || i >= matrix.length || j < 0 || j >= matrix[i].length) {\n // System.out.println(\"out of bound\");\n return false;\n }\n if (word.charAt(index) != matrix[i][j]) {\n // System.out.println(\"char not == \");\n return false;\n }\n if (matrix[i][j] == '$') {\n // System.out.println(\"mark \" + i + \", \" + j + \" as $\");\n return false;\n }\n char ori = matrix[i][j];\n matrix[i][j] = '$';\n if (dfs(matrix, word, i + 1, j, index + 1)|| dfs(matrix, word, i - 1, j, index + 1) ||\n dfs(matrix, word, i, j + 1, index + 1) || dfs(matrix, word, i, j - 1, index + 1)) {\n matrix[i][j] = ori; // backtracking here!!!\n return true;\n }\n matrix[i][j] = ori;\n return false;\n }", "void processDFS(int offset, String str) {\n if (offset == 0) {\n wordOut.add(str.strip());\n }\n ArrayList<Integer> arr = dp[offset];\n for (int iStart : arr) {\n String strWord = sentence.substring(iStart, offset);\n strWord = strWord + \" \" + str;\n processDFS(iStart, strWord);\n }\n }", "private static boolean DFS(char[][] grid, int i, int j, String word, int index, List<Pair<Integer, Integer>> coordinates) {\n if (index == word.length()) {\n return true;\n } else if (i >= grid.length || j >= grid[0].length) {\n return false;\n } else {\n if (grid[i][j] == word.charAt(index)) {\n coordinates.add(new Pair<>(i, j));\n boolean isPresentOnRight = DFS(grid, i, j + 1, word, index + 1, coordinates);\n if (isPresentOnRight) {\n return true;\n } else {\n boolean isPresentOnBottom = DFS(grid, i + 1, j, word, index + 1, coordinates);\n if (isPresentOnBottom) {\n return true;\n } else {\n //Neither left, not bottom gave us a valid result, have to backtrack and remove coordinate of current word\n coordinates.remove(coordinates.get(coordinates.size() - 1));\n return false;\n }\n }\n } else {\n //current word is not present, simply return false\n return false;\n }\n }\n }", "public Stack<Integer> dfs(Maze tmp) {\n \n int tmpx = tmp.positionX();\n int tmpy = tmp.positionY();\n Stack<Integer> s = new Stack<Integer>();\n while (!tmp.gameOver()) {\n choosedirection(s, tmp);\n while (!s.isEmpty() && !tmp.gameOver()) {\n if (s.peek() == 0) {\n if (tmp.right()) {\n s.push(1);\n } else if (tmp.up()) {\n s.push(0);\n } else if (tmp.left()) {\n s.push(3);\n } else {\n this.stackpop(s, tmp);\n }\n } else if (s.peek() == 1) {\n if (tmp.down()) {\n s.push(2);\n } else if (tmp.right()) {\n s.push(1);\n } else if (tmp.up()) {\n s.push(0);\n } else {\n this.stackpop(s, tmp);\n }\n } else if (s.peek() == 2) {\n if (tmp.left()) {\n s.push(3);\n } else if (tmp.down()) {\n s.push(2);\n } else if (tmp.right()) {\n s.push(1);\n } else {\n this.stackpop(s, tmp);\n }\n } else if (s.peek() == 3) {\n if (tmp.up()) {\n s.push(0);\n } else if (tmp.left()) {\n s.push(3);\n } else if (tmp.down()) {\n s.push(2);\n } else {\n this.stackpop(s, tmp);\n }\n\n }\n\n }\n }\n\n Stack<Integer> stack = new Stack<Integer>();\n while (!s.isEmpty()) {\n stack.push(s.pop());\n }\n\n tmp.setLocation(tmpx, tmpy);\n return stack;\n\n }", "public Stack<MazePoint> DepthFirstSearch(int row, int column)\n {\n //cMaze[row][column].wasVisited()\n if(cMaze[row][column].isExit())\n {\n sPath.push(cMaze[row][column]);\n //print out the path\n PrintPath(sPath, true);\n return sPath;\n }\n else\n {\n //when not visit\n if(!cMaze[row][column].wasVisited())\n {\n if(cMaze[row][column].hasItem())\n {\n String itemName = cMaze[row][column].pickUpItem();\n Item item = new Item(itemName);\n //check if the item is in the hashmap\n if(availableItemsHashMap.get(item) != null)\n {\n inventoryList.insert(itemName);\n }\n else\n {\n cMaze[row][column].dropItem();\n }\n }\n //mark as vist\n cMaze[row][column].markVisited();\n //push into stack\n sPath.push(cMaze[row][column]);\n }\n //determine where to traverse next (S, E, W, N)\n //recursively\n if(cMaze[row+1][column].canBeNavigated() || cMaze[row+1][column].isExit())// or (cMaze[row+1][column] != VISITED_MARKER && cMaze[row+1][column] != 'W')\n {\n return DepthFirstSearch(row+1, column);\n }\n else if(cMaze[row][column+1].canBeNavigated() || cMaze[row][column+1].isExit())\n {\n return DepthFirstSearch(row, column+1);\n }\n else if(cMaze[row][column-1].canBeNavigated() || cMaze[row][column-1].isExit())\n {\n return DepthFirstSearch(row, column-1);\n }\n else if(cMaze[row-1][column].canBeNavigated() || cMaze[row-1][column].isExit())\n {\n return DepthFirstSearch(row-1, column);\n }\n //no where could go, then return\n else\n {\n sPath.pop();\n if(sPath.isEmpty())\n {\n //print nothing found\n PrintPath(sPath, false);\n return sPath;\n }\n MazePoint mp = sPath.top();\n int mpRow = mp.getRow();\n int mpColumn = mp.getColumn();\n return DepthFirstSearch(mpRow, mpColumn);\n }\n }\n }", "public static void dfs(Node n,String ch){\n Stack<Node> st=new Stack(); // stack for storing path\n int freq=n.freq; // recording root freq to avoid it adding in path encoding\n find_path_and_encode(st,n,ch,freq);\n }", "public void dfs() {\n int currentVertexIndex = 0;\r\n dfsStack.push(0);\r\n vertexList[0].wasVisited = true;\r\n System.out.println(vertexList[dfsStack.peek()]);\r\n while (dfsStack.top != -1) {\r\n\r\n\r\n currentVertexIndex = this.getAdjUnvisitedVert(dfsStack.peek());\r\n if (currentVertexIndex != -1) {\r\n dfsStack.push(currentVertexIndex);\r\n vertexList[currentVertexIndex].wasVisited = true;\r\n System.out.println(vertexList[dfsStack.peek()]);\r\n\r\n\r\n } else {\r\n currentVertexIndex = dfsStack.pop();\r\n\r\n }\r\n }\r\n// reset wasVisted\r\n for (Vertex x : vertexList) {\r\n x.wasVisited = false;\r\n }\r\n }", "public void dfsPrint(Node start){\n Stack<Node> stack = new Stack<>();\n Set<Node> visited = new HashSet<>(); //we can use integer for better space\n\n stack.push(start);\n while (!stack.isEmpty()){\n Node curr = stack.pop();\n if(!visited.contains(curr)){\n visited.add(curr);\n //do something\n }\n for(Node n: curr.adj){\n if(!visited.contains(n)){\n stack.push(n);\n }\n }\n }\n }", "public static String findPath(Maze maze) {\n \tint m = maze.getNumRows();\n \tint n = maze.getNumCols();\n\n \t//define a visited matrix\n \tboolean[][] visited = new boolean[m][n];\n \tsetvisited(false, visited);\n\n \t//define a direction matrix\n \tint[][] dir_mtr = new int[m][n];\n \tinit_dir(-1,dir_mtr);\n\n\n\n \t//define a stack\n \tStack<MazeLocation> s;\n \ts = new StackRefBased<MazeLocation>();\n\n \tMazeLocation entry = maze.getEntry();\n \tMazeLocation exit = maze.getExit();\n \t// System.out.println(entry.toString());\n \ts.push(entry);\n\n\t\tMazeLocation temp; \n\t\tString result = \"\"; \t\n\n\t\ttry{\n\t\t\tint x,y;\n\n\n\t\t\twhile(!s.isEmpty()){\n\n \t\ttemp = s.peek();\n \t\tx = temp.getRow();\n \t\ty = temp.getCol();\n \t\tdir_mtr[x][y]+=1;\n\n \t\tif(temp.toString().equals(exit.toString())){\n \t\t\tSystem.out.println(\"find the path\");\n \t\t\tbreak;\n\n \t\t}\n\n \t\tif(dir_mtr[x][y]==0){ \n \t\t\t//checking the up direction\n \t\t\tif(x-1>=0 && !maze.isWall(x-1,y) && !visited[x-1][y]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x-1,y,maze.isWall(x-1,y));\n \t\t\t\tvisited[x-1][y] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n\n \t\t}else if(dir_mtr[x][y]==1){\n \t\t\t//checking the left direction\n \t\t\tif(y-1>=0 && !maze.isWall(x,y-1) && !visited[x][y-1]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x,y-1,maze.isWall(x,y-1));\n \t\t\t\tvisited[x][y-1] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n\n \t\t}else if(dir_mtr[x][y]==2){\n \t\t\t//checking the down direction\n \t\t\tif(x+1<m && !maze.isWall(x+1,y) && !visited[x+1][y]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x+1,y,maze.isWall(x+1,y));\n \t\t\t\tvisited[x+1][y] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n \t\t\t\n \t\t}else if(dir_mtr[x][y]==3){\n \t\t\t//checking the right direction\n \t\t\tif(y+1<n && !maze.isWall(x,y+1) && !visited[x][y+1]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x,y+1,maze.isWall(x,y+1));\n \t\t\t\tvisited[x][y+1] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n \t\t\t\n \t\t}else{\n \t\t\tvisited[x][y] = false;\n \t\t\ts.pop();\n \t\t}\n\n\n\n \t\t\n \t}\n\n \t//reverse the stack\n \tStack<MazeLocation> reverse;\n \treverse = new StackRefBased<MazeLocation>();\n \twhile(!s.isEmpty()){\n\t\t\t reverse.push(s.pop()); \t//push the node to the reverse stack\n\t\t\t }\n\n\n \t//if the stack is not empty, then we find the path\n\t\tif(!reverse.isEmpty()){\n\t\t\tresult = reverse.toString();\n\n\t\t}\n\n \t\n \n\n\t\t}\n\t\tcatch (StackEmptyException see) {\n \n }\n\n\n \treturn result;\n\n\n }", "private static void iddfs(State curr, int depth) {\n for(int i = 0; i <= depth; i++) {\r\n\r\n if(curr.isGoalState()) \r\n System.out.println(i+\":\"+curr.getOrderedPair()+\" Goal\");//initial is goal state\r\n else\r\n System.out.println(i+\":\"+curr.getOrderedPair());//initial\r\n\r\n curr.close.add(curr);\r\n State currState = curr;\r\n while(!currState.isGoalState()) {\r\n if(currState.depth < i)\r\n curr.buildStack(currState.getSuccessors(currState));\r\n System.out.print(i+\":\");\r\n curr.printHelp(currState, 5);\r\n if(!curr.open.isEmpty()) {\r\n currState = curr.open.get(curr.open.size()-1);\r\n curr.close.add(curr.open.remove(curr.open.size()-1));\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n if(currState.isGoalState()) {\r\n System.out.println(i+\":\"+currState.getOrderedPair() + \" Goal\");\r\n curr.printPath(currState);\r\n return;\r\n }\r\n curr.open.clear(); curr.close.clear();\r\n }\r\n }", "private static void DFS(char grid[][], int row, int col, int ROW, int COL, boolean visited[][]) {\n\t\t// these arrays are used to get row and column numbers of 8 neighbors of a given cell.\n\t\tint rowNum[] = new int[] {-1, -1, -1, 0, 0, 1, 1, 1};\n\t\tint colNum[] = new int[] {-1, 0, 1, -1, 1, -1, 0, 1};\n\t\t\n\t\t// mark this cell as visited\n\t\tvisited[row][col] = true;\n\t\t\n\t\t// recur for all connected neighbors\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tif (isSafe(grid, row+rowNum[i], col+colNum[i], ROW, COL, visited)) {\n\t\t\t\tDFS(grid, row+rowNum[i], col+colNum[i], ROW, COL, visited);\n\t\t\t}\n\t\t}\n\t}", "private void DFS(Vertex start, Set<Vertex> visited, Stack<Vertex> stack) {\r\n\t\t// if(visited.contains(start)) return;\r\n\r\n\t\t// Mark the current node as visited and push it\r\n\t\tvisited.add(start);\r\n\t\tstack.push(start);\r\n\r\n\t\tVertex currentNode;\r\n\t\tSet<Vertex> neighbors;\r\n\r\n\t\twhile (stack.size() > 0) {\r\n\t\t\t// Pop a vertex from stack and print it\r\n\t\t\tcurrentNode = stack.pop();\r\n\r\n\t\t\tSystem.out.print(currentNode + \" \");\r\n\r\n\t\t\t// Get all adjacent vertices of the dequeued vertex s\r\n\t\t\t// If a adjacent has not been visited, then mark it\r\n\t\t\t// visited and enqueue it\r\n\t\t\tneighbors = currentNode.getNeighbors();\r\n\r\n\t\t\tfor (Vertex n : neighbors) {\r\n\t\t\t\tif (!visited.contains(n)) {\r\n\t\t\t\t\tvisited.add(n);\r\n\t\t\t\t\tstack.push(n);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void dfs(){\n // start from the index 0\n for (int vertex=0; vertex<v; vertex++){\n // check visited or not\n if (visited[vertex]==false){\n Explore(vertex);\n }\n }\n }", "static void searchWord(WordNode root, char boggle[][], int i,\n int j, boolean visited[][], String str, ArrayList<String> elements)\n {\n\n // if we found word in trie / dictionary\n if (root.isWord == true){\n// System.out.println(str.toString());\n elements.add(str.toString());\n }\n\n\n // If both I and j in range and we visited\n // that element of matrix first time\n if (isSafe(i, j, visited,boggle))\n {\n // make it visited\n visited[i][j] = true;\n\n // traverse all child of current root\n for (int K =0; K < 26; K++)\n {\n if (root.child[K] != null)\n {\n // current character\n char ch = (char) (K + 'a') ;\n\n // Recursively search reaming character of word\n // in trie for all 8 adjacent cells of\n // boggle[i][j]\n if (isSafe(i+1,j+1,visited,boggle) && Character.toLowerCase(boggle[i+1][j+1])\n == ch)\n searchWord(root.child[K],boggle,i+1,j+1,\n visited,str+ch, elements);\n if (isSafe(i, j+1,visited,boggle) && Character.toLowerCase(boggle[i][j+1])\n == ch)\n searchWord(root.child[K],boggle,i, j+1,\n visited,str+ch, elements);\n if (isSafe(i-1,j+1,visited,boggle) && Character.toLowerCase(boggle[i-1][j+1])\n == ch)\n searchWord(root.child[K],boggle,i-1, j+1,\n visited,str+ch, elements);\n if (isSafe(i+1,j, visited,boggle) && Character.toLowerCase(boggle[i+1][j])\n == ch)\n searchWord(root.child[K],boggle,i+1, j,\n visited,str+ch, elements);\n if (isSafe(i+1,j-1,visited,boggle) && Character.toLowerCase(boggle[i+1][j-1])\n == ch)\n searchWord(root.child[K],boggle,i+1, j-1,\n visited,str+ch, elements);\n if (isSafe(i, j-1,visited,boggle)&& Character.toLowerCase(boggle[i][j-1])\n == ch)\n searchWord(root.child[K],boggle,i,j-1,\n visited,str+ch, elements);\n if (isSafe(i-1,j-1,visited,boggle) && Character.toLowerCase(boggle[i-1][j-1])\n == ch)\n searchWord(root.child[K],boggle,i-1, j-1,\n visited,str+ch, elements);\n if (isSafe(i-1, j,visited,boggle) && Character.toLowerCase(boggle[i-1][j])\n == ch)\n searchWord(root.child[K],boggle,i-1, j,\n visited,str+ch, elements);\n }\n }\n\n // make current element unvisited\n visited[i][j] = false;\n }\n }", "public void dfs (int start) {\n vertexList[start].wasVisited = true; // mark it\n print(start); stack.push(start);\n while (!stack.isEmpty()) {\n int b = getNextUnvisitedNeighbor(stack.peek());\n if (b==-1) stack.pop(); // no unvisited neighbor;\n else {\n vertexList[b].wasVisited = true;\n print(b); stack.push(b);\n }\n }\n // clear wasVisited marks\n }", "public boolean dfs_iterative_util(LinkedList<Integer>[] graph, boolean[] visited, int s){\n Stack<Integer> fringe = new Stack<Integer>();\n Set<Integer> currStack = new HashSet<Integer>();\n \n fringe.push(s);\n currStack.add(s);\n \n while(!fringe.isEmpty()){\n int curr = fringe.pop();\n if(currStack.contains(curr))\n return false;\n visited[curr] = true;\n currStack.add(curr);\n if(graph[curr] != null){\n Iterator<Integer> itr = graph[curr].iterator();\n while(itr.hasNext()){\n int n = itr.next();\n \n if(!visited[n]){\n fringe.push(n);\n }\n }\n currStack.remove(curr);\n }\n \n }\n \n return true;\n }", "private List<Integer> depthFirstSearch(String sequence) {\r\n LinkedList<Integer> stack = new LinkedList<Integer>();\r\n LinkedList<Integer> wordPos = new LinkedList<Integer>();\r\n List<Integer> neighbors = null;\r\n //string pos counter\r\n int c = 0;\r\n int index = -1;\r\n //find starting pos\r\n for (int i = 0; i < squareDimension * squareDimension; i++) {\r\n if (sequence.toUpperCase().startsWith(this.elementAtPos(i))) {\r\n this.clearMarks();\r\n wordPos.clear();\r\n stack.clear();\r\n //depth-first search\r\n stack.push(i);\r\n togglePosMark(i);\r\n wordPos = (LinkedList<Integer>) \r\n dfsRecursive(stack, sequence.substring(\r\n elementAtPos(i).length(), sequence.length())\r\n .toUpperCase(), elementAtPos(i).length(), \r\n i, sequence.length());\r\n if (wordPos.size() != 0) {\r\n return wordPos;\r\n }\r\n }\r\n }\r\n //no result so return empty list\r\n return new LinkedList<Integer>();\r\n }", "private boolean DFSUtil(State state, ArrayList<String> visited, int currentDepth) {\n // Mark the current node as visited and print it\n visited.add(state.joinValues());\n\n this.path.push(state);\n\n if (this.problem.goalTest(state)) {\n return true;\n }\n\n // Recur for all the vertices adjacent to this vertex\n // extend the current node\n ListIterator<State> iterator = this.extend(state).listIterator();\n this.incrementExtendedNumber();\n while (iterator.hasNext()) {\n State state1 = iterator.next();\n if (this.limit > currentDepth) {\n if (this.graphSearch && !visited.contains(state1.joinValues())) {\n this.incrementVisitedNumber();\n if (DFSUtil(state1, visited, currentDepth + 1))\n return true;\n else\n this.path.pop();\n } else if (!this.graphSearch) {\n this.incrementVisitedNumber();\n if (DFSUtil(state1, visited, currentDepth + 1))\n return true;\n else\n this.path.pop();\n }\n }\n\n\n this.setMaxMemory(this.path.size());\n }\n return false;\n }", "public boolean dfs(char[][] board, String word, boolean[][] visited, int i, int j, int k) {\n if (board[i][j] != word.charAt(k)) return false;\n // match the word, end\n else if (k == word.length() - 1) return true;\n // mark current element as visited\n visited[i][j] = true;\n // if this i, j can match word\n boolean res = false;\n // four directions to move\n int[][] direactions = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};\n for (int[] dir: direactions) {\n int newi = i + dir[0], newj = j + dir[1];\n if (newi >= 0 && newi < board.length && newj >= 0 && newj < board[0].length) {\n if (!visited[newi][newj]) {\n if(dfs(board, word, visited, newi, newj, k + 1)) {\n // match, so end loop\n res = true;\n break;\n }\n }\n }\n }\n // cancel this loop visited element mark\n visited[i][j] = false;\n return res;\n }", "public String DFS(int g) {\n\t\t//TODO\n\t}", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "public static void main(String[] args) {\n\n BDNode a = new BDNode(\"A\");\n BDNode b = new BDNode(\"B\");\n BDNode c = new BDNode(\"C\");\n BDNode d = new BDNode(\"D\");\n BDNode e = new BDNode(\"E\");\n\n a.link(b);\n a.link(d);\n b.link(a);\n b.link(c);\n b.link(e);\n c.link(b);\n c.link(d);\n d.link(a);\n d.link(c);\n d.link(e);\n e.link(b);\n e.link(d);\n\n BDNode target = e;\n\n/*\n // BFS\n Queue<BDNode> queue = new LinkedList<>();\n queue.offer(a);\n\n while(!queue.isEmpty()) {\n BDNode n = queue.poll();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if(n.equals(target)) {\n System.out.println(\"BFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if(l.isVisited()) continue;\n if (queue.contains(l)) continue;\n queue.offer(l);\n }\n\n // 위랑 같은 표현\n// n.links.stream()\n// .filter(l -> !queue.contains(l))\n// .forEach(queue::offer);\n }\n*/\n\n // DFS\n Stack<BDNode> stack = new Stack<>();\n stack.push(a);\n\n while(!stack.isEmpty()) {\n BDNode n = stack.pop();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if (n.equals(target)) {\n System.out.println(\"DFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if (l.isVisited()) continue;\n if (stack.contains(l)) continue;\n\n stack.push(l);\n }\n }\n\n\n }", "public void depthFirstSearch(Node vertex){\n vertex.visited = true;\n if(vertex.row == row_size-1 && vertex.col == col_size-1){\n while(!dfs_stack.isEmpty()){\n exitPath +=dfs_stack.peek(); \n dfs_stack.pop();\n } \n }\n if(vertex.north!=null && vertex.north.visited==false){\n dfs_stack.push(\"N\");\n vertex.depthFirstSearch(vertex.north);\n }\n if(vertex.south!=null && vertex.south.visited==false){\n dfs_stack.push(\"S\");\n vertex.depthFirstSearch(vertex.south);\n }\n if(vertex.west !=null && vertex.west.visited ==false){\n dfs_stack.push(\"W\");\n vertex.depthFirstSearch(vertex.west);\n }\n if(vertex.east !=null && vertex.east.visited==false){\n dfs_stack.push(\"E\");\n vertex.depthFirstSearch(vertex.east);\n }\n if (!dfs_stack.isEmpty()){\n dfs_stack.pop();\n }\n return;\n }", "private static void dfs(int idx, boolean[] visited, boolean[] isbreak) {\n\t\tif(idx==N) {\n\t\t\t//System.out.println(\"����������\");\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0; i<N; i++) {\n\t\t\t\tif(isbreak[i]) cnt++; \n\t\t\t}\n\t\t\tans=Math.max(ans, cnt);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(isbreak[idx]) {\n\t\t\tdfs(idx+1, visited, isbreak); return;\n\t\t}\n\t\t\n\t\tboolean flag = false;\n\t\tfor(int i=0; i<N; i++) {\n\t\t\t//System.out.println(\"i:\"+i);\n\t\t\tif(i==idx) continue;\n\t\t\t\n\t\t\tif(!isbreak[i]) {\n\t\t\t\tflag=true;\n\t\t\t\t/*System.out.println(i+\"�� ģ��\");\n\t\t\t\tSystem.out.println(\"ġ����\");\n\t\t\t\tSystem.out.println(list.get(idx).inner+\" \"+list.get(idx).weight);\n\t\t\t\tSystem.out.println(list.get(i).inner+\" \"+list.get(i).weight);*/\n\t\t\t\tlist.get(idx).inner-=list.get(i).weight;\n\t\t\t\tlist.get(i).inner-=list.get(idx).weight;\n\t\t\t\t/*System.out.println(\"ġ����\");\n\t\t\t\tSystem.out.println(list.get(idx).inner+\" \"+list.get(idx).weight);\n\t\t\t\tSystem.out.println(list.get(i).inner+\" \"+list.get(i).weight);*/\n\t\t\t\tif(list.get(i).inner <= 0) isbreak[i]=true;\n\t\t\t\tif(list.get(idx).inner <= 0) isbreak[idx]=true;\n\t\t\t\t\n\n\t\t\t\tdfs(idx+1,visited,isbreak);\n\t\t\t\t\n\t\t\t\tlist.get(idx).inner+=list.get(i).weight;\n\t\t\t\tlist.get(i).inner+=list.get(idx).weight;\n\t\t\t\tif(list.get(i).inner > 0) isbreak[i]=false;\n\t\t\t\tif(list.get(idx).inner > 0) isbreak[idx]=false;\n\t\t\t}\n\t\t}\n\t\tif(!flag) {\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0; i<N; i++) {\n\t\t\t\tif(isbreak[i]) cnt++; \n\t\t\t}\n\t\t\tans=Math.max(ans, cnt);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}", "private void dfs(String source) {\n visited.add(source);\n\n System.out.println(source);\n\n for (Object vertex : graph.get(source)) {\n if (!visited.contains(vertex))\n dfs((String) vertex);\n }\n }", "void DFS() {\n \t\n \t// Mark all the vertices as not visited(set as false by default in java) \n \tboolean visited[] = new boolean[V];\n \t\n \t// Call the recursive helper function to print DFS traversal \n // starting from all vertices one by one \n \tfor (int i=0; i<V; i++) { \n \t\t if (visited[i] == false)\n \t\t\t DFSUtil(i, visited);\n \t}\n }", "public void retrace(){\n\t\t//look at the sPath stack\n\t\tPoint temp = sPath.peek();\n\t\t// find neighbor with lowest score\n\t\tPoint lNeighbor = backtrack(temp);\n\t\t// coordinates of lNeighbor\n\t\tint x = (int) lNeighbor.getX();\n\t\tint y = (int) lNeighbor.getY();\n\t\t// score of neighbor\n\t\tint score = topology[x][y];\n\t\t// if there is no more neighbor then lNeighbor = temp\n\t\t// then we reach the Start then\n\t\twhile(score!=0){\n\t\t\t// push that neighbor on the stack\n\t\t\tsPath.push(lNeighbor);\n\t\t\t// update temp and lNeighbor\n\t\t\ttemp = sPath.peek();\n\t\t\tlNeighbor = backtrack(temp);\n\t\t\t// coordinates of lNeighbor\n\t\t\tx = (int) lNeighbor.getX();\n\t\t\ty = (int) lNeighbor.getY();\n\t\t\t// score of neighbor\n\t\t\tscore = topology[x][y];\n\t\t}\n\t\t// we have to do that until we see the start with score 0\n\t\t// the last lNeighbor is the S with score = 0, push it to the stack\n\t\tsPath.push(lNeighbor);\n\t\twhile(!sPath.isEmpty()){\n\t\t\tPoint track = sPath.pop();\n\t\t\tSystem.out.println(\"(\"+(int)track.getX()+\",\"+(int)track.getY()+\")\");\n\t\t}\n\t}", "private void dfs(TrieNode node, List<String> prev, String current) {\n if (node.isLeaf) {\n prev.add(current);\n }\n\n for (int i = 0; i < 26; i++) {\n TrieNode child = node.children[i];\n if (child != null) {\n char c = (char) ('A' + i);\n dfs(child, prev, current + c);\n\n }\n\n\n }\n }", "public void mst() {\n int currentVertexIndex = 0;\r\n dfsStack.push(0);\r\n vertexList[0].wasVisited = true;\r\n// System.out.println(vertexList[dfsStack.peek()]);\r\n while (dfsStack.top != -1) {\r\n\r\n\r\n currentVertexIndex = this.getAdjUnvisitedVert(dfsStack.peek());\r\n if (currentVertexIndex != -1) {\r\n System.out.print(vertexList[dfsStack.peek()]);\r\n dfsStack.push(currentVertexIndex);\r\n vertexList[currentVertexIndex].wasVisited = true;\r\n System.out.print(vertexList[dfsStack.peek()]);\r\n System.out.print(\", \");\r\n\r\n\r\n } else {\r\n currentVertexIndex = dfsStack.pop();\r\n\r\n }\r\n }\r\n for (Vertex x : vertexList) {\r\n x.wasVisited = false;\r\n }\r\n }", "private void dfs(String s, int leftCount, int rightCount, int openCount, int index, StringBuilder sb, Set<String> res) {\n if (index == s.length()) {\n if (leftCount == 0 && rightCount == 0 && openCount == 0) res.add(sb.toString());\n return;\n }\n if (leftCount < 0 || rightCount < 0 || openCount < 0) return;\n int len = sb.length();\n if (s.charAt(index) == '(') {\n dfs(s, leftCount - 1, rightCount, openCount, index + 1, sb, res);\n dfs(s, leftCount, rightCount, openCount + 1, index + 1, sb.append('('), res);\n } else if (s.charAt(index) == ')') {\n dfs(s, leftCount, rightCount - 1, openCount, index + 1, sb, res);\n dfs(s, leftCount, rightCount, openCount - 1, index + 1, sb.append(')'), res);\n } else {\n dfs(s, leftCount, rightCount, openCount, index + 1, sb.append(s.charAt(index)), res);\n }\n sb.setLength(len);\n }", "public String breadthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n boolean exists = false;\n Vertex<AnyType> S = new Vertex<AnyType>(start_vertex);\n int counter = 1;\n //make new vertex to check if its in list\n //make queue to hold vertices\n SemiConstantTimeQueue<Vertex<AnyType>> queue = new SemiConstantTimeQueue<Vertex<AnyType>>();\n //loop through and set not visited\n for( int i = 0; i < vertex_adjacency_list.size(); i++){\n vertex_adjacency_list.get(i).setVisited(-1);\n //if it's in list then set exists to true\n //and set visited \n if(vertex_adjacency_list.get(i).compareTo(S) == 0){\n exists = true;\n vertex_adjacency_list.get(i).setVisited(counter);\n counter = i;\n }\n } \n //if doesn't exist then throw the exception\n if(exists == false){\n throw new VertexException(\"Start Vertex does not exist\");\n }\n //make new queue\n queue.add(vertex_adjacency_list.get(counter));\n vertex_adjacency_list.get(counter).setVisited(1);\n counter = 1;\n int k=0;\n Vertex<AnyType>e;\n //while the queue isn't empty\n while(queue.peek() !=null){\n //make e the top of the queue \n e = queue.peek(); \n //go through the list and if you reach the begining it exits loop\n for( k = 0; k < vertex_adjacency_list.size()-1; k++){\n if(vertex_adjacency_list.get(k).compareTo(e)==0){\n break;\n }\n } \n //go through loop and check if visited, if not then add it to queue, set visited\n for( int j = 0; j< vertex_adjacency_list.get(k).numberOfAdjacentVertices(); j++){\n if(vertex_adjacency_list.get(k).getAdjacentVertex(j).hasBeenVisited()==false){\n counter++;\n queue.add(vertex_adjacency_list.get(k).getAdjacentVertex(j));\n vertex_adjacency_list.get(k).getAdjacentVertex(j).setVisited(counter);\n }\n }\n //remove from queue when through loop once\n k++;\n queue.remove();\n }\n //loop through list and print vertex and when it was visited\n for(int o = 0; o< vertex_adjacency_list.size(); o++){\n buffer.append(vertex_adjacency_list.get(o) + \":\" + vertex_adjacency_list.get(o).getVisited()+ \"\\n\");\n }\n return buffer.toString();\n }", "private void breadthFirstSearch(Node sourceNode, Node destinationNode, String path, HashSet<Character> visited) {\n // Create a list of nodes to visit (children of nodes)\n LinkedList<Node> nextToVisit = new LinkedList<>();\n // Add the first node to the list\n nextToVisit.add(sourceNode);\n\n // Traverse level by level by traversing to all of its children first\n while(!nextToVisit.isEmpty()) {\n Node node = nextToVisit.remove();\n // If its visited already, continue to the next child\n if(visited.contains(node.charId)) {\n continue;\n }\n // Mark the node as visited\n path += \"->\" + node.charId;\n visited.add(node.charId);\n // If destination is reached\n if(node == destinationNode) {\n paths.add(path);\n return;\n }\n // Add all of its children to the next node to visit\n for(Node children : node.adjacent) {\n nextToVisit.add(children);\n }\n }\n\n }", "private static boolean dfs(char[][] board, int r, int c) {\n if (r == 9)\n return true;\n\n // return here and line 57 is because you will backtrack to the very beginning once a solution is found\n if (c == 9)\n return dfs(board, r + 1, 0);\n\n if (board[r][c] == '.') {\n // try each number\n for (int k = 1; k <= 9; k++) {\n board[r][c] = Character.forDigit(k, 10);\n if (isValid(board, r, c)) {\n // when find the solution should return true to avoid any more backtrack search\n if (dfs(board, r, c + 1))\n return true;\n }\n board[r][c] = '.';\n }\n } else {\n return dfs(board, r, c + 1);\n }\n return false;\n }", "private static void DFSinfect(char[][] grid, int row, int column) {\n int rowLength = grid.length - 1;\n int colLength = grid[0].length - 1;\n if (row < 0 || row > rowLength || column < 0 || column > colLength) {\n return;\n }\n char val = grid[row][column];\n if (val == '0')\n return;\n grid[row][column] = '0';\n DFSinfect(grid, row + 1, column);\n DFSinfect(grid, row - 1, column);\n DFSinfect(grid, row, column + 1);\n DFSinfect(grid, row, column - 1);\n }", "public static void DFS(char[][] mat, int row, int col, boolean[][] visited)\r\n\t{\n\t\tint[] rowNbr = {-1, 0, 0, 1};\r\n\t\tint[] colNbr = {0, -1, 1, 0};\r\n\t\t\r\n\t\t// Mark the row as visited\r\n\t\tvisited[row][col] = true;\r\n\t\t\r\n\t\tfor (int i = 0; i < 4; i++) \r\n\t\t{\r\n\t\t\tif (ifSafe(mat, row + rowNbr[i], col + colNbr[i], visited))\r\n\t\t\t\tDFS(mat, row + rowNbr[i], col + colNbr[i], visited);\r\n\t\t}\r\n\t}", "static void DFS(int Node)\n {\n\n visit[Node] = true;\n for (int i = 1; i < ver+1; i++) {\n\n\n if (map[Node][i] == 1 && visit[i] == false) {\n DFS(i);\n }\n\n }\n\n\n }", "private boolean dfs(String word, int idx, TrieNode parent) {\n if (idx == word.length()) {//since it's parent node so idx cannot be len - 1\n return parent.isLeaf;\n }\n if (word.charAt(idx) == '.') {\n for (TrieNode curr : parent.map.values()) {\n boolean res = dfs(word, idx + 1, curr);\n if (res) return true;\n }\n } else {\n if (parent.map.containsKey(word.charAt(idx))) {\n return dfs(word, idx + 1, parent.map.get(word.charAt(idx)));\n }\n }\n return false;\n}", "private DFSResult dfs(HashSet<Integer> exploredEdges, int letter) {\r\n int nLoops = 0;\r\n int nNodes = 0;\r\n int maxConnectedLetter = 0;\r\n int maxConnections = -1;\r\n\r\n Stack<Integer> chain = new Stack<>();\r\n\r\n matrix[letter][letter] = 1;\r\n chain.push(letter);\r\n\r\n while(!chain.isEmpty()) {\r\n int u = chain.pop();\r\n nNodes++;\r\n\r\n int nConnections = 0;\r\n\r\n Iterator it = getIterator(u);\r\n\r\n Integer vertex;\r\n\r\n while((vertex = it.next()) != null) {\r\n nConnections++;\r\n\r\n if(exploredEdges.contains(this.matrix[u][vertex])) {\r\n continue;\r\n }\r\n\r\n exploredEdges.add(this.matrix[u][vertex]);\r\n\r\n if(matrix[vertex][vertex] == 0) {\r\n matrix[vertex][vertex] = 1;\r\n chain.push(vertex);\r\n } else if(matrix[vertex][vertex] == 1) {\r\n nLoops++;\r\n }\r\n }\r\n\r\n if(nConnections > maxConnections) {\r\n maxConnections = nConnections;\r\n maxConnectedLetter = u;\r\n }\r\n }\r\n\r\n return new DFSResult(nLoops, nNodes, maxConnectedLetter);\r\n }", "private void DFS() {\n\t\tfor(Node node: nodeList) {\r\n\t\t\tif(!node.isVisited())\r\n\t\t\t\tdfsVisit(node);\r\n\t\t}\r\n\t}", "private void dfs(int y, int x, boolean[][] visited, Set<String> results, BoggleBoard board,\n\t\t\tTST.BacktrackTraverser<Integer> bt) {\n\t\tif (bt.hasValue()) {\n\t\t\tString word = appendU(bt.getWord());\n\t\t\tif (bt.getValue() > 0) {\n\t\t\t\tresults.add(word);\n\t\t\t}\n\t\t}\n\n\t\t// Check every unused nearby grid.\n\t\t// Only continue on grid if there's some word down the TST.\n\t\tfor (int[] dir : directions) {\n\t\t\tint[] moved = move(y, x, dir);\n\t\t\tif (!inBound(moved, board)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (visited[moved[0]][moved[1]]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tchar singleLetter = board.getLetter(moved[0], moved[1]);\n\t\t\tif (!bt.hasDown(singleLetter)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvisited[moved[0]][moved[1]] = true;\n\t\t\tbt.down(singleLetter);\n\t\t\tdfs(moved[0], moved[1], visited, results, board, bt);\n\t\t\tbt.up();\n\t\t\tvisited[moved[0]][moved[1]] = false;\n\t\t}\n\t}", "private boolean dfs(String word, TrieNode parent) {\n if (word.length() == 0) {//since it's parent node so idx cannot be len - 1\n return parent.isLeaf;\n }\n boolean firstMatch = word.length() > 0 && (parent.map.containsKey(word.charAt(0)) || word.charAt(0) == '.');\n if (word.length() > 1 && word.charAt(1) == '*') {\n if(word.charAt(0) == '.') {\n boolean tmp = false;\n for (TrieNode curr : parent.map.values()) {\n tmp = tmp || firstMatch && dfs(word, curr);\n }\n return tmp || firstMatch && dfs(word.substring(2), parent); //match || no match\n } else {\n return firstMatch && (dfs(word, parent.map.get(word.charAt(0))) || dfs(word.substring(2), parent.map.get(word.charAt(0))));\n }\n } else {\n if (word.charAt(0) == '.') {\n boolean tmp = false;\n for (TrieNode curr : parent.map.values()) {\n tmp = tmp || firstMatch && dfs(word.substring(1), curr);\n }\n return tmp;\n } else {\n return firstMatch && dfs(word.substring(1), parent.map.get(word.charAt(0)));\n }\n }\n }", "static void dfs(int[][] G){\n\t\tStack<Integer> s = new Stack<Integer>();\n\t\tfor (int ver_start=0; ver_start<N; ver_start++){\n\t\t\tif (visited[ver_start]) continue;\n\t\t\ts.push(ver_start);\n\t\t\tvisited[ver_start] = true;\n\n\t\t\twhile(!s.isEmpty()){\n\t\t\t\tint vertex = s.pop();\n\t\t\t\tSystem.out.print((vertex+1) + \" \");\n\t\t\t\tfor (int i=0; i<N; i++){\n\t\t\t\t\tif (G[vertex][i] == 1 && !visited[i]){\n\t\t\t\t\t\t// find neigbor of current vertex and not visited\n\t\t\t\t\t\t// add into the stack\n\t\t\t\t\t\ts.push(i);\n\t\t\t\t\t\tvisited[i] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void botched_dfs2(Graph g, int s) {\n Stack<Integer> stack = new Stack<Integer>();\n boolean visited[] = new boolean[g.vertices()];\n stack.push(s);\n System.out.println(s);\n visited[s] = true;\n while (!stack.empty()) {\n int u = stack.pop();\n for (Edge e : g.next(u))\n if (!visited[e.to]) {\n System.out.println(e.to);\n visited[e.to] = true;\n stack.push(e.to);\n }\n }\n }", "public static void botched_dfs3(Graph g, int s) {\n int cpt = 0;\n\n Stack<Integer> stack = new Stack<Integer>();\n boolean visited[] = new boolean[g.vertices()];\n stack.push(s);\n while (!stack.empty()) {\n System.out.println(\"Capacité : \" + stack.capacity());\n int u = stack.pop();\n if (!visited[u]) {\n visited[u] = true;\n System.out.println(u);\n for (Edge e : g.next(u))\n if (!visited[e.to]) {\n stack.push(e.to);\n cpt++;\n }\n }\n }\n }", "public static int[] dfs_Stack(gNode[] G, boolean[] visited, int[] path, int s){\n\t\tStack <Integer> dfs = new Stack<Integer>();\n\n\t\tdfs.push(s);\n\t\tvisited[s] = true;\n\t\twhile(!dfs.isEmpty()){\n\t\t\ts = dfs.pop();\n\t\t\tfor(gNode t=G[s]; t!= null; t=t.dest){\n\t\t\t\tif(!visited[t.item]){\t\t//once an item has been visited, set it equal to true\n\t\t\t\t\tvisited[t.item] = true;\n\t\t\t\t\tpath[t.item] = s;\t\t//change the int value of the path\n\t\t\t\t\tdfs.push(t.item);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn path;\n\n\n\t}", "void BFS(int s, int d) \r\n { \r\n int source = s;\r\n int destination = d;\r\n boolean visited[] = new boolean[V];\r\n int parent[] = new int[V];\r\n \r\n // Create a queue for BFS \r\n LinkedList<Integer> queue = new LinkedList<Integer>(); \r\n \r\n // Mark the current node as visited and enqueue it \r\n \r\n visited[s]=true; \r\n queue.add(s); \r\n System.out.println(\"Search Nodes: \");\r\n while (queue.size() != 0) \r\n { \r\n int index = 0;\r\n \r\n // Dequeue a vertex from queue and print it \r\n \r\n s = queue.poll();\r\n \r\n System.out.print(convert2(s)); \r\n \r\n if(s == destination)\r\n {\r\n break;\r\n }\r\n \r\n System.out.print(\" -> \");\r\n while(index < adj[s].size()) \r\n { \r\n \r\n \r\n int n = adj[s].get(index); \r\n if (!visited[n]) \r\n { \r\n visited[n] = true;\r\n parent[n] = s;\r\n queue.add(n); \r\n }\r\n index = index+ 2;\r\n \r\n \r\n }\r\n \r\n \r\n \r\n }\r\n int check = destination;\r\n int cost = 0, first, second = 0;\r\n String string = \"\" + convert2(check);\r\n while(check!=source)\r\n {\r\n \r\n first = parent[check];\r\n string = convert2(first) + \" -> \" + string;\r\n while(adj[first].get(second) != check)\r\n {\r\n second++;\r\n }\r\n cost = cost + adj[first].get(second +1);\r\n check = first;\r\n second = 0;\r\n \r\n }\r\n \r\n System.out.println(\"\\n\\nPathway: \");\r\n \r\n System.out.println(string);\r\n \r\n \r\n System.out.println(\"\\nTotal cost: \" + cost);\r\n }", "public void dfs()\n{\n Stack s=new Stack();\n s.push(this.rootNode);\n rootNode.visited=true;\n printNode(rootNode);\n while(!s.isEmpty())\n {\n Node n=(Node)s.peek();\n Node child=getUnvisitedChildNode(n);\n if(child!=null)\n {\n child.visited=true;\n printNode(child);\n s.push(child);\n }\n else\n {\n s.pop();\n }\n }\n //Clear visited property of nodes\n clearNodes();\n}", "public void DFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\t// Create a stack for DFS\r\n\t\tStack<Vertex> stack = new Stack<Vertex>();\r\n\r\n\t\tDFS(this.vertices[3], visited, stack); // DFS starting with 40\r\n\r\n\t\t// Call the helper function to print DFS traversal\r\n\t\t// starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\tDFS(this.vertices[i], visited, stack);\r\n\t}", "private void depthFirstSearch(Slot start, ArrayList<Pair<Slot, Slot>> moves, HashMap<Slot, Slot> parents) {\n boolean[][] visitedSlots = new boolean[Board.MAX_ROW][Board.MAX_COLUMN];\n\n setSlotsAsNotVisited(visitedSlots);\n\n Stack<Slot> dfsStack = new Stack<>();\n int color = start.getColor();\n\n dfsStack.push(start);\n Slot previous = start;\n\n boardObject.setSlotColor(boardObject.getSlot(start.getRow(), start.getColumn()), Slot.EMPTY);\n\n while (!dfsStack.empty()) {\n Pair<Slot, Slot> next;\n Slot current = dfsStack.pop();\n\n if (!visitedSlots[current.getRow()][current.getColumn()] && !current.equals(previous)) {\n if (!current.equals(start)) {\n visitedSlots[current.getRow()][current.getColumn()] = true;\n }\n\n next = new Pair<>(start, current);\n\n moves.add(next);\n }\n\n Slot up = getUp(current);\n Slot down = getDown(current);\n Slot left = getLeft(current);\n Slot right = getRight(current);\n\n if (left != null && !visitedSlots[left.getRow()][left.getColumn()]) {\n if (!isChild(current, left, parents)) {\n dfsStack.push(left);\n parents.put(left, current);\n }\n }\n\n if (down != null && !visitedSlots[down.getRow()][down.getColumn()]) {\n if (!isChild(current, down, parents)) {\n dfsStack.push(down);\n parents.put(down, current);\n }\n }\n\n if (right != null && !visitedSlots[right.getRow()][right.getColumn()]) {\n if (!isChild(current, right, parents)) {\n dfsStack.push(right);\n parents.put(right, current);\n }\n }\n\n if (up != null && !visitedSlots[up.getRow()][up.getColumn()]) {\n if (!isChild(current, up, parents)) {\n dfsStack.push(up);\n parents.put(up, current);\n }\n }\n\n previous = current;\n }\n\n boardObject.setSlotColor(boardObject.getSlot(start.getRow(), start.getColumn()), color);\n }", "public void dfs(DirectedGraph graph, int node){\n onStack[node] = true;\n // marked the node as visited\n marked[node] = true;\n // traverse through the neigh of the node\n for(int neigh: graph.adj[node]){\n // if the cycle stack is not empty then we have cycle\n if (this.hasCycle()) return;\n else if (!marked[neigh]){\n // assign node as neigh parent to check cycle later\n parent[neigh] = node;\n // traverse through unvisited node\n dfs(graph,neigh);\n // if neigh is already visited and onstack then trace back to\n // check if the parent of node is the same as neigh\n }else if (onStack[neigh]){\n// System.out.println(\"neigh = \"+ neigh + \" node = \"+ node);\n // put all the vertex in the cycle to the stack\n int v = node;\n cycle.push(v);\n while(v != neigh){\n v = parent[v];\n cycle.push(v);\n }\n if(cycle.size() < 3) cycle = new Stack<>();\n else {\n System.out.print(\"The cycle is \");\n for (int vertex : cycle) System.out.print(vertex + \",\");\n System.out.println();\n }\n\n }\n }\n onStack[node] = false;\n }", "private void findDetectivePath() {\n Cell current, next;\n detectivePath = new ArrayDeque<>();\n clearVisitedMarks();\n current = detective;\n current.visited = true;\n\n while (true) {\n next = nextNotVisitedCell(current);\n if (next == killer) {\n detectivePath.addLast(current);\n detectivePath.addLast(next);\n break;\n } else if (next != null) {\n detectivePath.addLast(current);\n current = next;\n current.visited = true;\n } else {\n current = detectivePath.pollLast();\n }\n }\n detectivePath.pollFirst();\n }", "public void doDfsIterative(Graph g, int s) {\n boolean[] myVisited = new boolean[8];\n Stack<Integer> stack = new Stack<>();\n stack.push(s);\n myVisited[s] = true;\n while (!stack.isEmpty()) {\n int top = stack.pop();\n System.out.print(\"[\" + top + \"] \");\n for (int e : g.adj[top]) {\n if (!myVisited[e]) {\n stack.push(e);\n myVisited[e] = true;\n }\n }\n }\n\n }", "private String[][] pathFinder(int currentX, int currentY, Level level) {\n\t\tint[] dr = {-1,1,0,0};\n\t\tint[] dc = {0,0,1,-1};\n\t\tQueue<int[]> bfs = new LinkedList<int[]>();\n\t\tbfs.add(new int[] {currentX,currentY});\n\t\tboolean[][] passed = new boolean[level.getWidth()+2][level.getHeight()+2];\n\t\tfor (int x = 0; x < level.getHeight(); x++) {\n\t\t\tfor (int y = 0; y < level.getWidth(); y++) {\n\t\t\t\tpassed[y][x] = false;\n\t\t\t}\n\t\t} passed[currentX][currentY] = true;\n\t\tString[][] prev = new String[level.getWidth()][level.getHeight()];\n\t\tfor (int x = 0; x < level.getHeight(); x++) {\n\t\t\tfor (int y = 0; y < level.getWidth(); y++) {\n\t\t\t\tprev[y][x] = null;\n\t\t\t}\n\t\t}while (!bfs.isEmpty()) {\n\t\t\tint[] node = bfs.remove();\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tint rr = node[0] + dr[i];\n\t\t\t\tint cc = node[1] + dc[i];\n\t\t\t\tif (level.getTiles()[rr][cc] instanceof Water && !passed[rr][cc]) {\n\t\t\t\t\tbfs.add(new int[] {rr,cc});\n\t\t\t\t\tpassed[rr][cc] = true;\n\t\t\t\t\tprev[rr][cc] = (Integer.toString(node[0]).concat(\",\").concat(Integer.toString(node[1])));\n\t\t\t\t}\n\t\t\t}\n\t\t} return prev;\n\t}", "private void dfsVisit(Node node, MyArrayList<Node> component) {\n Stack<Node> stack = new Stack<Node>();\n Node v = node;\n // while there are still nodes in the stack to be processed\n while (v != null) {\n if (v.getColor() == Color.WHITE) {\n t++;\n v.setD(t);\n v.setColor(Color.GRAY);\n // when we turn a vertex gray, we add it to the current component\n component.add(v);\n // we push this to the stack again and when we reach a gray vertex in the stack,\n // we know that all of its children have been processed and we can assign a finishing time\n stack.push(v);\n for (int i = 0; i < v.getAdjacencyList().size(); i++) {\n Node u = v.getAdjacencyList().get(i);\n if (u.getColor() == Color.WHITE) {\n u.setParent(v);\n stack.push(u);\n }\n }\n } else if (v.getColor() == Color.GRAY){\n // if the node in the stack is already gray, then we know we have finished all of its children\n // and it can be turned black\n t++;\n v.setF(t);\n v.setColor(Color.BLACK);\n }\n v = stack.pop();\n }\n }", "Set<String> dfsTraversal(Graph graph, String root) {\n Set<String> seen = new LinkedHashSet<String>();\n Stack<String> stack = new Stack<String>();\n stack.push(root);\n\n while (!stack.isEmpty()) {\n String node = stack.pop();\n if (!seen.contains(node)) {\n seen.add(node);\n for (Node n : graph.getAdjacentNodes(node)) {\n stack.push(n.data);\n }\n\n }\n }\n\n return seen;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tStack<Integer> st = new Stack<Integer>();\n\t\tQueue<Integer> que = new LinkedList<Integer>();\n\t\tArrayList<Integer> path = new ArrayList<>();\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint v = sc.nextInt();\n\t\tint [][] arr= new int [n+1][n+1];\n\t\tboolean [] visit = new boolean[n+1];\n\t\tfor(int i=0;i<m;i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tarr[a][b] = 1;\n\t\t\tarr[b][a] = 1;\n\t\t}\n\t\tst.push(v);\n\t\twhile(!st.isEmpty()) {\n\t\t\tint temp = st.pop();\n\t\t\tif(visit[temp]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpath.add(temp);\n\t\t\tvisit[temp] = true;\n\t\t\tfor(int i=n;i>0;i--) {\n\t\t\t\tif(arr[temp][i]==1 && !visit[i]) {\n\t\t\t\t\tst.push(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<path.size();i++) {\n\t\t\tSystem.out.print(path.get(i)+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tArrays.fill(visit, false);\n\t\tpath = new ArrayList<>();\n\t\tque.add(v);\n\t\twhile(!que.isEmpty()) {\n\t\t\tint temp = que.poll();\n\t\t\tif(visit[temp]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpath.add(temp);\n\t\t\tvisit[temp] = true;\n\t\t\tfor(int i=1;i<=n;i++) {\n\t\t\t\tif(arr[temp][i]==1 && !visit[i]) {\n\t\t\t\t\tque.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<path.size();i++) {\n\t\t\tSystem.out.print(path.get(i)+\" \");\n\t\t}\n\t}", "public void backtrack(List<String> result, int i, char[] chars) {\n\n if (i == chars.length) {\n // recursive signal outlet\n result.add(new String(chars));\n // recursive exports\n return;\n }\n\n // chars [i] in the current space possible once or twice Sleeper (The letter signal)\n if (Character.isLetter(chars[i])) {\n // parallel to the Level 1\n chars[i] = Character.toLowerCase(chars[i]);\n backtrack (result, i + 1, chars); // space to the next level\n\n // Level 2 in parallel, corresponding to the next backtrack\n chars[i] = Character.toUpperCase(chars[i]);\n }\n\n backtrack (result, i + 1, chars); // space to the next level\n\n }", "public static void breadthFirstSearch (HashMap<String, Zpair> stores,\n HashSet<Zpair> visited,\n List<Integer> sortedQueue) {\n List<String> q = new ArrayList<String>();\n q.add(\"Q\");\n // k=0\n //int k = 0;\n while(q.size() != 0) {\n //if(k == 21) {\n // System.exit(20);\n // }\n List<StringBuffer> path = new ArrayList<StringBuffer>(); // this is the return string\n List<String> q1 = new ArrayList<String>();\n int size = q.size();\n //System.out.println(k);\n for(int i = 0; i < size; i++) {\n //printList(q);\n path.add(ZMethods.stringPop(q));\n execute(path.get(i), stores, visited, q1, sortedQueue);\n }\n copyStringBuffer(q1,q);\n //k++;\n }\n }", "private static void dfs(State curr) {\n curr.buildStack(curr.getSuccessors(curr));\r\n \r\n if(curr.isGoalState()) \r\n System.out.println(curr.getOrderedPair()+\" Goal\");//initial is goal state\r\n else\r\n System.out.println(curr.getOrderedPair());//initial\r\n \r\n curr.close.add(curr);\r\n while(!curr.open.isEmpty()&&!curr.isGoalState()) {\r\n curr.buildStack(curr.getSuccessors(curr));\r\n curr.printHelp(curr, 4);\r\n curr = curr.open.get(curr.open.size()-1);\r\n curr.close.add(curr.open.remove(curr.open.size()-1));\r\n }\r\n \r\n if(curr.isGoalState()) {\r\n System.out.println(curr.getOrderedPair() + \" Goal\");\r\n curr.printPath(curr);\r\n }\r\n }", "public boolean search(String word) {\n return dfs(word, 0, root);\n}", "static List<String> DFS(String s, Set<String> wordDict, HashMap<String, LinkedList<String>>map) {\n if (map.containsKey(s))\n return map.get(s);\n\n LinkedList<String>res = new LinkedList<String>();\n if (s.length() == 0) {\n res.add(\"\");\n return res;\n }\n for (String word : wordDict) {\n if (s.startsWith(word)) {\n List<String>sublist = DFS(s.substring(word.length()), wordDict, map);\n for (String sub : sublist)\n res.add(word + (sub.isEmpty() ? \"\" : \" \") + sub);\n }\n }\n map.put(s, res);\n return res;\n }", "public boolean dfs(String s, Set<String> dic) {\n if(s.equals(\"\")) return true;\n for(int i=0; i<s.length(); i++) {\n String temp = s.substring(0, i+1);\n if(dic.contains(temp)) {\n if(dfs(s.substring(i+1), dic)) return true;\n }\n }\n return false;\n }", "public static void main(String args[]) {\n int V = 4;\n Graph g = new Graph(V);\n g.addEdge(0, 1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n g.addEdge(3, 3);\n\n int src = 1;\n int dest = 3;\n boolean[] visited = new boolean[V];\n\n // To store the complete path between source and destination\n Stack<Integer> path1 = new Stack<>();\n\n if (hasPathDFS(g, src, dest, visited, path1)) {\n System.out.println(\"There is a path from \" + src + \" to \" + dest);\n System.out.println(\"The complete path is \" + path1);\n } else System.out.println(\"There is no path from \" + src + \" to \" + dest);\n\n src = 3;\n dest = 1;\n // To store the complete path between source and destination\n Stack<Integer> path2 = new Stack<>();\n\n if (hasPathDFS(g, src, dest, visited, path2)) System.out.println(\"There is a path from \" + src + \" to \" + dest);\n else System.out.println(\"There is no path from \" + src + \" to \" + dest);\n\n // total number of nodes in the graph (labeled from 0 to 7)\n int n = 8;\n\n // List of graph edges as per the above diagram\n Graph g2 = new Graph(n);\n /**\n * There is a path from 1 to 3\n * The complete path is [1, 2, 3]\n * There is no path from 3 to 1\n * There is a path from 0 to 7\n * The complete path is [0, 3, 4, 6, 7]\n */\n\n g2.addEdge(0, 3);\n g2.addEdge(1, 0);\n g2.addEdge(1, 2);\n g2.addEdge(1, 4);\n g2.addEdge(2, 7);\n g2.addEdge(3, 4);\n g2.addEdge(3, 5);\n g2.addEdge(4, 3);\n g2.addEdge(4, 6);\n g2.addEdge(5, 6);\n g2.addEdge(6, 7);\n\n // source and destination vertex\n src = 0;\n dest = 7;\n\n // To store the complete path between source and destination\n Stack<Integer> path = new Stack<>();\n boolean[] visited2 = new boolean[n];\n\n if (hasPathDFS(g2, src, dest, visited2, path)) {\n System.out.println(\"There is a path from \" + src + \" to \" + dest);\n System.out.println(\"The complete path is \" + path);\n } else System.out.println(\"There is no path from \" + src + \" to \" + dest);\n\n\n }", "private void breadthFirst(PathBetweenNodes graph, LinkedList<String> visited) {\r\n\r\n LinkedList<String> nodes = graph.adjacentNodes(visited.getLast());\r\n for (String node : nodes)\r\n {\r\n if (visited.contains(node))\r\n {\r\n continue;\r\n }\r\n if (node.equals(END))\r\n {\r\n \tif (mode1 && mode){\r\n visited.add(node);\r\n printPath(visited); \r\n graph.flag=false;\r\n mode=false;\r\n visited.removeLast();\r\n \t} else if(mode2){\r\n visited.add(node);\r\n printPath(visited); \r\n flag=mode2; \r\n visited.removeLast();\r\n \t} \r\n } \r\n }\r\n\r\n for (String node : nodes) { // implementing a for loop to call each node in the array nodes\r\n if (visited.contains(node) || node.equals(END)) { // if statement to see if node is already visited or it is the end node\r\n continue;\r\n }\r\n flag=true;\r\n visited.addLast(node); //adding the last node to visited array\r\n breadthFirst(graph, visited); // implementing the breath first search\r\n visited.removeLast(); // removing the last node from array visited\r\n }\r\n if (flag == false) {\r\n System.out.println(\"No path Exists between \" + START + \" and \" + END);\r\n flag = true;\r\n }\r\n }", "static boolean dfs(TreeNode root) {\n Stack<TreeNode> stack = new Stack<TreeNode>();\n stack.push(root);\n while (!stack.isEmpty()) {\n TreeNode node = (TreeNode) stack.pop();\n if (node == null)\n continue;\n\n System.out.println(\"Checking node \" + node.data);\n if (isGoal(node)) {\n System.out.println(\"\\nFound goal node \" + node.data);\n return true;\n }\n stack.addAll(node.getChildren());\n // dump(stack);\n }\n return false;\n }", "List<String> DFS(String s, List<String> wordDict, HashMap<String, LinkedList<String>>map) {\n\t if (map.containsKey(s)) \n\t return map.get(s);\n\t \n\t LinkedList<String> res = new LinkedList<String>(); \n\t if (s.length() == 0) { //递归结束条件\n\t res.add(\"\");\n\t return res;\n\t }\n\t for (String word : wordDict) {\n\t if (s.startsWith(word)) {\n\t List<String>sublist = DFS(s.substring(word.length()), wordDict, map);\n\t for (String sub : sublist) \n\t res.add(word + (sub.isEmpty() ? \"\" : \" \") + sub); \n\t }\n\t } \n\t map.put(s, res);\n\t \n\t return res;\n\t}", "void DFS(Node root) {\n\t\tStack<Node> s = new Stack<Node>();\n\t\ts.add(root);\n\n\t\twhile(!s.isEmpty()) {\n\t\t\tNode n = s.pop();\n\t\t\tif (n != null) {\n\t\t\t\tSystem.out.print(n.data + \",\");\n\t\t\t\ts.push(n.right);\n\t\t\t\ts.push(n.left);\n\t\t\t}\n\t\t}\n\t}", "public void doDfsGraphMatrix(char[][] grid) {\n boolean[] myVisited = new boolean[8];\n // row number represents node, so row number will be pushed to stack\n Stack<Integer> stack = new Stack<>();\n stack.push(0);\n myVisited[0] = true;\n // should be same idea, when adj list, loop the row\n while (!stack.isEmpty()) {\n int r = stack.pop();\n System.out.print(\"[\" + r + \"] \");\n for (int c = 0; c < grid[r].length; c++) {\n // when there is a path\n if (grid[r][c] == '1' && !visited[c]) {\n stack.push(c);\n visited[c] = true;\n }\n }\n }\n\n\n }", "private void depthFirstSearch(Node sourceNode, Node destinationNode, String path, HashSet<Character> visited) {\n // Base condition is that if the node is looping then return\n if(visited.contains(sourceNode.charId)) {\n return;\n }\n\n // Mark the sourceNode as visited\n visited.add(sourceNode.charId);\n String newPath = sourceNode.charId.toString();\n path += \"->\" + newPath;\n\n // If the source node reached destination or the node has no children\n if(sourceNode == destinationNode || sourceNode.adjacent.isEmpty()) {\n paths.add(path);\n return;\n }\n\n // Search all of it's children's children until reach destination\n for(Node children : sourceNode.adjacent) {\n depthFirstSearch(children, destinationNode, path, visited);\n }\n }", "@Override\n\t//loc1 is the start location,loc2 is the destination\n\tpublic ArrayList<MapCoordinate> bfsSearch(MapCoordinate loc1, MapCoordinate loc2, Map m) {\n\t\tSystem.out.println(\"come into bfsSearch\");\n\t\tif(m.isAgentHasAxe() && m.isAgentHasKey()){\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add to visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){ //this is important else if(cTemp!='~'), not barely else,\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' &&s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasAxe()){ //only have axe\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasKey()){ //only have key\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation());\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head,in this fashion, return the right order of route\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY()); \n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY()); //state that move west\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1); //state move north\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1); //state move south\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * \n\t\t **/\t\t\n\t\telse{ //have no key and axe\n\t\t\tSystem.out.println(\"come into the last elas clause\");\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\tVisited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\t//int i=0;\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\t//i++;\n\t\t\t\t//System.out.println(\"come into while: \"+i);\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited, let program won't stuck in \n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tSystem.out.println(\"return computed route\");\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\tfor(MapCoordinate mc:route){\n\t\t\t\t\t\t//System.out.println(\"print returned route in bfssearch\");\n\t\t\t\t\t\tSystem.out.print(\"mc:\"+mc.getX()+\" \"+mc.getY()+\"->\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\t//System.out.println(\"1 if\");\n\t\t\t\t\tif(s.getPrevState()!=null &&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if\");\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 if\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 if\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 else\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.add(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tSystem.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*'&&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\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\treturn null;\n\t\t}\n\t}", "private void visitDFS(Dot node, Set< Dot > visited ) {\n\n board.getNeighbors( node ).forEach( nbr -> {\n if ( !visited.contains( nbr ) ) {\n visited.add( nbr );\n visitDFS( nbr, visited );\n }\n } );\n }", "public static void findShortestPath(char[][] maze) {\n\t\tboolean visited[][] = new boolean[maze.length][maze[0].length]; \n\t\tint srcX = 0, srcY = 0;\n\t\t// find the source\n\t\tfor(int i=0; i<maze.length; i++) {\n\t\t\tfor(int j=0; j<maze[0].length; j++) {\n\t\t\t\tif(maze[i][j] == 's') {\n\t\t\t\t\tsrcX = i; srcY=j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tboolean pe = doGridBFS(maze,visited,srcX,srcY);\n\t\tSystem.out.println(pe);\n\t\t\n\t}", "private void DFSUtil(graph copy,node_data n) {\n\t\tn.setTag(1);\n\t\tCollection<edge_data> temp = copy.getE(n.getKey());\n\t\tif (temp != null) {\n\t\t\tfor (edge_data edge : temp) {\n\t\t\t\tif (copy.getNode(edge.getDest()) != null && copy.getE(edge.getDest()) != null && copy.getNode(edge.getDest()).getTag() == 0) {\n\t\t\t\t\tDFSUtil(copy,copy.getNode(edge.getDest()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void dfs(Node s, HashSet<Integer> visited) {\n\t\tif(visited.contains(s.id)) {\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(s.id);\n\t\tvisited.add(s.id);\n\t\tfor(Node n :s.adj) {\n\t\t\tdfs(n,visited);\n\t\t}\n\t}", "private boolean BFS(int i) {\n color[i] = 1;\n for (int j : alphabet.get(i)) {\n // Making sure we don't check one vertex twice\n if (color[j] != -1) {\n if (color[j] == 0) {\n if (BFS(j)) return true;\n }\n // Found visited vertex --> We found cycle\n if (color[j] == 1) {\n System.out.println(j);\n return true;\n }\n }\n }\n //Vertex checked\n color[i] = -1;\n return false;\n }", "private void DepthFirstSearch(Node current){\n helperDFS( current );\n }", "private Boolean depthFirstSearch(HashMap<String, Boolean> visited, String node) {\n \tif (visited.get(node)) {\n \t\t// This can actually never happen\n \t\tif (Flags.semant_debug) {\n \t\t\tSystem.out.println(\"Node: \" + node + \" visited twice\");\n \t\t}\n \t\tsemantError(nameToClass.get(node)).println(\"Class \" + node + \", or its ancestors, is invloved in a cycle\");\n \t\treturn false;\n \t}\n \tvisited.put(node, true);\n \tif (adjacencyList.get(node) == null) {\n \t\treturn true;\n \t}\n \tfor (String child : adjacencyList.get(node)) {\n \t\tif (Flags.semant_debug) {\n \t\t\tSystem.out.println(\"Traversing \" + node + \" --> \" + child);\n \t\t}\n \t\tdepthFirstSearch(visited, child);\n \t}\n \treturn true;\n }", "private String topologicalSortDfs(int indegree[], HashMap<Character, Set<Character>> adjList){\n \n // we ll use stringbuilder to update the characters instead of string\n // we ll insert all elements into queue who has indegree==0 initially, which means they dont have any dependency so they can come at any time//\n // so insert all indgree==0 into queu and do a stanmdard queue template\n StringBuilder sb = new StringBuilder();\n Queue<Character> q = new LinkedList();\n int totalChars = adjList.size(); // to check at end if all are present\n \n \n // loop thru all keys in graph and check the indegree of that character in indegree if its has zero , if so then add to queue initially\n // initial push to queue\n for(char c: adjList.keySet()){\n if(indegree[c-'a'] == 0){\n \n sb.append(c);\n q.offer(c);// so u need to add all orphan nodes to sb , since it contains results\n }\n \n } \n // now we need to find nodes which has dependency, take it out and reduce the indegree and check if indegreeis zero then add tio queue\n \n // stand ard queue template\n while(!q.isEmpty()){\n // take the elemnt \n char curr = q.poll();\n \n if(adjList.get(curr) == null || adjList.get(curr).size()==0 ){\n // we shud not do antthing, and pick the next nodes in the queue\n continue;\n }\n // if we have some elements in the adj list which means we have a dependency\n // So what do we do here:??\n // i think we can take it and reduce the indgree ??\n // Since we are. removing this particular current element, so we need to reduce all its neighbour indegree becios we removed aos we need to update the indegree of all its neiughbours\n for(char neighbour : adjList.get(curr)){\n indegree[neighbour-'a']--;\n //also check if it becomes zero after update we need to push to queu and sb\n if(indegree[neighbour-'a'] == 0){\n //add to q and sb\n q.offer(neighbour);\n sb.append(neighbour);\n \n }\n }\n \n }\n \n // once we are out of queue, which means we processed all nodes\n // if total chars is sb length, which means we got all chars /nodes so we can return else \"\"\n return sb.length() == totalChars ? sb.toString() : \"\";\n }", "public boolean posTouching(Position pos, String s){\n\t\t// check whether at least one of the 8 (horizontal/vertical/diagonal) neighbors \n\t\t// of the specified position pos has a symbol as the incoming string s\n\t\t//\n\t\t// The eight horizontal/vertical/diagonal neighbors of a pos is shown as below: \n\t\t// up left / up / up right / left / right / down left/ down/ down right\n\t\t//\n\t\t// UL U UR\n\t\t// L pos R\n\t\t// DL D DR\n\t\t// \n\t\t// if at least one of the eight cells has string s as the symbol, return true;\n\t\t// return false otherwise\n\t\t// assuming HashMap overhead constant, O(1)\n\t\t\n\t\t\n\t\tif(isValidPosition(pos) && isValidSymbol(s)) {\n\t\t\t\n\t\t\tif(!grid.has(pos, s)) {\n\t\t\t\tint tempRow = pos.getRow();\n\t\t\t\tint tempCol = pos.getCol();\n\t\t\t\t\n\t\t\t\tboolean condition1 = false;\n\t\t\t\tboolean condition2 = false;\n\t\t\t\tboolean condition3 = false;\n\t\t\t\t\n\t\t\t\tif(tempRow == 0) { //if you want to add the tent to the first row (first row check)\n\t\t\t\t\t\n\t\t\t\t\tif(grid.has(new Position(tempRow,tempCol-1),treeSymbol) || grid.has(new Position(tempRow,tempCol+1),treeSymbol) || grid.has(new Position(tempRow+1,tempCol),treeSymbol)) { //If there is a tree next to or below the position\n\t\t\t\t\t\tcondition1 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!grid.has(new Position(tempRow,tempCol-1),tentSymbol) || !grid.has(new Position(tempRow,tempCol+1),tentSymbol) || !grid.has(new Position(tempRow+1,tempCol),tentSymbol)) { //If there is NO tent next to or below the position\n\t\t\t\t\t\tcondition2 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!grid.has(new Position(tempRow+1,tempCol-1),treeSymbol) || !grid.has(new Position(tempRow+1,tempCol+1),treeSymbol) || !grid.has(new Position(tempRow+1,tempCol-1),treeSymbol) || !grid.getValue(new Position(tempRow+1,tempCol+1)).equals(treeSymbol)){ //If there is NO tree or tent at the diagonal\n\t\t\t\t\t\tcondition3 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(condition1&&condition2&&condition3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tgrid.add(pos, tentSymbol);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(tempRow == numRows-1) { //if you want to add the tent in the last row (last row check)\n\t\t\t\t\t\n\t\t\t\t\tif(grid.has(new Position(tempRow,tempCol-1),treeSymbol) || grid.has(new Position(tempRow,tempCol+1),treeSymbol) || grid.has(new Position(tempRow-1,tempCol),treeSymbol)) { //If there is a tree next to or below the position\n\t\t\t\t\t\tcondition1 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!grid.has(new Position(tempRow,tempCol-1),tentSymbol) || !grid.has(new Position(tempRow,tempCol+1),tentSymbol) || !grid.has(new Position(tempRow-1,tempCol),tentSymbol)) { //If there is NO tent next to or below the position\n\t\t\t\t\t\tcondition2 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!grid.has(new Position(tempRow-1,tempCol-1),tentSymbol) || !grid.has(new Position(tempRow-1,tempCol+1),treeSymbol) || !grid.has(new Position(tempRow-1,tempCol-1),treeSymbol) || !grid.has(new Position(tempRow-1,tempCol+1),treeSymbol)){ //If there is NO tree or tent at the diagonal\n\t\t\t\t\t\tcondition3 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(condition1&&condition2&&condition3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tgrid.add(pos, tentSymbol);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(tempCol == 0) { //if you want to add the tent in the first column (first column check)\n\t\t\t\t\t\n\t\t\t\t\tif(grid.has(new Position(tempRow-1,tempCol),treeSymbol) || grid.has(new Position(tempRow+1,tempCol),treeSymbol) || grid.has(new Position(tempRow,tempCol+1),treeSymbol)) { //If there is a tree next to or below the position\n\t\t\t\t\t\tcondition1 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!grid.has(new Position(tempRow-1,tempCol),tentSymbol) || !grid.has(new Position(tempRow+1,tempCol),tentSymbol) || !grid.has(new Position(tempRow,tempCol+1),tentSymbol)) { //If there is NO tent next to or below the position\n\t\t\t\t\t\tcondition2 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!grid.has(new Position(tempRow-1,tempCol-1),treeSymbol) || !grid.has(new Position(tempRow+1,tempCol+1),treeSymbol) || !grid.has(new Position(tempRow-1,tempCol-1),treeSymbol) || !grid.has(new Position(tempRow+1,tempCol+1),treeSymbol)){ //If there is NO tree or tent at the diagonal\n\t\t\t\t\t\tcondition3 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(condition1&&condition2&&condition3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tgrid.add(pos, tentSymbol);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(tempCol == numCols-1) { //if you want to add the tent in the last column (last column check)\n\t\t\t\t\t\n\t\t\t\t\tif(grid.has(new Position(tempRow-1,tempCol),treeSymbol) || grid.has(new Position(tempRow+1,tempCol),treeSymbol) || grid.has(new Position(tempRow,tempCol-1),treeSymbol)) { //If there is a tree next to or below the position\n\t\t\t\t\t\tcondition1 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!grid.has(new Position(tempRow-1,tempCol),tentSymbol) || !grid.has(new Position(tempRow+1,tempCol),tentSymbol) || !grid.has(new Position(tempRow,tempCol-1),tentSymbol)) { //If there is NO tent next to or below the position\n\t\t\t\t\t\tcondition2 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!grid.has(new Position(tempRow-1,tempCol-1),treeSymbol) || !grid.has(new Position(tempRow+1,tempCol-1),treeSymbol) || !grid.has(new Position(tempRow-1,tempCol-1),treeSymbol) || !grid.has(new Position(tempRow-1,tempCol-1),treeSymbol)){ //If there is NO tree or tent at the diagonal\n\t\t\t\t\t\tcondition3 = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(condition1&&condition2&&condition3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tgrid.add(pos, tentSymbol);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\n\t\t\t\t\tif(grid.has(new Position(tempRow-1,tempCol-1),s) || grid.has(new Position(tempRow+1,tempCol-1),s) || grid.has(new Position(tempRow-1,tempCol+1),s) || grid.has(new Position(tempRow+1,tempCol+1),s)) { //If there is NO tree diagonally to position\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}else {\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\n\t\t}\n\t\t\n\t\treturn false;\t\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\t\n\t\tint [][]arr=new int[n][n];\n\t\tint xShark=0;\n\t\tint yShark=0;\n\t\tint size=2;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<n;j++) {\n\t\t\t\tarr[i][j]=sc.nextInt();\n\t\t\t\tif(arr[i][j]==9) {\n\t\t\t\t\txShark=i;\n\t\t\t\t\tyShark=j;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint go=0;\n\t\tint eat=0;\n\t\twhile(true) {\n\t\t\tList<Node> list=new ArrayList<>();\n\t\t\tnarr=new int[n][n];\n\t\t\tint min=Integer.MAX_VALUE;\n\t\t\t\n\t\t\tcanGo(arr, xShark, yShark, size);\n\t\t\tSystem.out.println();\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tfor(int j=0;j<n;j++)System.out.print(narr[i][j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tfor(int j=0;j<n;j++) {\n\t\t\t\t\tif(narr[i][j]>0) {\n\t\t\t\t\t\tlist.add(new Node(i,j,narr[i][j]));\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\t\n\t\t\t//System.out.println(\"s\"+list.size());\n\t\t\t\n\t\t\t\n\t\t\tif(list.isEmpty())break;\n\t\t\tCollections.sort(list);\n\t\t\tNode N=list.get(0);\n\t\t\t//System.out.println(xShark+\" \"+yShark+\" \"+go);\n\t\t\tarr[xShark][yShark]=0;\n\t\t\txShark=N.x;\n\t\t\tyShark=N.y;\n\t\t\tarr[xShark][yShark]=9;\n\t\t\tgo+=N.distance;\n\t\t\teat++;\n\t\t\tif(eat==size) {\n\t\t\t\teat=0;\n\t\t\t\tsize++;\n\t\t\t}\n\t\t\t/*System.out.println(xShark+\" \"+yShark+\" \"+go);\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tfor(int j=0;j<n;j++)System.out.print(arr[i][j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(int i=0;i<list.size();i++)System.out.println(list.get(i).toString());*/\n\t\t\t//System.out.println();\n\t\t}\n\t\tSystem.out.println(go);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void breadthFirstSearch (int start, int[] visited, int[] parent){\r\n Queue< Integer > theQueue = new LinkedList< Integer >();\r\n boolean[] identified = new boolean[getNumV()];\r\n identified[start] = true;\r\n theQueue.offer(start);\r\n while (!theQueue.isEmpty()) {\r\n int current = theQueue.remove();\r\n visited[current] = 1; //ziyaret edilmis vertexler queuedan cikarilan vertexlerdir\r\n Iterator < Edge > itr = edgeIterator(current);\r\n while (itr.hasNext()) {\r\n Edge edge = itr.next();\r\n int neighbor = edge.getDest();\r\n if (!identified[neighbor]) {\r\n identified[neighbor] = true;\r\n theQueue.offer(neighbor);\r\n parent[neighbor] = current;\r\n }\r\n }\r\n }\r\n }", "private String bfs(){\n String ans=\"\";\n //Base Case\n if (mRoot == null)\n return \"\";\n if (mRoot.mIsLeaf)\n return mRoot.toString();\n //create a queue for nodes and a queue for signs\n Queue<BTNode> q = new QueueAsLinkedList<>();\n Queue<Character> s = new QueueAsLinkedList<>();\n BTNode currNode = mRoot;\n q.enqueue(currNode);\n return getBfsOutput(ans, q, s, currNode);\n }", "public static int bfs() {\r\n check = new int[N][N]; // check 변수 초기화\r\n q = new LinkedList<Point>();\t\t\t\t\t//bfs 할때 필요한 그 stack. first in first out\r\n q.offer(new Point(shark.x, shark.y));\t\t\t//q.offer == 해당 큐의 맨 뒤에 전달된 요소를 삽입함. list에서 list.add와 같은 말임.\r\n check[shark.x][shark.y] = 1;\r\n\r\n int FishCheck = 0;\t\t\t\t\t\t\t\t//the number of the fish in the sea map\r\n Shark fish = new Shark(N, N);\t\t\t\t\t//new shark initiation\r\n loop: while (!q.isEmpty()) {\r\n int r = q.peek().x;\t\t\t\t\t\t\t//q.peek == 해당 큐의 맨 앞에 있는(제일 먼저 저장된) 요소를 반환함\r\n int c = q.poll().y;\t\t\t\t\t\t\t//q.poll == 해당 큐의 맨 앞에 있는(제일 먼저 저장된) 요소를 반환하고, 해당 요소를 큐에서 제거함. 만약 큐가 비어있으면 null을 반환함.\r\n\r\n for (int d = 0; d < dr.length; d++) {\r\n int nr = r + dr[d];\t\t\t\t\t\t//북(0),남(1),동(2),서(3) 순으로. nr == new row\r\n int nc = c + dc[d];\t\t\t\t\t\t//북(0),남(1),동(2),서(3) 순으로. nc == new column\r\n\r\n // 지나갈 수 있는 곳: 자신보다 큰 물고기가 없는 곳\r\n if (isIn(nr, nc) && check[nr][nc] == 0 && sea[nr][nc] <= shark.lv) {\r\n check[nr][nc] = check[r][c] + 1;\r\n q.offer(new Point(nr, nc));\r\n\r\n // 위치가 더 커질 경우, 더이상 확인할 필요 X\r\n if (FishCheck != 0 && FishCheck < check[nr][nc]) {\r\n break loop;\r\n }\r\n \r\n // 처음 먹을 수 있는 자기보다 물고기가 발견 되었을 때\r\n if (0 < sea[nr][nc] && sea[nr][nc] < shark.lv && FishCheck == 0) {\r\n FishCheck = check[nr][nc];\r\n fish.x = nr;\r\n fish.y = nc;\r\n fish.lv = sea[nr][nc];\r\n }\r\n // 같은 위치에 여러 마리 있을 경우, 가장 위의 가장 왼쪽 물고기부터 먹음\r\n else if (FishCheck == check[nr][nc] && 0 < sea[nr][nc] && sea[nr][nc] < shark.lv) {\r\n if (nr < fish.x) { // 가장 위에 있는 거 우선권\r\n fish.x = nr;\r\n fish.y = nc;\r\n fish.lv = sea[nr][nc];\r\n } else if (nr == fish.x && nc < fish.y) { // 다 가장 위일 경우, 가장 왼쪽 우선권\r\n fish.x = nr;\r\n fish.y = nc;\r\n fish.lv = sea[nr][nc];\r\n }\r\n\r\n }\r\n\r\n }else if(isIn(nr, nc) && check[nr][nc] == 0) {\r\n check[nr][nc] = -1;\r\n }\r\n }\r\n }\r\n // idx 초과 안날 경우\r\n if (fish.x != N && fish.y != N) {\r\n eatFish(fish);\r\n }\r\n \r\n return (FishCheck - 1);\r\n }", "private void bfs(int x, int y, Node p) {\n if (p == null) {\n // TODO\n return;\n }\n char c = board[x][y];\n\n if (p.next(c) == null) {\n // TODO not found\n return;\n }\n\n Node node = p.next(c);\n\n // if node is leaf, found a word\n if (node.word != null) {\n if (!results.contains(node.word)) {\n results.add(node.word);\n }\n }\n\n mark[x][y] = true;\n for (int[] dir: dirs) {\n int newX = x + dir[0];\n int newY = y + dir[1];\n if (newX < 0 || n <= newX\n || newY < 0 || m <= newY) {\n continue;\n }\n\n if (mark[newX][newY]) {\n continue;\n }\n\n bfs(newX, newY, node);\n }\n mark[x][y] = false;\n }", "private void dfs(int start, int end, String str, String s, List<Integer>[] cache, LinkedList<String> res) {\n\t\tif (start == -1) {\n\t\t\tres.add(str.substring(1));\n\t\t} else {\n\t\t\tfor (int n : cache[start]) {\n\t\t\t\tdfs(n, start, \" \" + s.substring(start, end) + str, s, cache, res);\n\t\t\t}\n\t\t}\n\t}", "private static void dfsAgain(int[][] arr, int sv, boolean[] visited, Stack<Integer> stack, ArrayList<Integer> list) {\n\t\t\n\t\twhile(!stack.isEmpty()) {\n\t\t\tint top=stack.pop();\n\t\t\tif(!visited[top]) {\n\t\t\t\t\n\t\t\tvisited[top]= true;\n\t\t\tfor(int i=0;i<arr.length;i++) {\n\t\t\t\tif(arr[top][i]==1 && !visited[i]) {\n\t\t\t\t\tvisited[i]=true;\n\t\t\t\t\tlist.add(i);\n\t\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}", "public String checkCheese() {\n\n\n int j = 1;\n\n while (j < _cheese.getY() + 2) {\n\n for (int i = 1; i < _cheese.getX() + 1; i++) {\n\n int i2 = i;\n int j2 = j;\n\n\n if (_cheese.getCellArray()[i2][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2].isVisited()) {\n int temp1 = i2;\n int temp2 = j2;\n _holeCount++;\n while ((\n\n (_cheese.getCellArray()[i2 + 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2].isVisited()) ||\n\n\n (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited()) ||\n\n\n (_cheese.getCellArray()[i2][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2 + 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2 - 1].isVisited()) ||\n\n (_cheese.getCellArray()[i][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i][j2 - 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited())\n\n )) {\n if (_cheese.getCellArray()[i2 + 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2].setVisited(true);\n i2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2 + 1].setVisited(true);\n i2++;\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2][j2 + 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2 + 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2 - 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2][j2 - 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2 + 1].setVisited(true);\n j2++;\n\n }\n\n\n }\n _cheese.getCellArray()[temp1][temp2].setVisited(true);\n if (_holeCount > _biggestHole) {\n _biggestHole = _holeCount;\n }\n }\n _cheese.getCellArray()[i2][j2].setVisited(true);\n\n\n }\n\n\n j++;\n }\n\n\n return \"hole-count: \" + _holeCount + \"\\n\" +\n \"biggest hole edge: \" + _biggestHole;\n\n }", "private boolean helperDFS(Node current){\n\n if(expandedNode.size() == 999){\n //limit has been reached. jump out of recursion.\n expandedNode.add(current);\n System.out.println(\"No solution found.\");\n printExpanded(expandedNode);\n System.exit(0);\n return false;\n }\n\n boolean b = cycleCheck(current,expandedNode);\n\n if(!b){\n expandedNode.add(current);\n }else{\n return false;\n }\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal reached.\n //expandedNode.add(current);\n solutionPath(current);\n printExpanded(expandedNode);\n System.exit(0);\n }\n\n //Now make the children.\n\n if(!forbidden.contains(current.getDigit().getDigitString())){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 1){\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n }\n return false;\n }", "private void findKillerPath() {\n Cell current, next;\n killerPath = new ArrayDeque<>();\n clearVisitedMarks();\n current = killer;\n current.visited = true;\n\n while (true) {\n next = nextNotVisitedCell(current);\n if (next == player) {\n killerPath.addLast(current);\n killerPath.addLast(next);\n break;\n } else if (next != null) {\n killerPath.addLast(current);\n current = next;\n current.visited = true;\n } else {\n current = killerPath.pollLast();\n }\n }\n killerPath.pollFirst();\n }", "public String[] findPath(String[] dictionary, String startWord, String endWord) {\n // Use A queue to save all the words to check and use BFS\n LinkedList<String> queue = new LinkedList<>();\n queue.addFirst(startWord);\n // Use an ArrayList to save the words visited\n ArrayList<String> visited = new ArrayList<>();\n // Use an ArrayList to save the parents of the words (in visited)\n ArrayList<Integer> parent = new ArrayList<>();\n parent.add(-1);\n int index = 0;\n String current;\n boolean founded = false;\n while (!queue.isEmpty()){\n current = queue.removeFirst(); //Remove the first word\n int currentI = visited.size(); // Get index for saving parent\n visited.add(current);\n //Check all available words and save to the arrayList\n for (int i = 0; i < current.length(); i++) {\n //Replace from the first letter\n for (char j = 'A'; j <= 'Z'; j++) {\n char[] neww = current.toCharArray();\n neww[i] = j;\n String newWord = String.valueOf(neww);\n //Check if the new word is a valid word\n if (checkDict(newWord,dictionary)){\n //Check if visited or in queue\n if (visited.contains(newWord)||queue.contains(newWord)) continue;\n //Add into queue\n queue.addLast(newWord);\n //Record parents\n parent.add(currentI);\n //Check if equals to end\n if (newWord.compareTo(endWord)==0) {\n founded = true;\n break;\n }\n }\n }\n if (founded) break;\n }\n if (founded) break;\n }\n if (founded){\n LinkedList<Integer> stack = new LinkedList<>();\n stack.addFirst(parent.get(parent.size()-1));\n while (parent.get(stack.getFirst())!=-1){\n stack.addFirst(parent.get(stack.getFirst()));\n }\n int size = stack.size();\n String result[] = new String[size+1];\n result[0] = startWord;\n stack.removeFirst();\n for (int i = 1; i <size; i++) {\n result[i] = visited.get(stack.removeFirst());\n }\n result[size] = endWord;\n return result;\n }\n return new String[0];\n }", "public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;//not break!!!!! return to exit !\n\t\t\t\t\t}\n\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (i==0 && j!= visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if (i!=0 && j== visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse {//if (i==0 && j== visited[0].length-1) {\n\t\t\t\t\t//no solution\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private String getBfsOutput(String ans, Queue<BTNode> q, Queue<Character> s, BTNode currNode) {\n int nodeCount = 1;\n while (true){\n if (currNode.mIsLeaf) return ans.substring(0,ans.length()-1);\n s.enqueue('#');\n int nextCount = 0;\n //enqueue all the nodes/signs in current high. and add the relevant values for ans\n while (nodeCount > 0){\n currNode = q.dequeue();\n ans+=currNode.toString();\n ans+=s.dequeue();\n nextCount += currNode.mCurrentChildrenNum;\n for (int i = 0; i < currNode.mCurrentChildrenNum && currNode.mChildren[i] != null; i++) {\n q.enqueue(currNode.mChildren[i]);\n if (i < currNode.mCurrentChildrenNum - 1) s.enqueue('|');\n else\n if (nodeCount > 1) s.enqueue('^');\n }\n nodeCount--;\n }\n nodeCount = nextCount;\n }\n }", "public void solve(char[][] board) {\n\t\tif(board==null || board.length == 0)\n\t\t\treturn;\n\t\tint rows = board.length;\n\t\tint cols = board[0].length;\n\t\t\n\t\tQueue<Integer> exploreList = new LinkedList<Integer>();\n\t\tfor(int i=0; i< rows;i++){\n\t\t\tbfs(board, i, 0, rows, cols, exploreList);\n\t\t\tbfs(board, i, cols-1, rows, cols, exploreList);\n\t\t}\n\t\t\n\t\tfor(int j=1; j< cols; j++){\n\t\t\tbfs(board, 0, j, rows, cols, exploreList);\n\t\t\tbfs(board, rows-1, j, rows, cols, exploreList);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<rows; i++){\n\t\t\tfor(int j=0; j<cols; j++){\n\t\t\t\tif(board[i][j] =='D')\n\t\t\t\t\tboard[i][j] = 'O';\n\t\t\t\telse if(board[i][j] == 'O')\n\t\t\t\t\tboard[i][j] = 'X';\n\t\t\t}\n\t\t}\n\t}", "private void fastscan(State state,SuffixNode currNode,int uvLen,int j){ \n \n for(int i=0;i<currNode.children.size();i++){ \n SuffixNode child = currNode.children.get(i); \n \n if(text.charAt(child.start) == text.charAt(j)){ \n int len = child.getLength(); \n if(uvLen==len){ \n //then we find w \n //uvLen = 0; \n //need slow scan after this child \n state.u = child; \n state.w = child; \n state.j = j+len; \n }else if(uvLen<len){ \n //branching and cut child short \n //e.g. child=\"abc\",uvLen = 2 \n // abc ab \n // / \\ ================> / \\ \n // e f suffix part: \"abd^\" c d^ \n // / \\ \n // e f \n \n //insert the new node: ab; child is now c \n int nodepathlen = child.pathlen \n - (child.getLength()-uvLen); \n SuffixNode node = new SuffixNode(text, \n child.start,child.start + uvLen - 1,nodepathlen); \n node.children = new LinkedList<SuffixNode>(); \n \n int tailpathlen = (text.length() - (j + uvLen)) + nodepathlen; \n SuffixNode tail = new SuffixNode(text, \n j+uvLen,text.length()-1,tailpathlen); \n \n //update child node: c \n child.start += uvLen; \n if(text.charAt(j+uvLen)<text.charAt(child.start)){ \n node.children.add(tail); \n node.children.add(child); \n }else{ \n node.children.add(child); \n node.children.add(tail); \n } \n \n //update parent \n currNode.children.set(i, node); \n \n //uvLen = 0; \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.w = node; \n state.finished = true; \n state.v = node; \n \n }else{//uvLen>len \n //e.g. child=\"abc\", uvLen = 4 \n // abc \n // / \\ ================> \n // e f suffix part: \"abcdefg^\" \n // \n // \n //jump to next node \n uvLen -= len; \n state.u = child; \n j += len; \n state.j = j; \n fastscan(state,child,uvLen,j); \n } \n break; \n } \n } \n }", "private void carvePath(Cell cell) {\n\n\t\tsetCellVisited(cell);\n\t\tif (cell.tunnelTo != null) {\n\t\t\tcell = cell.tunnelTo;\n\t\t\tsetCellVisited(cell);\n\t\t}\n\t\tint dir = randomlyChoseNeighbour(cell);\n\t\tCell neigh;\n\t\twhile (dir != -1) {\n\t\t\tneigh = cell.neigh[dir];\n\t\t\tcell.wall[dir].present = false;\n\t\t\tcarvePath(neigh);\n\t\t\tdir = randomlyChoseNeighbour(cell);\n\n\t\t}\n\t}" ]
[ "0.70367473", "0.64422977", "0.64046854", "0.6263993", "0.6140651", "0.6082333", "0.6048554", "0.5998213", "0.59766626", "0.5962489", "0.5935781", "0.5929577", "0.59258455", "0.59146905", "0.58967686", "0.5893201", "0.5888642", "0.58642143", "0.58535165", "0.5830419", "0.58298224", "0.582219", "0.57833344", "0.5767113", "0.57347023", "0.57239413", "0.5712313", "0.57116604", "0.570868", "0.57056713", "0.5703071", "0.5693474", "0.56720126", "0.5667462", "0.56581587", "0.5647475", "0.56448376", "0.5641868", "0.5640604", "0.5632576", "0.5595483", "0.55903566", "0.5583661", "0.55657595", "0.5532468", "0.5528726", "0.5527653", "0.5519599", "0.5513018", "0.5500467", "0.54868203", "0.54849285", "0.5482508", "0.5479736", "0.5476306", "0.5475954", "0.54757106", "0.5461209", "0.54401773", "0.54363126", "0.5430156", "0.54277754", "0.5426714", "0.54193974", "0.5418897", "0.54084396", "0.53986", "0.5395685", "0.53831476", "0.53802174", "0.537686", "0.5375232", "0.5374027", "0.5373042", "0.5371045", "0.536124", "0.5358442", "0.53563994", "0.53244585", "0.5324142", "0.5314707", "0.53089935", "0.5306619", "0.5303973", "0.5290327", "0.5285312", "0.5277837", "0.5277186", "0.52708364", "0.5269728", "0.5266099", "0.5264168", "0.525202", "0.52471346", "0.52411246", "0.5229939", "0.52277315", "0.521931", "0.5217257", "0.52056235", "0.5197906" ]
0.0
-1
Return the adjacent Place in the given direction
public Place goNorth();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Location getAdjacentLocation(char direction)\n\t{\n\t\tswitch (direction) {\n\t\t\tcase 'l': // location to left of current\n\t\t\t\treturn new Location(x - 1, y, Block.EMPTY);\n\t\t\tcase 'r': // location to the right of current\n\t\t\t\treturn new Location(x + 1, y, Block.EMPTY);\n\t\t\tcase 'u': // location above current\n\t\t\t\treturn new Location(x, y - 1, Block.EMPTY);\n\t\t\tcase 'd': // location below current, only option left\n\t\t\tdefault:\n\t\t\t\treturn new Location(x, y + 1, Block.EMPTY);\n\t\t}\n\t}", "private Position adjacentPosition(Direction direction, GameObject gameObject) {\n\n switch (direction) {\n case UP:\n return new Position(gameObject.getPosition().getCol(), gameObject.getPosition().getRow() - 1);\n case DOWN:\n return new Position(gameObject.getPosition().getCol(), gameObject.getPosition().getRow() + 1);\n case LEFT:\n return new Position(gameObject.getPosition().getCol() - 1, gameObject.getPosition().getRow());\n case RIGHT:\n return new Position(gameObject.getPosition().getCol() + 1, gameObject.getPosition().getRow());\n default:\n System.out.println(\"something very bad happened!\");\n return null;\n }\n }", "public Location getNeighbor(int direction)\n\t{\n\t\tint\tnewX = mX;\n\t\tint newY = mY;\n\t\t\n\t\tswitch (direction)\n\t\t{\n\t\t\tcase NORTH: newY--; break;\n\t\t\tcase NORTHEAST: newX++; newY--; break;\n\t\t\tcase EAST: newX++; break;\n\t\t\tcase SOUTHEAST: newX++; newY++; break;\n\t\t\tcase SOUTH: newY++; break;\n\t\t\tcase SOUTHWEST: newX--; newY++; break;\n\t\t\tcase WEST: newX--; break;\n\t\t\tcase NORTHWEST: newX--; newY--; break;\n\t\t\tdefault: throw new IllegalArgumentException(\"No such direction\");\n\t\t}\n\t\t\n\t\treturn new Location(newX, newY);\n\t}", "Place getNextPlace(Place next)\n{\n if (!visited.contains(next.goNorth()) && !(next.goNorth()).isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goEast()) && !next.goEast().isWall()){\n soln.append(\"E\");\n visited.add(next.goEast());\n //nearby.clear();\n return next.goEast();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n \n //nearby.clear();\n return null;\n} \n}", "private Loc nextPoint(Loc l, String direction) {\n\t\tif (direction.equals(\"down\")) {\n\t\t\t// Is at bottom?\n\t\t\t// System.out.println(\"p.getx= \" + l.row);\n\t\t\tif (l.row >= matrixHeight - 1) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn new Loc(l.row + 1, l.col);\n\t\t} else if (direction.equals(\"left\")) {\n\t\t\tif (l.col <= 0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn new Loc(l.row, l.col - 1);\n\t\t} else { // right\n\t\t\tif (l.col >= matrixWidth - 1) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn new Loc(l.row, l.col + 1);\n\t\t}\n\t}", "public Position next(Direction direction) {\n return new Position(row + direction.getRow(), column + direction.getColumn());\n }", "public HexCell getAdjacentCell(HexCell currentCell, MyValues.HEX_POSITION position){\n int cellX = currentCell.x;\n int cellY = currentCell.y;\n HexCell adjacentCell = null;\n switch (position){\n case TOP:\n if(isInBound(cellY-1, y)){\n adjacentCell = getCell(cellX,\n cellY-1);\n }\n break;\n case BOT:\n if(isInBound(cellY+1, y)){\n adjacentCell = getCell(cellX, cellY+1);\n }\n break;\n case TOP_LEFT:\n if(isInBound(cellX -1, x)){\n if(cellX % 2 ==0){\n if(isInBound(cellY-1, y)){\n adjacentCell = getCell(cellX-1, cellY-1);\n }\n } else{\n adjacentCell = getCell(cellX-1, cellY);\n }\n }\n break;\n case TOP_RIGHT:\n if(isInBound(cellX +1, x)){\n if(cellX % 2 ==0){\n if(isInBound(cellY-1, y)){\n adjacentCell = getCell(cellX+1, cellY-1);\n }\n } else{\n adjacentCell = getCell(cellX+1, cellY);\n }\n }\n break;\n case BOT_LEFT:\n if(isInBound(cellX -1, x)){\n if(cellX % 2 ==1){\n if(isInBound(cellY+1, y)){\n adjacentCell = getCell(cellX-1, cellY+1);\n }\n } else{\n adjacentCell = getCell(cellX-1, cellY);\n }\n }\n break;\n case BOT_RIGHT:\n if(isInBound(cellX +1, x)){\n if(cellX % 2 ==1){\n if(isInBound(cellY+1, y)){\n adjacentCell = getCell(cellX+1, cellY+1);\n }\n } else{\n adjacentCell = getCell(cellX+1, cellY);\n }\n }\n break;\n }\n return adjacentCell;\n }", "interface Place {\n\n\t// Return the adjacent Place in the given direction\n\tpublic Place goNorth();\n\tpublic Place goSouth();\n\tpublic Place goEast();\n\tpublic Place goWest();\n\n\t// Returns true only for the special \"Wall\" place\n\tpublic boolean isWall();\n\n\t// Returns true only for the special \"Cheese\" place\n\tpublic boolean isCheese();\n}", "public PositionInTheGameBoard nextPosition(Direction direction) throws PositionIsNotInGameboardException\r\n\t{\r\n\t\treturn new PositionInTheGameBoard(this.getX()+direction.getxMove(), this.getY()+direction.getyMove());\r\n\t}", "public Room neighbour(Direction direction) {\r\n\t\treturn this.neighbours.get(direction);\r\n\t}", "public MapElement getNextElement(Direction dir) {\n //System.out.println(\"Le lett kérve a következő palyaelem.\");\n return neighbours[dir.getValue()];\n }", "public Point nextRoom() {\n Point nr;\n switch (direction) {\n case NORTH:\n nr = new Point(0, -1);\n break;\n case SOUTH:\n nr = new Point(0, 1);\n break;\n case EAST:\n nr = new Point(1, 0);\n break;\n case WEST:\n nr = new Point(-1, 0);\n break;\n default:\n nr = new Point(0, 0);\n break;\n }\n return nr;\n }", "public boolean areAdjacent(Position vp, Position wp) throws InvalidPositionException;", "public Position getNextPosition(PlayerDirection direction) {\n Position next = position;\n // Update based on direction\n switch(direction){\n case DIRECTION_UP:\n next = new Position(next.getRow()-1, next.getColumn());\n break;\n case DIRECTION_DOWN:\n next = new Position(next.getRow()+1, next.getColumn());\n break;\n case DIRECTION_RIGHT:\n next = new Position(next.getRow(), next.getColumn()+1);\n break;\n case DIRECTION_LEFT:\n next = new Position(next.getRow(), next.getColumn()-1);\n break;\n }\n return next;\n }", "@Test\n\t\t\tpublic void adjacentToDoorwayTest() {\n\t\t\t\t//Tests with a space to the left of a leftward door\n\t\t\t\tSet<BoardCell> testList = board.getAdjList(11, 15);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(11, 16)));\n\t\t\t\t//Tests with a space to the right of a rightward door\n\t\t\t\ttestList = board.getAdjList(12, 7);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(12, 6)));\n\t\t\t\t//Tests with a space below a downward door\n\t\t\t\ttestList = board.getAdjList(6, 15);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(5, 15)));\n\t\t\t\t//Tests with a space above an upward door\n\t\t\t\ttestList = board.getAdjList(15, 19);\n\t\t\t\tassertTrue(testList.contains(board.getCellAt(16, 19)));\n\t\t\t\n\t\t\t}", "public Coordinate checkDirection(Direction direction){\r\n\t\treturn new Coordinate(x + direction.getX(), y + direction.getY());\r\n\t}", "public Direction getMove(){\n\t\tif (diam < 3){\n\t\t\tdiam++;\n\t\t\tjustnow = \"east\";\n\t\t\treturn Direction.EAST;\n\t\t}\n\t\telse if (diam < 6){\n\t\t\tdiam++;\n\t\t\tjustnow = \"south\";\n\t\t\treturn Direction.SOUTH;\n\t\t}\n\t\telse if (diam < 9){\n\t\t\tdiam++;\n\t\t\tjustnow = \"west\";\n\t\t\treturn Direction.WEST;\n\t\t}\n\t\telse if (diam < 12){\n\t\t\tdiam++;\n\t\t\tjustnow = \"north\";\n\t\t\treturn Direction.NORTH;\n\t\t}\n\t\telse {\n\t\t\tdiam = 0;\n\t\t\tdiam++;\n\t\t\tjustnow = \"east\";\n\t\t\treturn Direction.EAST;\n\t\t}\t\n\t}", "private int[] FindNextDirection(Tile start)\n {\n int[] direction = new int[2];\n Tile up = grid.GetTile(start.getXPlace(), start.getYPlace() - 1);\n Tile right = grid.GetTile(start.getXPlace() + 1, start.getYPlace());\n Tile down = grid.GetTile(start.getXPlace(), start.getYPlace() + 1);\n Tile left = grid.GetTile(start.getXPlace() - 1, start.getYPlace() - 1);\n \n if(start.getType() == up.getType())\n {\n direction[0] = 0;\n direction[1] = -1;\n }\n else if(start.getType() == right.getType())\n {\n direction[0] = 1;\n direction[1] = 0;\n }\n else if(start.getType() == down.getType())\n {\n direction[0] = 0;\n direction[1] = 1;\n }\n else if(start.getType() == left.getType())\n {\n direction[0] = -1;\n direction[1] = 0;\n }\n else\n {\n direction[0] = 2;\n direction[1] = 2;\n System.out.println(\"NO DIRECTION FOUND.\");\n }\n return direction;\n }", "public Place followDirection ( String checkDirection)\r\n\t{\t\r\n\t\t for( int i=0; i < directions.size(); i++)\r\n\t\t {\r\n\t\t\t if( directions.get(i).match( checkDirection))\r\n\t\t\t {\r\n\t\t\t\t // If direction matches with direction object's direction, now again check that if the door is unlocked or not. \r\n\t\t\t\t return directions.get(i).follow();\r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t } \r\n\t\t System.out.println (\"There is no direction from this DOOR....OH No, You are stuck at this Current Place:\" + this.name());\r\n\t\t return this;\r\n\t}", "private Box getBoxToTheDirection(Direction direction){\n for(Box box : boxes){\n switch (direction){\n case DOWN:\n if(player.getDestinationX()==box.getDestinationX() && player.getDestinationY()+DISTANCE == box.getDestinationY())\n return box;\n break;\n case UP:\n if(player.getDestinationX()==box.getDestinationX() && player.getDestinationY()-DISTANCE == box.getDestinationY())\n return box;\n break;\n case LEFT:\n if(player.getDestinationY()==box.getDestinationY() && player.getDestinationX()-DISTANCE == box.getDestinationX())\n return box;\n break;\n case RIGHT:\n if(player.getDestinationY()==box.getDestinationY() && player.getDestinationX()+DISTANCE == box.getDestinationX())\n return box;\n break;\n }\n }\n return null;\n }", "private static Position getBottomNeighbor(Position curr, int side) {\n int newX = curr.getX();\n int newY = curr.getY() - side * 2;\n return new Position(newX, newY);\n }", "int getDirection();", "public Wall nextNear( Point startingPoint, Point destinationPoint, Wall destinationWall ) {\n//System.out.print(\"nextNear. start: \" + startingPoint.toString() + \", end: \" + destinationPoint.toString());\n\n if ( this == destinationWall ) {\n return this;\n }\n\n if ( nextCornerPoint.equals( startingPoint ) ) {\n return previous;\n }\n\n if ( previousCornerPoint.equals( startingPoint ) ) {\n return next;\n }\n\n// Double destination = startingPoint.distance( destinationPoint );\n Double nextCorner = destinationPoint.distance( nextCornerPoint );\n Double previousCorner = destinationPoint.distance( previousCornerPoint );\n\n// System.out.print(\"... Distances - destination: \" + destination.toString()\n// + \", nextCorner: \" + nextCorner.toString()\n// + \", previousCorner: \" + previousCorner.toString());\n//\n// if ( destination <= nextCorner || destination <= previousCorner ) {\n// System.out.println( \". Returning current wall \" + this.toString() );\n// return this;\n// }\n// else\n// if ( nextCorner < previousCorner && ! nextCornerPoint.equals( startingPoint ) ) {\n if ( nextCorner < previousCorner ) {\n// System.out.println( \". Returning next \" + next.toString() );\n return next;\n }\n else\n// if ( ! previousCornerPoint.equals( startingPoint ) )\n {\n// System.out.println( \". Returning previous \" + previous.toString() );\n return previous;\n }\n// else {\n// System.out.println( \". Returning next \" + next.toString() + \" by default.\");\n// return next;\n// }\n }", "public int getDirection();", "public static List<int[]> findAdjacent(PuzzleState state, int row, int column) {\r\n\t\tArrayList<int[]> adjacentTiles = new ArrayList<int[]>();\r\n\t\tint[] whiteTile = Tiles.findTile(0, state);\r\n\t\tint row1, row2, column1, column2;\r\n\t\t\r\n\t\trow1 = whiteTile[1] - 1;\r\n\t\trow2 = whiteTile[1] + 1;\r\n\t\tcolumn1 = whiteTile[0] - 1;\r\n\t\tcolumn2 = whiteTile[1] + 1;\r\n\t\t\r\n\t\t// West\r\n\t\tif (column1 >= 0) {\r\n\t\t\tint[] tile = new int[2];\r\n\t\t\ttile[0] = column1;\r\n\t\t\ttile[1] = row;\r\n\t\t\tadjacentTiles.add(tile);\r\n\t\t}\r\n\t\t// South\r\n\t\tif (row1 >= 0) {\r\n\t\t\tint[] tile = new int[2];\r\n\t\t\ttile[0] = row1;\r\n\t\t\ttile[1] = column;\r\n\t\t\tadjacentTiles.add(tile);\r\n\t\t}\r\n\t\t// East\r\n\t\tif (column2 <= 3) {\r\n\t\t\tint[] tile = new int[2];\r\n\t\t\ttile[0] = column2;\r\n\t\t\ttile[1] = row;\r\n\t\t\tadjacentTiles.add(tile);\r\n\t\t}\r\n\t\t// North\r\n\t\tif (row2 <= 3) {\r\n\t\t\tint[] tile = new int[2];\r\n\t\t\ttile[0] = column;\r\n\t\t\ttile[1] = row2;\r\n\t\t\tadjacentTiles.add(tile);\r\n\t\t}\r\n\t\t\r\n\t\treturn adjacentTiles;\r\n\t}", "public com.hps.july.persistence.Direction getDirections() throws Exception {\n\tDirectionAccessBean bean = constructDirections();\n\tif (bean != null)\n\t return (Direction)bean.getEJBRef();\n\telse\n\t return null;\n\n}", "Enumerator getDirection();", "public Direction getDirect() {\n \tif(xMoving && yMoving){\n \t\tif(right && down)\n \t\t\tdir = Direction.SOUTHEAST;\n \t\telse if(right && !down)\n \t\t\tdir = Direction.NORTHEAST;\n \t\telse if(!right && down)\n \t\t\tdir = Direction.SOUTHWEST;\n \t\telse\n \t\t\tdir = Direction.NORTHWEST;\n \t}\n \telse if(xMoving){\n \t\tdir = right ? Direction.EAST : Direction.WEST;\n \t}\n \telse if(yMoving){\n \t\tdir = down ? Direction.SOUTH : Direction.NORTH;\n \t}\n \treturn dir;\n }", "String getDirection();", "public Field getNeighbor(Directions dir) {\n return neighbors[dir.ordinal()];\n }", "private Point getMoveDestination(Building b)\n\t{\n\t\tObjectType buildType = b.getObjectType();\n\t\tPoint workPoint = b.getPosition();\n\t\tfor (int i = workPoint.getX(); i < workPoint.getX()\n\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(buildType) - 1; i++)\n\t\t{\n\t\t\tPoint p1 = new Point(i, workPoint.getY() - 1);\n\t\t\tif (p1.getY() < getMyPlayer().getMyMap().getMapBlocks()[0].length\n\t\t\t\t\t&& (getMyPlayer().getMyMap().getMapBlocks()[i][p1.getY()]\n\t\t\t\t\t\t\t.isWalkableByWorker() || (!getMyPlayer()\n\t\t\t\t\t\t\t.getMapVisiblity()[i][p1.getY()])))\n\t\t\t\treturn p1;\n\t\t\tPoint p2 = new Point(i, workPoint.getY()\n\t\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t\t.get(buildType));\n\t\t\tif ((p2.getY() < getMyPlayer().getMyMap().getMapBlocks()[0].length)\n\t\t\t\t\t&& (getMyPlayer().getMyMap().getMapBlocks()[i][p2.getY()]\n\t\t\t\t\t\t\t.isWalkableByWorker() || (!getMyPlayer()\n\t\t\t\t\t\t\t.getMapVisiblity()[i][p2.getY()])))\n\t\t\t\treturn p2;\n\n\t\t}\n\t\tfor (int j = workPoint.getY(); j < workPoint.getY()\n\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(buildType); j++)\n\t\t{\n\t\t\tPoint p1 = new Point(workPoint.getX() - 1, j);\n\t\t\tif (p1.getX() < getMyPlayer().getMyMap().getMapBlocks().length\n\t\t\t\t\t&& (getMyPlayer().getMyMap().getMapBlocks()[p1.getX()][j]\n\t\t\t\t\t\t\t.isWalkableByWorker() || (!getMyPlayer()\n\t\t\t\t\t\t\t.getMapVisiblity()[p1.getX()][j])))\n\t\t\t\treturn p1;\n\t\t\tPoint p2 = new Point(workPoint.getX()\n\t\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t\t.get(buildType), j);\n\t\t\tif (p2.getX() < getMyPlayer().getMyMap().getMapBlocks().length\n\t\t\t\t\t&& (getMyPlayer().getMyMap().getMapBlocks()[p2.getX()][j]\n\t\t\t\t\t\t\t.isWalkableByWorker() || (!getMyPlayer()\n\t\t\t\t\t\t\t.getMapVisiblity()[p2.getX()][j])))\n\t\t\t\treturn p2;\n\n\t\t}\n\t\treturn null;\n\t}", "public SubCell neighbor(Direction dir) {\n switch (dir) {\n case N:\n return new SubCell(x(), y() - 1);\n case E:\n return new SubCell(x() + 1, y());\n case S:\n return new SubCell(x(), y() + 1);\n case W:\n return new SubCell(x() - 1, y());\n default:\n return new SubCell(x(), y());\n }\n }", "public Enumeration inAdjacentVertice(Position vp) throws InvalidPositionException;", "public Location next(boolean leftPressed, boolean rightPressed, boolean upPressed, boolean downPressed){\n\n\t\t// first, find out where we are now, and if we're making a footstep noise.\n\t\t// (footstep noises happen when the avatar moves from one nearest grid reference to a another)\n\t\tGridRef nearestGR = getNearestSpace();\n\t\tif (nearestGR.equals(previousGR)){\n\t\t\tfootstep = false;\n\t\t} else {\n\t\t\tfootstep = true;\n\t\t}\n\t\t// update 'previousGR' value.\n\t\tpreviousGR = nearestGR;\n\n\t\tint targetX = currentLoc.x;\n\t\tint targetY = currentLoc.y;\n\t\t\n\t\tif (leftPressed){\n\t\t\ttargetX -= topSpeed;\n\t\t\tcurrentDir = Direction.LEFT;\n\t\t}\n\t\tif (rightPressed){\n\t\t\ttargetX += topSpeed;\n\t\t\tcurrentDir = Direction.RIGHT;\n\t\t}\n\t\tif (upPressed){\n\t\t\ttargetY -= topSpeed;\n\t\t\tcurrentDir = Direction.UP;\n\t\t}\n\t\tif (downPressed){\n\t\t\ttargetY += topSpeed;\n\t\t\tcurrentDir = Direction.DOWN;\n\t\t}\n\n\t\ttargetLoc = new Location(targetX, targetY);\n\n\t\treturn targetLoc;\n\t}", "public MC_Location getLocationAtDirection(MC_DirectionNESWUD dir)\n\t {\n\t\t MC_Location loc = new MC_Location(this);\n\t\t\t\n\t\t\tif(dir == MC_DirectionNESWUD.NORTH) loc.z--; \n\t\t\tif(dir == MC_DirectionNESWUD.SOUTH) loc.z++;\n\t\t\tif(dir == MC_DirectionNESWUD.WEST) loc.x--;\n\t\t\tif(dir == MC_DirectionNESWUD.EAST) loc.x++;\n\t\t\tif(dir == MC_DirectionNESWUD.UP) loc.y++; \n\t\t\tif(dir == MC_DirectionNESWUD.DOWN) loc.y--;\n\n\t\t\treturn loc;\n\t\t}", "List<Direction> getValidDirectionsForMovement();", "public int getSideIndex(Tile adjacent){\r\n for(int i = 0; i < adjTiles.length; i++){\r\n if(adjTiles[i] == adjacent) return i;\r\n }\r\n return -1;\r\n }", "com.microsoft.schemas.crm._2011.contracts.SearchDirection xgetDirection();", "public static Direction getDirection(Point start, Point end)\n \t{\n \t\tif( start.x - end.x > 0) //left\n \t\t{\n \t\t\tif (start.y - end.y < 0) //up\n \t\t\t\treturn Board.Direction.topleft;\n \t\t\telse if (start.y - end.y > 0) //down\n \t\t\t\treturn Board.Direction.botleft;\n \t\t\telse //same .y\n \t\t\t\treturn Board.Direction.left;\n \t\t}\n \t\telse if ( start.x - end.x < 0) //right\n \t\t{\n \t\t\tif (start.y - end.y < 0) //up\n \t\t\t\treturn Board.Direction.topright;\n \t\t\telse if (start.y - end.y > 0) //down\n \t\t\t\treturn Board.Direction.botright;\n \t\t\telse //same .y\n \t\t\t\treturn Board.Direction.right;\n \t\t}\n \t\telse // no x movement (only up or down)\n \t\t{\n \t\t\tif(start.y - end.y < 0)\n \t\t\t\treturn Board.Direction.up;\n \t\t\tif(start.y - end.y > 0)\n \t\t\t\treturn Board.Direction.down;\n \t\t\telse\n \t\t\t\treturn Board.Direction.none; //no movement\n \t\t}\n \t}", "public static Location createNextLocation(Location previous,\n int direction) {\n int previousX = previous.getX();\n int previousY = previous.getY();\n int newX;\n int newY;\n\n // Given the direction to move, update x- and y-coordinate.\n if (direction == 1) {\n newX = previousX + 1;\n newY = previousY;\n } else if (direction == 2) {\n newX = previousX - 1;\n newY = previousY;\n } else if (direction == 3) {\n newX = previousX;\n newY = previousY + 1;\n } else {\n newX = previousX;\n newY = previousY - 1;\n }\n\n return new Location(newX, newY);\n }", "private AntArea.Cell getCellInDirection(Pair<Integer, Integer> direction) {\n int newX = location.getKey() + direction.getKey();\n int newY = location.getValue() + direction.getValue();\n\n //Torus shape\n newX = newX < 0 ? antArea.getAreaWidth() - 1 : newX;\n newY = newY < 0 ? antArea.getAreaHeight() - 1 : newY;\n newX %= antArea.getAreaWidth();\n newY %= antArea.getAreaHeight();\n\n return antArea.getMap()[newX][newY];\n }", "private DominoInKingdom.DirectionKind getDirection(String dir) {\n switch (dir) {\n case \"up\":\n return DominoInKingdom.DirectionKind.Up;\n case \"down\":\n return DominoInKingdom.DirectionKind.Down;\n case \"left\":\n return DominoInKingdom.DirectionKind.Left;\n case \"right\":\n return DominoInKingdom.DirectionKind.Right;\n default:\n throw new java.lang.IllegalArgumentException(\"Invalid direction: \" + dir);\n }\n }", "private static Cell isAdjacent(char[][] board, Character ch, int row, int col, Set<Cell> visited) {\n if(isValidCell(row-1, col, board) && board[row-1][col] == ch && !visited.contains(new Cell(row-1, col))) return new Cell(row-1, col);\n //if(isValidCell(row-1, col+1, board) && board[row-1][col+1] == ch && !visited.contains(new Cell(row-1, col+1))) return new Cell(row-1, col+1);\n if(isValidCell(row, col-1, board) && board[row][col-1] == ch && !visited.contains(new Cell(row, col-1))) return new Cell(row, col-1);\n if(isValidCell(row, col+1, board) && board[row][col+1] == ch && !visited.contains(new Cell(row, col+1))) return new Cell(row, col+1);\n //if(isValidCell(row+1, col-1, board) && board[row+1][col-1] == ch && !visited.contains(new Cell(row+1, col-1))) return new Cell(row+1, col-1);\n if(isValidCell(row+1, col, board) && board[row+1][col] == ch && !visited.contains(new Cell(row+1, col))) return new Cell(row+1, col);\n //if(isValidCell(row+1, col+1, board) && board[row+1][col+1] == ch && !visited.contains(new Cell(row+1, col+1))) return new Cell(row+1, col+1);\n return null;\n }", "public boolean areAdjacent() {\n return areAdjacent;\n }", "public RoadInterface getConnectedRoad (Direction dir) {\n if (dirOne == dir) {\n return (interOne);\n } else if (dirTwo == dir) {\n return (interTwo);\n } else {\n return (null);\n }\n }", "public Location getDown()\n\t{\n\t\tif(checkDown())\n\t\t{\n\t\t\treturn new Location(row+1,col);\n\t\t}\n\t\treturn this;\n\t}", "public Direction getOpposite() {\n if (equals(Direction.NORTH)) return Direction.SOUTH;\n else if (equals(Direction.EAST)) return Direction.WEST;\n else if (equals(Direction.SOUTH)) return Direction.NORTH;\n else if (equals(Direction.WEST)) return Direction.EAST;\n else return null;\n }", "public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }", "public abstract int getDirection();", "public PlayerPosition getNext() {\n\n\t\tswitch (this) {\n\t\t\tcase BOTTOM:\n\t\t\t\treturn LEFT;\n\t\t\tcase LEFT:\n\t\t\t\treturn TOP;\n\t\t\tcase TOP:\n\t\t\t\treturn RIGHT;\n\t\t\tcase RIGHT:\n\t\t\t\treturn BOTTOM;\n\t\t\tdefault:\n\t\t\t\t// must not happen\n\t\t\t\treturn null;\n\t\t}\n\t}", "public Location getAhead(char dirFacing)\n\t{\n\t\treturn getAdjacentLocation(dirFacing);\n\t}", "public Rectangle getNextWaypoint(Vector2 start, Vector2 destinatin, Vector2 offset) {\r\n if(this.grid.contains(start, offset)) {\r\n if(this.grid.contains(destinatin, offset)) {\r\n // Get Start Rectangle with scene offset\r\n Rectangle current = this.grid.getRectAtPosition(start,offset);\r\n Rectangle destination = grid.getRectAtPosition(destinatin, offset);\r\n Rectangle nextRect = null;\r\n int nextDist = 0;\r\n for(Rectangle refRect : this.grid.getRectangles()) {\r\n if(!refRect.isSame(current)) {\r\n int startX = current.getX();\r\n int startY = current.getY();\r\n int refX = refRect.getX() + offset.getX();\r\n int refY = refRect.getY() + offset.getY();\r\n int xA = (refX - startX) / 48;\r\n int yA = (refY - startY) / 48;\r\n\r\n if(xA <= 1 && xA >= -1 && yA <= 1 && yA >= -1) {\r\n int x = Math.abs((destination.getX() - refX) / 48);\r\n int y = Math.abs((destination.getY() - refY) / 48);\r\n int dist = x + y;\r\n\r\n if(nextRect == null) {\r\n nextDist = dist;\r\n nextRect = new Rectangle(refX, refY, refRect.getWidth(), refRect.getHeight());\r\n }\r\n else {\r\n if(dist < nextDist) {\r\n nextDist = nextDist;\r\n nextRect = new Rectangle(refX, refY, refRect.getWidth(), refRect.getHeight());\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if(nextRect!= null) {\r\n return nextRect;\r\n }\r\n }\r\n }\r\n return null;\r\n }", "public Direction getLeaveDirection() {\n if (!carrier.hasTile() || plan.cdst == plan.tdst) return null;\n TransportableAIObject t = getTransportable();\n PathNode path = t.getDeliveryPath(getCarrier(), plan.tdst);\n return (path == null || path.next == null) ? null\n : path.next.getDirection();\n }", "private List<Node> getAdjacentNodes(Node current, List<Node> closedSet, Node dest) {\n\t\tList<Node> adjacent = new ArrayList<Node>();\n\t\t\n\t\tfor (int i = -1; i <=1; i++) {\n\t\t\tinner:\n\t\t\tfor (int j = -1; j <=1; j++) {\n\t\t\t\tif (i == 0 && j == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint x = current.getX() + i;\n\t\t\t\tint y = current.getY() + j;\n\t\t\t\tif (!currentState.inBounds(x, y)\n\t\t\t\t\t\t|| board.getHasTree(x, y)\n\t\t\t\t\t\t|| peasantAt(x,y)\n\t\t\t\t\t\t|| board.getTowerProbability(x, y) == 1\n\t\t\t\t\t\t|| isTownHallAt(x, y, dest)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tNode node = new Node(x, y, getHitProbability(x, y), current);\n\t\t\t\tfor (Node visitedNode : closedSet) {\n\t\t\t\t\tif (node.equals(visitedNode)) {\n\t\t\t\t\t\tcontinue inner;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tadjacent.add(node);\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(\"AT \" + current);\n//\t\tSystem.out.println(\"NEIGHBORS:\");\n//\t\tfor (Node node : adjacent) {\n//\t\t\tSystem.out.println(\"\\t\" + node);\n//\t\t}\n\t\t\n\t\treturn adjacent;\n\t}", "private boolean adjacent(Location a, Location b)\n {\n for (Location loc: getAdjacentLocations(a))\n {\n if (loc.equals(b))\n return true;\n }\n return false;\n }", "public Point nextCorner( Point startingPoint, Point destinationPoint,\n Wall destinationWall ) throws DataException {\n\n if ( this == destinationWall ) {\n return destinationPoint;\n }\n\n if ( null == nextCornerPoint || null == previousCornerPoint ) {\n throw new DataException( \"Cannot find abutting wall.\" );\n }\n\n if ( nextCornerPoint.equals( startingPoint ) ) {\n return previousCornerPoint;\n }\n\n if ( previousCornerPoint.equals( startingPoint ) ) {\n return nextCornerPoint;\n }\n\n// Double destination = startingPoint.distance( destinationPoint );\n Double nextCorner = destinationPoint.distance( nextCornerPoint );\n Double previousCorner = destinationPoint.distance( previousCornerPoint );\n\n// if ( destination <= nextCorner || destination <= previousCorner ) {\n// System.out.println( \". Returning destination \" + destinationPoint.toString() );\n// return destinationPoint;\n// }\n// else\n// if ( nextCorner < previousCorner && ! nextCornerPoint.equals( startingPoint ) ) {\n if ( nextCorner < previousCorner ) {\n return nextCornerPoint;\n }\n else\n// if ( ! previousCornerPoint.equals( startingPoint ) )\n {\n return previousCornerPoint;\n }\n// else {\n// System.out.println( \". Returning next \" + nextCornerPoint.toString() + \" by default.\");\n// return nextCornerPoint;\n// }\n }", "boolean hasDirection();", "public abstract Position nextPosition(Position position);", "public Stack<Position> getAllNeighborPosition(Position p){\n Stack<Position> stackP=new Stack<Position>();\n Position up=new Position(p.getRow()-1,p.getCol());\n stackP.add(up);\n Position down=new Position(p.getRow()+1,p.getCol());\n stackP.add(down);\n Position right=new Position(p.getRow(),p.getCol()+1);\n stackP.add(right);\n Position left=new Position(p.getRow(),p.getCol()-1);\n stackP.add(left);\n return stackP;\n }", "public Optional<Boolean> isDestinationPositionAfter();", "public Direction getAIDirection (Tile[][] map) {\n\n // Determine valid directions\n ArrayList<Direction> validDirections = new ArrayList<>();\n for (Direction direction : Direction.cardinals) {\n Coordinates targetCoordinates = Utility.locateDirection(this.getPosition(), direction);\n Tile targetTile = map[targetCoordinates.getY()][targetCoordinates.getX()];\n if (targetTile.getTerrain().equals(Terrain.EMPTY)) validDirections.add(direction);\n }\n\n // Seek random direction if backtrack is not the only viable option\n if (validDirections.size() > 1) {\n while (true) {\n Direction direction = validDirections.get(new Random().nextInt(validDirections.size()));\n Coordinates targetCoordinates = Utility.locateDirection(this.getPosition(), direction);\n Tile targetTile = map[targetCoordinates.getY()][targetCoordinates.getX()];\n\n boolean isBackTrack = false;\n if (\n targetTile.getPosition().getX() == previousLocation.getX()\n && targetTile.getPosition().getY() == previousLocation.getY()\n ) isBackTrack = true;\n\n if (targetTile.getTerrain().equals(Terrain.EMPTY) && !isBackTrack) return direction;\n }\n }\n else return validDirections.get(0);\n }", "public double getDirectionMove();", "public Direction getJoinDirection() {\n return (carrier.isInEurope() || plan.cwait == plan.twait) ? null\n : carrier.getGame().getMap().getDirection(plan.twait.getTile(),\n plan.cwait.getTile());\n }", "private MapCell nextCell(MapCell cell) {\r\n\t\t\r\n\t\t//This is an array that holds the possible neighbouring tiles.\r\n\t\tMapCell[] potentialCells = {null,null,null,null};\r\n\t\t\r\n\t\t//This variable is an indicator. If it remains -1, that means no possible neighbouring tiles were found.\r\n\t\tint next = -1; \r\n\t\t\t\r\n\t\t//If the cell is a north road, check that its neighbour to the north is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another north road.\r\n\t\tif(cell.getNeighbour(0)!=null && cell.isNorthRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(0).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(0).isIntersection()||cell.getNeighbour(0).isDestination()||cell.getNeighbour(0).isNorthRoad()) {\r\n\r\n\t\t\t\t\t//Add the north neighbour to the array of potential next tiles.\r\n\t\t\t\t\tpotentialCells[0] = cell.getNeighbour(0);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the cell is an east road, check that its neighbour to the east is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another east road.\r\n\t\t} else if (cell.getNeighbour(1)!=null && cell.isEastRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(1).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(1).isIntersection()||cell.getNeighbour(1).isDestination()||cell.getNeighbour(1).isEastRoad()) {\r\n\r\n\t\t\t\t\t//Add the east neighbour to the potential next tiles.\r\n\t\t\t\t\tpotentialCells[1] = cell.getNeighbour(1);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the cell is a south road, check that its neighbour to the south is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another south road.\r\n\t\t} else if (cell.getNeighbour(2)!=null && cell.isSouthRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(2).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(2).isIntersection()||cell.getNeighbour(2).isDestination()||cell.getNeighbour(2).isSouthRoad()) {\r\n\r\n\t\t\t\t\t//Add the south neighbour to the potential next tiles.\r\n\t\t\t\t\tpotentialCells[2] = cell.getNeighbour(2);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the cell is a west road, check that its neighbour to the west is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another west road.\r\n\t\t} else if (cell.getNeighbour(3)!=null && cell.isWestRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(3).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(3).isIntersection()||cell.getNeighbour(3).isDestination()||cell.getNeighbour(3).isWestRoad()) {\r\n\r\n\t\t\t\t\t//Add the west neighbour to the potential next tiles.\r\n\t\t\t\t\tpotentialCells[3] = cell.getNeighbour(3);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the current cell is an intersection, go through all 4 of its potential neighbours.\r\n\t\t} else {\r\n\r\n\t\t\tfor(int i = 0; i<4; i++) {\r\n\r\n\t\t\t\t//Check that the neighbour isn't null or marked.\r\n\t\t\t\tif(cell.getNeighbour(i)!=null) {\r\n\r\n\t\t\t\t\tif(!cell.getNeighbour(i).isMarked()) {\r\n\r\n\t\t\t\t\t\t//Check to see if the neighbour is either an intersection, or a one-way road in the proper orientation to\r\n\t\t\t\t\t\t//continue the path.\r\n\t\t\t\t\t\tif(cell.getNeighbour(i).isIntersection()||cell.getNeighbour(i).isDestination()||(i==0\r\n\t\t\t\t\t\t\t\t&&cell.getNeighbour(i).isNorthRoad())||(i==1&&cell.getNeighbour(i).isEastRoad())||(i==2\r\n\t\t\t\t\t\t\t\t&&cell.getNeighbour(i).isSouthRoad())||(i==3&&cell.getNeighbour(i).isWestRoad())) {\r\n\r\n\t\t\t\t\t\t\t//Add the tile to the possible next tiles.\r\n\t\t\t\t\t\t\tpotentialCells[i] = cell.getNeighbour(i);\r\n\t\t\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t//If no tiles were found, return null.\r\n\t\tif(next == -1) {\r\n\r\n\t\t\treturn null;\r\n\r\n\t\t//Otherwise, select one (or one of) the next possible tiles and return it.\r\n\t\t} else {\r\n\r\n\t\t\tfor(int i = 3; i >= 0; i--) {\r\n\r\n\t\t\t\tif(potentialCells[i]!=null) {\r\n\r\n\t\t\t\t\tnext = i;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\treturn potentialCells[next];\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "protected Location nextLocation()\n {\n // Get list of neighboring empty locations.\n ArrayList emptyNbrs = emptyNeighbors();\n\n // Remove the location behind, since fish do not move backwards.\n Direction oppositeDir = direction().reverse();\n Location locationBehind = environment().getNeighbor(location(),\n oppositeDir);\n emptyNbrs.remove(locationBehind);\n Debug.print(\"Possible new locations are: \" + emptyNbrs.toString());\n\n // If there are no valid empty neighboring locations, then we're done.\n if ( emptyNbrs.size() == 0 )\n return location();\n\n // Return a randomly chosen neighboring empty location.\n Random randNumGen = RandNumGenerator.getInstance();\n int randNum = randNumGen.nextInt(emptyNbrs.size());\n\t return (Location) emptyNbrs.get(randNum);\n }", "private Direction getNextDirection(int xDiff, int yDiff) {\n \n // figure out the direction the footman needs to move in\n if(xDiff == 1 && yDiff == 1)\n {\n return Direction.SOUTHEAST;\n }\n else if(xDiff == 1 && yDiff == 0)\n {\n return Direction.EAST;\n }\n else if(xDiff == 1 && yDiff == -1)\n {\n return Direction.NORTHEAST;\n }\n else if(xDiff == 0 && yDiff == 1)\n {\n return Direction.SOUTH;\n }\n else if(xDiff == 0 && yDiff == -1)\n {\n return Direction.NORTH;\n }\n else if(xDiff == -1 && yDiff == 1)\n {\n return Direction.SOUTHWEST;\n }\n else if(xDiff == -1 && yDiff == 0)\n {\n return Direction.WEST;\n }\n else if(xDiff == -1 && yDiff == -1)\n {\n return Direction.NORTHWEST;\n }\n \n System.err.println(\"Invalid path. Could not determine direction\");\n return null;\n }", "List<Tile> getAdjacentTiles();", "private Direction calcDirection(int rowD, int colD) {\n // Kuninkaan alapuolella\n if (rowD < 0) {\n if (colD < 0) return Direction.SOUTHWEST;\n if (colD > 0) return Direction.SOUTHEAST;\n return Direction.SOUTH;\n }\n // Kuninkaan yläpuolella\n if (rowD > 0) {\n if (colD < 0) return Direction.NORTHWEST;\n if (colD > 0) return Direction.NORTHEAST;\n return Direction.NORTH;\n }\n // Kuninkaan tasossa\n if (colD < 0) return Direction.WEST;\n return Direction.EAST;\n }", "public Thing neighbor ( Animal animal, int direction ) {\n\n\t\tif ( direction == Direction.NONE ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tint drow = rowChange(direction), dcol = colChange(direction);\n\t\ttry {\n\n\t\t\treturn at(animal.getRow() + drow,animal.getColumn() + dcol);\n\n\t\t} catch ( ArrayIndexOutOfBoundsException e ) {\n\t\t\treturn null;\n\t\t}\n\t}", "private ArrayList<GridPiece> getOpposite(GridPiece origin) {\n originOpposite.clear();\n\n //Check for corners\n if (origin.column == 0 && (origin.row == 0 || origin.row == game.gridSizeHeight - 1)) {\n originOpposite.add(falsePiece);\n return originOpposite;\n } else if (origin.column == game.gridSizeWidth - 1 && (origin.row == 0 || origin.row == game.gridSizeHeight - 1)) {\n originOpposite.add(falsePiece);\n return originOpposite;\n }\n\n if (originOpposite.size() > 0) {\n return originOpposite;\n }\n\n // Search Around\n\n boolean canCreateOp;\n\n // Search up\n if (game.gridMap.size() > origin.row + 1) {\n canCreateOp = false;\n\n for (int i = origin.row + 1; i < game.gridSizeHeight; i++) {\n if (game.gridMap.get(i).get(origin.column).state == game.STATE_NONE) {\n canCreateOp = true;\n } else if (game.gridMap.get(i).get(origin.column).state == game.STATE_FINAL && canCreateOp) {\n originOpposite.add(game.gridMap.get(i).get(origin.column));\n break;\n }\n }\n\n\n // Search down\n }\n if (origin.row > 0) {\n canCreateOp = false;\n\n for (int i = origin.row - 1; i >= 0; i--) {\n if (game.gridMap.get(i).get(origin.column).state == game.STATE_NONE) {\n canCreateOp = true;\n } else if (game.gridMap.get(i).get(origin.column).state == game.STATE_FINAL && canCreateOp) {\n originOpposite.add(game.gridMap.get(i).get(origin.column));\n break;\n }\n }\n\n\n // Search right\n }\n if (game.gridMap.get(0).size() > origin.column + 1) {\n canCreateOp = false;\n\n for (int i = origin.column + 1; i < game.gridSizeWidth; i++) {\n if (game.gridMap.get(origin.row).get(i).state == game.STATE_NONE) {\n canCreateOp = true;\n } else if (game.gridMap.get(origin.row).get(i).state == game.STATE_FINAL && canCreateOp) {\n originOpposite.add(game.gridMap.get(origin.row).get(i));\n break;\n }\n }\n\n // Search left\n }\n if (origin.column > 0) {\n canCreateOp = false;\n\n for (int i = origin.column - 1; i >= 0; i--) {\n if (game.gridMap.get(origin.row).get(i).state == game.STATE_NONE) {\n canCreateOp = true;\n } else if (game.gridMap.get(origin.row).get(i).state == game.STATE_FINAL && canCreateOp) {\n originOpposite.add(game.gridMap.get(origin.row).get(i));\n break;\n }\n }\n }\n\n noLine = true;\n\n if (originOpposite.size() == 0) {\n originOpposite.add(falsePiece);\n }\n\n return originOpposite;\n }", "Direction invert() {\n switch (this) {\n case NORTH: return SOUTH;\n case SOUTH: return NORTH;\n case EAST: return WEST;\n case WEST: return EAST;\n case NORTH_EAST: return SOUTH_WEST;\n case NORTH_WEST: return SOUTH_EAST;\n case SOUTH_EAST: return NORTH_WEST;\n case SOUTH_WEST: return NORTH_EAST;\n default: return NULL;\n }\n }", "private static Position getRightBottomNeighbor(Position curr, int side) {\n int newX = curr.getX() + getNumElement(0, side) + getNumSpacePerSide(0, side) + 1;\n int newY = curr.getY() - side;\n return new Position(newX, newY);\n }", "public Direction getMove() {\n\n // If 'count' is >= 3, then reset 'value' for next random direction.\n if (this.count >= 3) {\n this.value = this.generator.nextInt(4); // new value\n this.count = 0; // reset count to 0\n }\n \n ++this.count; // increment count for each call\n if (this.value == 0) {\n return Direction.NORTH;\n }\n else if (this.value == 1) {\n return Direction.SOUTH;\n }\n else if (this.value == 2) {\n return Direction.WEST;\n }\n else { // if value == 3\n return Direction.EAST;\n }\n }", "Iterable<Long> adjacent(long v) {\n return world.get(v).adj;\n }", "protected final Cell getCell(final Cell cell, final int direction) {\r\n\t\tOptional<Cell> optionalCell = cell.getAdjacent(direction);\r\n\t\tif (optionalCell.isPresent()) {\r\n\t\t\treturn optionalCell.get();\r\n\t\t} else {\r\n\t\t\treturn cell;\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic Direction getMove() {\n if (ticks < MAX_TICKS_PER_ROUND - 100) {\n Direction[] dirs = Direction.values();\n return dirs[random.nextInt(dirs.length)];\n } else {\n // Move towards boat\n int deltaX = 0;\n int deltaY = 0;\n if (currentLocation.getX() < 0)\n deltaX = 1;\n else if (currentLocation.getX() > 0)\n deltaX = -1;\n\n if (currentLocation.getY() < 0)\n deltaY = 1;\n else if (currentLocation.getY() > 0)\n deltaY = -1;\n\n if (deltaX > 0 && deltaY == 0) {\n return Direction.E;\n } else if (deltaX > 0 && deltaY > 0) {\n return Direction.NE;\n } else if (deltaX > 0 && deltaY < 0) {\n return Direction.SE;\n } else if (deltaX == 0 && deltaY == 0) {\n return Direction.STAYPUT;\n } else if (deltaX == 0 && deltaY < 0) {\n return Direction.N;\n } else if (deltaX == 0 && deltaY > 0) {\n return Direction.S;\n } else if (deltaX < 0 && deltaY == 0) {\n return Direction.W;\n } else if (deltaX < 0 && deltaY > 0) {\n return Direction.NW;\n } else if (deltaX < 0 && deltaY < 0) {\n return Direction.NE;\n } else {\n throw new RuntimeException(\"I HAVE NO IDEA\");\n }\n }\n\t}", "Optional<Direction> getDirection();", "public static Offset getOffset(String direction) {\n switch (direction) {\n case Direction.NORTH:\n return new Offset(0, -100);\n case Direction.EAST:\n return new Offset(100, 0);\n case Direction.SOUTH:\n return new Offset(0, 100);\n case Direction.WEST:\n return new Offset(-100, 0);\n default:\n return null;\n }\n }", "public interface Direction {\n /**\n * @param pos The position to apply the function to\n * @return A new position that was transformed from the passed in position\n */\n public Position apply(Position pos);\n \n /**\n * @return The opposite direction to the direction instance it was called on\n */\n public Direction getOpposite();\n}", "public Place follow() {\n\t\t// Confirm this works...\n\t\tif (this.locked == false)\t\t\t\n\t\t\treturn to;\n\t\t// Locked, return original\n\t\t//System.out.println(\"\\nThat direction is locked. Find the key and use it!\");\n\t\tNetwork.netPrintln(\"\\nThat direction is locked. Find the key and use it!\");\n\t\treturn from;\n\t}", "public Location to_the(Direction d) {\n return destinations.get(d);\n }", "private int getDist(int x, int y, int direction) {\n\t\tint Spaces = 0;\n\t\tif(direction == 0)\n\t\t{\n\t\t\t\n\t\t\tPoint nextPoint = new Point(x, y++);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x, y++);\n\t\t\t}\n\t\t}\n\t\tif(direction == 1)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x++, y);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x++, y);\n\t\t\t}\n\t\t}\n\t\tif(direction == 2)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x--, y);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x--, y);\n\t\t\t}\n\t\t}\n\t\tif(direction == 3)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x, y--);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x, y--);\n\t\t\t}\n\t\t}\n\t\treturn Spaces;\n\t}", "public abstract Point adjPoint(Point p, Direction d);", "private Cell nextNotVisitedCell(Cell current) {\n if (current.isValidDirection(LEFT) && !cells[current.col - 1][current.row].visited)\n return cells[current.col - 1][current.row];\n\n // Check whether the right cell is visited, if there is one.\n if (current.isValidDirection(RIGHT) && !cells[current.col + 1][current.row].visited)\n return cells[current.col + 1][current.row];\n\n // Check whether the cell above is visited, if there is one.\n if (current.isValidDirection(UPWARD) && !cells[current.col][current.row - 1].visited)\n return cells[current.col][current.row - 1];\n\n // Check whether the cell below is visited, if there is one.\n if (current.isValidDirection(DOWNWARD) && !cells[current.col][current.row + 1].visited)\n return cells[current.col][current.row + 1];\n\n return null;\n }", "public int getNextInstruction() {\n\t\t\n\t\tint nextFloor = -1;\n\t\tswitch (elevator.getCurrentDirection()) {\n\t\t\n\t\t//get first element of upQueue that is ABOVE the elevator's current floor\n\t\tcase UP:\n\t\t\tfor (int i = 0; i < upQueue.size() && nextFloor < 0; i++) {\n\t\t\t\tif (upQueue.get(i) >= elevator.getCurrentFloor()) {\n\t\t\t\t\tnextFloor = upQueue.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// change direction if every floor in upQueue is UNDER the elevator's current floor\n\t\t\tif (nextFloor < 0 && downQueue.size() > 0) {\n\t\t\t\tnextFloor = downQueue.get(0);\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t//get first element of downQueue that is UNDER the elevator's current floor\n\t\tcase DOWN:\n\t\t\tfor (int i = 0; i < downQueue.size() && nextFloor < 0; i++) {\n\t\t\t\tif (upQueue.get(i) <= elevator.getCurrentFloor()) {\n\t\t\t\t\tnextFloor = upQueue.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// change direction if every floor in downQueue is ABOVE the elevator's current floor\n\t\t\tif (nextFloor < 0 && upQueue.size() > 0) {\n\t\t\t\tnextFloor = upQueue.get(0);\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn nextFloor;\n\t}", "private void navToPoint(Unit unit){\n\t\tMapLocation currentLocation = unit.location().mapLocation();\n\t\tMapLocation locationToTest;\n\t\tMapLocation targetLocation = orderStack.peek().getLocation();\n\t\tlong smallestDist=1000000000; //arbitrary large number\n\t\tlong temp;\n\t\tDirection closestDirection=null;\n\t\tint i=1;\n\t\t\n\t\tif(gc.isMoveReady(unitID)){\n\t\t\t//first find the direction that moves us closer to the target\n\t\t\tfor(Direction dir : Direction.values()){\n\t\t\t\tif (debug) System.out.println(\"this (\"+dir.name()+\") is the \"+i+\"th direction to check, should get to 9\");\n\t\t\t\tlocationToTest=currentLocation.add(dir);\n\t\t\t\t//make sure it is on the map and is passable\n\t\t\t\tif (debug){\n\t\t\t\t\tSystem.out.println(\"testing this location: \"+locationToTest);\n\t\t\t\t\tSystem.out.println(\"valid move? \"+gc.canMove(unitID, dir));\n\t\t\t\t}\n\t\t\t\tif(gc.canMove(unitID, dir)){\n\t\t\t\t\tif (debug)System.out.println(\"we can indeed move there...\");\n\t\t\t\t\t//make sure the location hasn't already been visited\n\t\t\t\t\tif(!pastLocations.contains(locationToTest)){\n\t\t\t\t\t\tif (debug)System.out.println(\"not been there recently...\");\n\t\t\t\t\t\t//at this point its a valid location to test, check its distance\n\t\t\t\t\t\ttemp = locationToTest.distanceSquaredTo(targetLocation);\n\t\t\t\t\t\tif (debug)System.out.println(\"distance :\"+temp);\n\t\t\t\t\t\tif (temp<smallestDist){\n\t\t\t\t\t\t\tif (debug)System.out.println(\"new closest!\");\n\t\t\t\t\t\t\t//new closest point, update accordingly\n\t\t\t\t\t\t\tsmallestDist=temp;\n\t\t\t\t\t\t\tclosestDirection=dir;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}//end of for-each loop\n\t\t}//end move ready if.\n\t\t\n\t\t//actual movement and maintenance of places recently visited\n\t\tif(closestDirection!=null){\n\t\t\tif (debug){\n\t\t\t\tSystem.out.println(\"found a closest direction, calling navInDirection()\");\n\t\t\t\tSystem.out.println(\"heading \"+closestDirection.name());\n\t\t\t}\n\t\t\tmoveInDirection(closestDirection, unit);\n\t\t\tcleanUpAfterMove(unit);\n\t\t}else{\n\t\t\t//can't get any closer\n\t\t\tif (debug) System.out.println(\"can't get closer, erasing past locations\");\n\t\t\tpastLocations.clear();\n\t\t}\n\t\t\n\t\t//have we arrived close enough?\n\t\tif(unit.location().mapLocation().distanceSquaredTo(targetLocation)<=howCloseToDestination){\n\t\t\t//atTargetLocation=true;\n\t\t\t\n\t\t\t//if order was a MOVE order, it is complete, go ahead and pop it off the stack\n\t\t\tif(orderStack.peek().getType().equals(OrderType.MOVE)){\n\t\t\t\torderStack.pop();\n\t\t\t}\n\t\t\tif (debug) System.out.println(\"Unit \"+unit.id()+\" arrived at destination.\");\n\t\t}\n\t\t\n\t\t;\n\t}", "public boolean areAdjacent(Node n1, Node n2, Direction direction) {\n return areAdjacent(n1, n2);\n }", "public Room getRoomForDirection(@NonNull Action a) {\n if (canMoveToRoomInDirection(a)) {\n return adjacentRooms.get(a);\n }\n return null;\n }", "MazePoint getExpectedMovementPosition(MazePoint point, Direction dir);", "protected final Direction getDirection() {\n\t\treturn tile.getDirection();\n\t}", "public Position go(int dir) {\n\t\tPosition p = new Position(x, y);\n\t\tif (dir == TileGame.UP)\n\t\t\tp.setX(x - 1);\n\t\telse if (dir == TileGame.DOWN)\n\t\t\tp.setX(x + 1);\n\t\telse if (dir == TileGame.LEFT)\n\t\t\tp.setY(y - 1);\n\t\telse if (dir == TileGame.RIGHT)\n\t\t\tp.setY(y + 1);\n\t\treturn p;\n\t}", "private LinkedList<int[]> neighborFinder(){\n LinkedList<int[]> neighborhood= new LinkedList<>();\n int[] curr_loc = blankFinder();\n int x = curr_loc[0];\n int y = curr_loc[1];\n if(x >0){\n neighborhood.add(new int[]{x-1, y});\n }\n if(x < n-1){\n neighborhood.add(new int[]{x+1, y});\n }\n if(y > 0){\n neighborhood.add(new int[]{x, y-1});\n }\n if(y < n-1) {\n neighborhood.add(new int[]{x, y+1});\n }\n\n\n return neighborhood;\n }", "public boolean isAdjacent(int from, int to) {\n//your code here\n// LinkedList<Edge> list = adjLists[from];\n// for (Edge a : list) {\n// if(a.from()==from&&a.to()==to){\n// return true;\n// }\n// };\n// return false;\n return pathExists(from, to);\n }", "protected Direction selectMove() {\n Map<Integer, Direction> positive, negative;\n // Add the directions that contains negative stations in a negative set\n // And every other direction in a positive set\n positive = new HashMap<Integer,Direction>(16);\n negative = new HashMap<Integer,Direction>(16);\n for (Direction d : Direction.directions) {\n int result = checkMove(d);\n if (result == 1) {\n positive.put(positive.size(), d);\n } else if (result == 0) {\n negative.put(negative.size(), d);\n } else {\n continue;\n }\n }\n // If there is no positive move, choose a RANDOM negative move\n if (positive.isEmpty()) {\n return negative.get(rand.nextInt(negative.size()));\n } else { // Otherwise choose a RANDOM positive move\n return positive.get(rand.nextInt(positive.size()));\n }\n }", "public Square[] adjacentCells() {\n\t\tArrayList<Square> cells = new ArrayList <Square>();\n\t\tSquare aux;\n\t\tfor (int i = -1;i <= 1; i++) {\n\t\t\tfor (int j = -1; j <= 1 ; j++) {\n\t\t\t\taux = new Square(tractor.getRow()+i, tractor.getColumn()+j); \n\t\t\t\tif (isInside(aux) && abs(i+j) == 1) { \n\t\t\t\t\tcells.add(getSquare(aux));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn cells.toArray(new Square[cells.size()]);\n\t}", "public Directions getDirectionsOfHits() {\n\t\tList<Coordinate> woundPositions = getWoundPositions();\n\t\tif (woundPositions.get(0).getxPosition() == woundPositions.get(1).getxPosition())\n\t\t\treturn Directions.NORTH;\n\t\telse\n\t\t\treturn Directions.WEST;\n\t}", "private Place getFollowPlace(Element passageElement, ArrayList<Place> places) {\n Place follow = null;\n for (int i = 0; i <= places.size() - 1; i++) {\n if (passageElement.getElementsByTagName(\"connectTo\").item(0).getTextContent()\n .equals(places.get(i).getName())) {\n follow = places.get(i);\n }\n }\n return follow;\n }", "public Square step() {\n // TODO\n \tSquare c = exploreList.getNext();\n \tSquare realSquare = sea.getSea()[c.getRow()][c.getCol()];\n // check for if we are visited, if so return to skip processing current square\n \tif(realSquare.isVisited()) {\n \t\treturn c;\n \t\t\n \t}\n \trealSquare.setVisited();\n \tfor(Square neighs : sea.getAdjacentArea(realSquare)) {\n \t\tif(neighs.getPrevious() ==null) {\n \n \t\tneighs.setPrevious(c);\n \t\texploreList.add(neighs);\n \t\t}\n\t\telse {\n\t\tif(!neighs.isVisited()) {\n \t\t\tSquare n = new Square(neighs.getRow(), neighs.getCol(), neighs.getType());\n \t\t\tn.setPrevious(c);\n \t\t\texploreList.add(n);\n}\n\t\t}\n \t}\n \treturn c;\n\n }", "public List<Location> neighbors (Location pos);", "private static Square[] reachableAdjacentSquares\n (GameBoard board, Square currLoc, int pno) {\n return reachableAdjacentSquares(board, currLoc, pno, -1, 0,true);\n }" ]
[ "0.7409633", "0.7316833", "0.6999934", "0.66991216", "0.6462146", "0.6167674", "0.6163292", "0.60133946", "0.5964488", "0.5937064", "0.5918009", "0.5840568", "0.5833862", "0.5819807", "0.58157957", "0.5811974", "0.5804119", "0.578976", "0.5788456", "0.5757779", "0.57337993", "0.57332516", "0.5725033", "0.5722879", "0.5691159", "0.56622607", "0.56609195", "0.56493473", "0.56488913", "0.5621493", "0.56195587", "0.56135666", "0.560399", "0.5603278", "0.55903417", "0.55899876", "0.5585394", "0.5570526", "0.556687", "0.555661", "0.5554016", "0.55518055", "0.55392987", "0.5501925", "0.54924035", "0.54764867", "0.54759", "0.54738194", "0.5473221", "0.5468469", "0.5467663", "0.54530984", "0.5452684", "0.5448561", "0.5444728", "0.5421044", "0.5418845", "0.5410729", "0.5409591", "0.5401149", "0.5398461", "0.5376557", "0.53751606", "0.5373224", "0.5369834", "0.5360608", "0.5359351", "0.53516006", "0.5350092", "0.5349612", "0.53477037", "0.53445715", "0.5343431", "0.53261197", "0.5323538", "0.5321298", "0.5309704", "0.5301306", "0.5298162", "0.5292146", "0.5289311", "0.52863497", "0.52806306", "0.527911", "0.52703977", "0.52673084", "0.526373", "0.5263377", "0.5251919", "0.5243657", "0.5235795", "0.52244216", "0.5219962", "0.5216261", "0.52117336", "0.52116525", "0.5209521", "0.5192886", "0.51919633", "0.5188514" ]
0.57960844
17
Returns true only for the special "Wall" place
public boolean isWall();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isWall () {\n if (this.equals(SquareType.WALL))\n return true;\n else\n return false;\n }", "private boolean seesWall() {\n\t\treturn getFilteredData() <= WALL_DIST;\n\t}", "private boolean atLeastOneNonWallLocation() {\n\t\tfor (int x = 0; x < this.map.getMapWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.map.getMapHeight(); y++) {\n\n\t\t\t\tif (this.map.getMapCell(new Location(x, y)).isWalkable()) {\n\t\t\t\t\t// If it's not a wall then we can put them there\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 boolean isWall()\n\t{\n\t\treturn block == Block.HORIZONTAL_WALL || block == Block.VERTICAL_WALL\n\t\t\t\t|| block == Block.BOT_LEFT_TOP_RIGHT_WALL\n\t\t\t\t|| block == Block.BOT_RIGHT_TOP_LEFT_WALL || isGhostGate();\n\t}", "public boolean liesOnWall() {\n return getBaseParameters().getWorld()[this.getX()][this.getY()] == getBaseParameters().getWall();\n }", "public boolean isWall() {\n return type == CellType.WALL;\n }", "public boolean isWall() {\r\n return getObjectGroup() == ObjectGroup.WALL;\r\n }", "private boolean nextIsWall()\n {\n return this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].isHasWall();\n }", "private boolean wall(int cell) {\n\t\treturn cell >= 0 && (cell >= size || DungeonTileSheet.wallStitcheable(Dungeon.level.map[cell]));\n\t}", "protected boolean isWall2()\n {\n\n if(isTouching(Wall.class)) //&&!isTouching(Door.class))\n return true;\n /*else if(isTouching(Door.class))\n {\n Door d = (Door)getOneIntersectingObject(Door.class);\n if(d.alreadyOpened==false)\n return true;\n else\n return false;\n }*/\n else\n return false;\n }", "public boolean isWall(Position p) {\r\n try {\r\n if (mazeData[p.getX()][p.getY()] == WALL)\r\n return true;\r\n }catch (ArrayIndexOutOfBoundsException e ){}\r\n return false;\r\n }", "protected boolean didHitWall() {\n return hitWall && !SnakeGame.getHasWarpWalls();\n\n }", "public boolean checkWallCollision(){\n\t\tif(Physics.hitWall(this, game.getBrickList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\tif(Physics.hitPlaceHolder(this, game.getPlaceHolderList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void checkWalls() {\n\t\tcheckSideWalls();\n\t\tcheckTopWall();\n\t\tcheckBottomWall();\n\t}", "public boolean isWall(Orientation orientation) {\n\t\tfor(Edge edge : neighbors) {\n\t\t\tif(edge.getDirection() == orientation) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean collisionWithHorizontalWall() {\n return (xPos + dx > RIGHT_BORDER || xPos + dx < 0);\n }", "public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\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\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\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\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\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\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isCobblestoneWall() {\n return this.type == Type.COBBLESTONEWALL;\n }", "private boolean checkSurroundedByWalls(int x, int y) {\n \n int neighborsCount = 0;\n \n if (x > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x - 1, y) &&\n gameboard.getObjectAtSquare(x - 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (x < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x + 1, y) &&\n gameboard.getObjectAtSquare(x + 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y - 1) &&\n gameboard.getObjectAtSquare(x, y - 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y + 1) &&\n gameboard.getObjectAtSquare(x, y + 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n return neighborsCount == 4;\n \n }", "public boolean isWalkable() {\n return type != CellType.WALL && isInBoundaries();\n }", "public boolean hitsWall(Entity e, ICollisionArea box) {\n\t\t// prevent playerfish from leaving the screen\n\t\tif (e instanceof PlayerFish) {\n\t\t\treturn box.isOutside(0, 0, getWidth(), getHeight());\n\t\t} else {\n\t\t\tdouble dw = 2.0 * box.getWidth() + 1;\n\t\t\tdouble dh = 2.0 * box.getHeight() + 1;\n\t\t\treturn box.isOutside(-dw, -dh, getWidth() + dw, getHeight() + dh);\n\t\t}\n\t}", "public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "protected void checkForWalls(int x, int y, ArrayList<Position> walls) {\n int x1 = x - 1;\n int x2 = x + 2;\n int y1 = y - 1;\n int y2 = y + 2;\n\n if (x == 0) // We want to avoid an OutOfBounds exception\n x1 = x;\n if (x == sizeOfFloor - 1)\n x2 = sizeOfFloor;\n if (y == 0)\n y1 = y;\n if (y == sizeOfFloor - 1)\n y2 = sizeOfFloor;\n\n\n for (int i = x1; i < x2; i++) {\n for (int j = y1; j < y2; j++) {\n if (layout[i][j].getContent() == 'a')\n walls.add(layout[i][j]);\n }\n }\n }", "public boolean isWallDetected(Block block, Player player) {\n if (TownyAPI.getInstance().getTownBlock(block.getLocation()) == null) {\n if (player != null) {\n player.sendMessage(ChatColor.RED + \"The wall must be built in claimed territory.\");\n }\n return false; // Exit if it's not within a claimed territory\n }\n\n int count = 0;\n int maxCount = 384;\n boolean checked = false;\n while (count <= maxCount) {\n if (block.getY() + count <= 300) {\n Block targetAbove = block.getWorld().getBlockAt(block.getX(), block.getY() + count, block.getZ());\n if (isValidWallBlock(targetAbove)) return true;\n checked = true;\n }\n\n if (block.getY() - count >= -64) {\n Block targetBelow = block.getWorld().getBlockAt(block.getX(), block.getY() - count, block.getZ());\n if (isValidWallBlock(targetBelow)) return true;\n checked = true;\n }\n\n if(!checked) return false;\n count += 2;\n }\n return false;\n }", "public boolean checkWallCollision(String dir){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t// detects the color of the map, return true if it is blue(wall)\r\n\t\tif(dir.equals(\"up\")){//check wall on top if pacman is moving up\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"down\")){//check wall down if pacman is moving down\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"left\")){//check wall left if pacman is moving left\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"right\")){//check wall right if pacman is moving right\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean aboveWall(int yCoord) {\n return (yCoord >= (yStart + ySize));\n }", "public boolean checkIfBlocked(){\n\t\tsetNextXY();\n\t\t/*if(Physics.hitWall(this, game.wi)){\n\t\t\tblocked=true;\n\t\t}\n\t\telse{\n\t\t\tblocked=false;\n\t\t}\n\t\t*/\n\t\t\n\t\ttry{\n\t\t\tif(game.getController().wallArray[lastX][lastY]||game.getController().wallArray[nextX][nextY]){\n\t\t\t\treturn true;\n\t\t\t}\t\n\t\t}catch(IndexOutOfBoundsException x){\n\t\t\t\n\t\t\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }", "public boolean isWall(Vertex v, direction dir) {\n\t\treturn g.edgeDoesntExist(v, dir);\n\t}", "public boolean checkWest(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x-i, currentPosition.y));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "protected boolean isSpecial(Player pl, byte type) {\n\t\treturn type == GameMap.WALL || (type == GameMap.SPAWNER && !(pl instanceof Ghost));\n\t}", "public boolean checkWest(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x-i, currentPosition.y));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "private boolean hasAdjacentWalls(View v){\n\t\tDirection[] allDirections = Direction.values();\n\t\tfor (Direction d : allDirections) {\n\t\t\tif (!v.mayMove(d)) {\n\t\t\t\t//Yes, there is an adjacent wall\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isValidWallBlock(Block block) {\n PlotBlockData snapshot = getSnapshotForBlockLocation(block.getLocation());\n\n return block.getType().isSolid() && !block.getType().isTransparent() && !isNatural(block, snapshot) && isOnlyWallDetected(block);\n }", "public HitWall() {\n\t\ttouch_r = Settings.TOUCH_R;\n\t\ttouch_l = Settings.TOUCH_L;\n\t\tpilot = Settings.PILOT;\n\t}", "public void buildWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (world[i][j].equals(Tileset.NOTHING)\n && isAdjacentFloor(i, j)) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }", "public boolean isGameOver ()\n\t{\n\t\t//Each Wall class uses teh isPenetrated () method to check if the\n\t\t//PaperAirplane's vertices have breached the sides of the walls.\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t{\n\t\t\tif (w[i].isPenetrated (p.getXPoints (), p.getYPoints ()))\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//Each SideWall class uses the isPenetrated () method to check if the\n\t\t//PaperAirplane's vertices have breached the sides of the walls.\n\t\tfor (int i = 0; i < sW.length; i++)\n\t\t{\n\t\t\tif (sW[i].isPenetrated (p.getXPoints (), p.getYPoints ()))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean collisionWithVerticalWall() {\n return (yPos + dy > LOWER_BORDER || yPos + dy < 0);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic boolean canSeeBadRobot() {\n\t\tboolean isVisible= false;\n\t\tList<Wall> walls = (List<Wall>) (List<?>) getEngine()\n\t\t\t\t.requestSimObject(simo -> (simo instanceof Wall) && ((Wall) simo).getType() == 2);\n\t\tList<Bounds> bounds = new ArrayList<Bounds>();\n\t\tfor (Wall w : walls) {\n\t\t\tbounds.addAll(w.getBounds());\n\t\t}\n\n\t\t\n\t\tRobot bad = null;\n\t\tList<Robot> objets = (List<Robot>) (List<?>) getEngine().requestSimObject(simo -> (simo instanceof Robot) && (simo != getParent()));\n\n\t\tif (objets.size() == 1) {\n\t\t\tbad = objets.get(0);\n\t\t\t\n\t\t\t//on cr�e donc un cylindre entre les deux positions\n\t\t\t//on pourra afficher le cylindre dans la vue 3D\n\t\t\tCylinder lineOfSight = BorderAndPathGenerator.generateCylinderBetween(bad.getPosition(), Util.rectifi(positionR()));\n\t\t\tlineOfSight.setMaterial(new PhongMaterial(Color.AQUA));\n\n\t\t\t//le robot gentil ne peut pas voire le mauvais robot à plus de 15m \n\t\t\tif(lineOfSight.getHeight() < 15){\n\t\t\t\t\n\t\t\t\tisVisible = BorderAndPathGenerator.intervisibilityBetween(bad.getPosition(), Util.rectifi(positionR()),bounds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn isVisible;\n\t\t} else\n\t\t\treturn false;\n\n\t}", "public boolean win(){\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n if(map[row][col].getSafe() == false && (map[row][col].getVisual().equals(square) || map[row][col].getVisual().equals(bomb))){\r\n return false;\r\n }\r\n if(map[row][col].getSafe() == true && map[row][col].getVisual().equals(flag)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "private boolean isNextToWall(Direction direction){\n switch (direction) {\n case LEFT:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isLeftCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case RIGHT:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isRightCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case UP:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isUpCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case DOWN:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isDownCollision(wall)) {\n return true;\n }\n }\n return false;\n\n default:\n return false;\n\n }\n }", "public boolean isWatershed(){\n\t\tif(getNeighbourCellBodies().size() > 1){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean checkFollowingWall(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView) {\n\t\t\t\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}", "@Override\n public boolean onPlayAtLocation(GameState gameState, Location location) {\n if(gameState.tileAtLocation(location) && !gameState.wallAtLocation(location)) {\n gameState.addWall(location);\n return true;\n }\n else return false;\n }", "public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }", "@SuppressWarnings(\"unchecked\")\n\tpublic boolean canSeeNemesisRobot() {\n\t\tboolean isVisible= false;\n\t\tList<Wall> walls = (List<Wall>) (List<?>) getEngine()\n\t\t\t\t.requestSimObject(simo -> (simo instanceof Wall) && (((Wall) simo).getType() == 2||((Wall) simo).getType() == 3));\n\t\tList<Bounds> bounds = new ArrayList<Bounds>();\n\t\tfor (Wall w : walls) {\n\t\t\tbounds.addAll(w.getBounds());\n\t\t}\n\n\t\t\n\t\tRobot bad = null;\n\t\tList<Robot> objets = (List<Robot>) (List<?>) getEngine().requestSimObject(simo -> (simo instanceof Robot) && (simo != getParent()));\n\n\t\tif (objets.size() == 1) {\n\t\t\tbad = objets.get(0);\n\t\t\t\n\t\t\t//on cr�e donc un cylindre entre les deux positions\n\t\t\t//on pourra afficher le cylindre dans la vue 3D\n\t\t\tCylinder lineOfSight = BorderAndPathGenerator.generateCylinderBetween(bad.getPosition(), Util.rectifi(positionR()));\n\t\t\tlineOfSight.setMaterial(new PhongMaterial(Color.AQUA));\n\n\t\t\t//le robot gentil ne peut pas voire le mauvais robot à plus de 15m \n\t\t\tif(lineOfSight.getHeight() < 10){\n\t\t\t\t\n\t\t\t\tisVisible = BorderAndPathGenerator.intervisibilityBetween(bad.getPosition(), Util.rectifi(positionR()),bounds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn isVisible;\n\t\t} else\n\t\t\treturn false;\n\n\t}", "public boolean isWall(int r, int c, int dest) {\n if (r < 0 || c < 0 || r >= numRows || c >= numCols) {\n throw new IllegalArgumentException(\"arguments out of maze bounds \" + numRows + \", \" + numCols);\n }\n if (dest == 0 && hWalls[r][c] > 0\n || dest == 2 && hWalls[r + 1][c] > 0\n || dest == 1 && vWalls[r][c + 1] > 0\n || dest == 3 && vWalls[r][c] > 0) {\n return true;\n }\n return false;\n }", "private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }", "public boolean hasWall(Cell c1, Cell c2) {\n if (c1.getR() == c2.getR()) {\n // Cells are vertically aligned\n\n if (c1.getC() < c2.getC()) {\n // Cell1 : Cell2\n return c1.hasRightWall();\n }\n else if (c2.getC() < c1.getC()) {\n // Cell2 : Cell1\n return c2.hasRightWall();\n }\n }\n else if (c1.getC() == c2.getC()) {\n // Cells are horizontally aligned\n\n if (c1.getR() < c2.getR()) {\n // Cell1\n // Cell2\n return c1.hasBottomWall();\n }\n else if (c2.getR() < c1.getR()) {\n // Cell2\n // Cell1\n return c2.hasBottomWall();\n }\n }\n return true;\n }", "private boolean hitMyPaddle() {\n if (b.numX - 60 <= 0) {\n if ((b.numY <= (this.touchedY + 260)) && (b.numY >= (this.touchedY - 260))) {\n } else {\n this.wentOffWall();\n }\n return true;\n } else {\n return false;\n }\n }", "public static NPCHouse isBox(World worldIn, BlockPos pos, EnumFacing side)\n\t{\n\t\tBlockPos une = pos, unw = pos, use = pos, usw = pos, dne = pos, dnw = pos, dse = pos, dsw = pos;\n\t\tboolean isBuilding = false;\n\t\t\n\t\t//D-U-N-S-W-E\n\t\tassess:\n\t\tswitch(side.getIndex())\n\t\t{\n\t\t\tcase 0:\t//assume ceiling\n\t\t\t\t\t//while not wall && wood, go in direction to find wall\n\t\t\t\t\t//know is ceiling, so we can us a block at least 2 below && can only click ceiling from inside, so one in any Cardinal direction can be assumed as wood for wall checks\n\t\t\t\t\t//move east and west, checking if wall with 2 blocks down and 1 block north (neCorner\n\t\t\t\t\tune = pos.north().east();\n\t\t\t\t\tunw = pos.north().west();\n\t\t\t\t\tuse = pos.south().east();\n\t\t\t\t\tusw = pos.south().west();\n\t\t\t\t\t//make sure all start corners are actually wood, else fail\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//these are clearly not wooden, but we need them to check for walls, when they become wooden, we have found walls\n\t\t\t\t\tdne = une.down();\n\t\t\t\t\tdnw = unw.down();\n\t\t\t\t\tdse = use.down();\n\t\t\t\t\tdsw = usw.down();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//move corners to find walls in order, north, south, east, west\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//We now have the real upper corners of the building, let's find out if we have a floor! :)\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//for some reason it's going past all of them and I've no fucking clue why.\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//This should be all of our corners. Let's run another check on every wall and floor just to make sure its' not missing pieces on us. :D\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\tcase 1:\t//assume floor\t\n\t\t\t\t\tdne = pos.north().east();\n\t\t\t\t\tdnw = pos.north().west();\n\t\t\t\t\tdse = pos.south().east();\n\t\t\t\t\tdsw = pos.south().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = dne.up();\n\t\t\t\t\tunw = dnw.up();\n\t\t\t\t\tuse = dse.up();\n\t\t\t\t\tusw = dsw.up();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//Start finding Walls in order: N-S-E-W\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Find the Roof!\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\t\t\t\n\t\t\tcase 2: //assume ewWall (North facing side)\n\t\t\t\t\tuse = pos.up().east();\n\t\t\t\t\tusw = pos.up().west();\n\t\t\t\t\tdse = pos.down().east();\n\t\t\t\t\tdsw = pos.down().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = use.north();\n\t\t\t\t\tunw = usw.north();\n\t\t\t\t\tdne = dse.north();\n\t\t\t\t\tdnw = dsw.north();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Now we check the Eastern and Western Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we check for the North Wall\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\t\n\t\t\t\t\tbreak assess;\n\t\t\tcase 3:\t//assume ewWall (South facing Wall - North wall of room)\n\t\t\t\t\tune = pos.up().east();\n\t\t\t\t\tunw = pos.up().west();\n\t\t\t\t\tdne = pos.down().east();\n\t\t\t\t\tdnw = pos.down().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tuse = une.south();\n\t\t\t\t\tusw = unw.south();\n\t\t\t\t\tdse = dne.south();\n\t\t\t\t\tdsw = dnw.south();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Now we check the Eastern and Western Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, dne)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we check for the South Wall\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\t\n\t\t\t\t\tbreak assess;\n\t\t\tcase 4:\t//assume nsWall (West Facing Wall - Eastern wall of room)\n\t\t\t\t\tune = pos.up().north();\n\t\t\t\t\tuse = pos.up().south();\n\t\t\t\t\tdne = pos.down().north();\n\t\t\t\t\tdse = pos.down().south();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tunw = une.west();\n\t\t\t\t\tusw = use.west();\n\t\t\t\t\tdnw = dne.west();\n\t\t\t\t\tdsw = dse.west();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First we check the Ceiling and Floor\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Next we are gonna check the North and South Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, dne)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we move West!\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\tcase 5:\t//assume nsWall (East Facing Wall - Western wall of room)\n\t\t\t\t\tunw = pos.up().north();\n\t\t\t\t\tusw = pos.up().south();\n\t\t\t\t\tdnw = pos.down().north();\n\t\t\t\t\tdsw = pos.down().south();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = unw.east();\n\t\t\t\t\tuse = usw.east();\n\t\t\t\t\tdne = dnw.east();\n\t\t\t\t\tdse = dsw.east();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First we check the Ceiling and Floor\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Next we are gonna check the North and South Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we move East!\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t}\n\t\tNPCHouse house =new NPCHouse(unw, une, usw, use, dnw, dne, dsw, dse, isBuilding);\n\t\treturn house;\n\t}", "public boolean checkSouth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y-i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean checkSouth(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y-i));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public boolean didHitMazeWall() {\n if (!SnakeGame.getHasMazeWalls()) { return false; }\n // AMD: has the snake hit the maze wall?\n boolean didHit = false;\n //MazeWall mw = DrawSnakeGamePanel.mw1;\n for (MazeWall mw : DrawSnakeGamePanel.getGameWalls()) {\n // AMD: our decision depends partly on the snake's direction & partly on the line's orientation\n switch (currentHeading) {\n case DIRECTION_UP: {\n if (mw.getV_or_h() == 'h' && mw.getGridX() == this.snakeHeadX && mw.getGridY() == this.snakeHeadY) {\n didHit = true;\n }\n break;\n }\n case DIRECTION_DOWN: {\n if (mw.getV_or_h() == 'h' && mw.getGridX() == this.snakeHeadX && mw.getGridY() == this.snakeHeadY + 1) {\n didHit = true;\n }\n break;\n }\n case DIRECTION_LEFT: {\n if (mw.getV_or_h() == 'v' && mw.getGridX() == this.snakeHeadX && mw.getGridY() == this.snakeHeadY) {\n didHit = true;\n }\n break;\n }\n case DIRECTION_RIGHT: {\n if (mw.getV_or_h() == 'v' && mw.getGridX() == this.snakeHeadX + 1 && mw.getGridY() == this.snakeHeadY) {\n didHit = true;\n }\n break;\n }\n default: {\n //FINDBUGS: another switch case with no default. This one is fine, four clear situations.\n // Ultimately, shouldn't get here: leave something here that can be turned on for debugging:\n // System.out.println(\"Invalid direction detected in Snake.didhitmazewall()!\");\n break;\n }\n }\n // if the current wall under consideration has been hit, we need to exit the loop.\n if (didHit) { break; }\n }\n return didHit;\n }", "public void checkWallCollision(Wall wall) {\n\t\t// check to see if enemy is colliding with wall.\n\t\t// Log.d(TAG,\"Front of character: \" + (x+xSpeed+width) +\n\t\t// \", edge of wall: \" + wall.getX());\n\t\t// check if at wall only when checking isDestroyed (for true value). if\n\t\t// moving and wall is destroyed won't pass first if check and won't ever\n\t\t// get set to atWall\n\t\tif (Rect.intersects(new Rect(x + xSpeed, y - (height + ySpeed), x\n\t\t\t\t+ width + xSpeed, y - ySpeed), wall.getStructure())\n\t\t\t\t&& enemyState == EnemyState.moving && !wall.isDestroyed()) {\n\t\t\tLog.d(TAG, \"Enemy x: \" + x);\n\t\t\tint diff = (x + xSpeed) - (wall.getX() + wall.getWidth());\n\t\t\tLog.d(TAG, \"Difference: \" + diff);\n\t\t\tx += xSpeed - diff;\n\t\t\tLog.d(TAG, \"Enemy new x: \" + x);\n\t\t\tLog.d(TAG, \"Edge of wall: \" + (wall.getX() + wall.getWidth()));\n\t\t\tthis.setEnemyState(EnemyState.atWall);\n\t\t} else if (Rect.intersects(new Rect(x + xSpeed, y - (height + ySpeed),\n\t\t\t\tx + width + xSpeed, y - ySpeed), wall.getStructure())\n\t\t\t\t&& enemyState == EnemyState.atWall && wall.isDestroyed()) {\n\t\t\tthis.setEnemyState(EnemyState.moving);\n\t\t}\n\t}", "private static boolean checkWin() {\n\t\tfor (int i = 0; i < nRows; i++)\n\t\t\tfor (int j = 0; j < nColumns; j++) {\n\t\t\t\tCell cell = field.getCellAt(i, j);\n\t\t\t\tif (cell.hasMine() && !cell.hasSign())\t // if the cell has a mine\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// but has no flag\n\t\t\t\t\treturn false;\n\t\t\t\tif (cell.getFlag() >= 0 && !cell.getVisiblity()) // if the cell has no\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mine in it but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it is not visible\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\twin = gameOver = true;\n\t\treturn true;\n\t}", "public boolean canMove(int forX , int forY)\n {\n\n\n int tankX = locX + width/2;\n int tankY = locY + height/2;\n\n\n for(WallMulti wall : walls)\n {\n if(wall.getType().equals(\"H\"))\n {\n\n int disStart = (wall.getX()-tankX)*(wall.getX()-tankX) + (wall.getY()-tankY)*(wall.getY()-tankY);\n if(disStart<=700)\n {\n int dis2 = (wall.getX()-(tankX+forX))*(wall.getX()-(tankX+forX)) + (wall.getY()-(tankY+forY))*(wall.getY()-(tankY+forY));\n if(dis2<disStart)\n return false;\n }\n\n int disEnd = ((wall.getX()+wall.getLength())-tankX)*((wall.getX()+wall.getLength())-tankX) + (wall.getY()-tankY)*(wall.getY()-tankY);\n if(disEnd<=1700)\n {\n int dis2 = ((wall.getX()+wall.getLength())-(tankX+forX))*((wall.getX()+wall.getLength())-(tankX+forX)) + (wall.getY()-(tankY+forY))*(wall.getY()-(tankY+forY));\n if(dis2<disEnd)\n return false;\n }\n\n if(tankX >= wall.getX() && tankX <= (wall.getX() + wall.getLength()))\n {\n //tank upper than wall\n if( tankY+20 < wall.getY() && wall.getY()-(tankY+40)<=20 )\n {\n if( wall.getY() <= (tankY+20 + forY) )\n {\n return false;\n }\n }\n\n //tank lower than wall\n if( (tankY-35) > wall.getY() && (tankY-35)-wall.getY()<=25 )\n {\n if( wall.getY() >= (tankY - 35 + forY) )\n {\n return false;\n }\n }\n }\n }\n\n if(wall.getType().equals(\"V\"))\n {\n\n int disStart = (wall.getX()-tankX)*(wall.getX()-tankX) + (wall.getY()-tankY)*(wall.getY()-tankY);\n if(disStart<=700)\n {\n int dis2 = (wall.getX()-(tankX+forX))*(wall.getX()-(tankX+forX)) + (wall.getY()-(tankY+forY))*(wall.getY()-(tankY+forY));\n if(dis2<disStart)\n return false;\n }\n\n int disEnd = (wall.getX()-tankX)*(wall.getX()-tankX) + ((wall.getY()+wall.getLength())-tankY)*((wall.getY()+wall.getLength())-tankY);\n if(disEnd<=3600)\n {\n int dis2 = (wall.getX()-(tankX+forX))*(wall.getX()-(tankX+forX)) + ((wall.getY()+wall.getLength())-(tankY+forY))*((wall.getY()+wall.getLength())-(tankY+forY));\n if(dis2<disEnd)\n return false;\n }\n\n\n if(tankY >= wall.getY() && tankY <= (wall.getY() + wall.getLength()))\n {\n //tank at the left side of the wall\n if( tankX+20 < wall.getX() && wall.getX()-(tankX+40)<=20 )\n {\n if( wall.getX() <= (tankX+20 + forX) )\n {\n return false;\n }\n }\n\n //tank lower than wall\n if( (tankX-35) > wall.getX() && (tankX-35)-wall.getX()<=25 )\n {\n if( wall.getX() >= (tankX - 35 + forX) )\n {\n return false;\n }\n }\n }\n }\n }\n return true;\n }", "private static boolean isWallFacingInDirection(int[][] area, int x, int y, Vector2 direction) {\r\n\t\tif(area[x - (int)direction.x][y - (int)direction.y] > 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "private boolean hasLeftWall(View v){\n\t\tswitch(this.facingDirection){\n\t\tcase NORTH:\n\t\t\treturn !v.mayMove(Direction.WEST);\n\t\tcase SOUTH:\n\t\t\treturn !v.mayMove(Direction.EAST);\n\t\tcase WEST:\n\t\t\treturn !v.mayMove(Direction.SOUTH);\n\t\tcase EAST:\n\t\t\treturn !v.mayMove(Direction.NORTH);\n\t\tdefault: return false;\n\t\t}\n\t}", "private boolean isNothingBehind(Direction direction, Box box){\n //TODO wall detection not only boxes\n for(Box temp : boxes){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n for(Wall temp : walls){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n return true;\n }", "public void getWalls() {\n\t\tRandomMapGenerator rmg = new RandomMapGenerator();\n\n\t\tboolean[][] cm = rmg.cellmap;\n\n\t\tfor (int x = 0; x < rmg.width; x++) {\n\t\t\tfor (int y = 0; y < rmg.height; y++) {\n\t\t\t\tif (cm[x][y]) {\n\t\t\t\t\twallArray.add(new Wall(x * 12, y * 12, mode));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean canMoveForward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n if(wall.getY()-locY<=50 && wall.getY()-locY>=0 && degree>=0 && degree<=150)\n {\n ans=false;\n }\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=180 && degree<=360)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n if(wall.getX()-locX<=50 && wall.getX()-locX>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n degree>=90 && degree<=270 )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }", "public boolean isGround() {\n\t return this != WALL && this != BOUNDS;\n\t}", "private void renderPlayerWalls() {\n\t\tfor(List<Tile> list : game.tiles()) {\n\t\t\tfor(Tile tile : list) {\n\t\t\t\t//Why does this not work?!\n\t\t\t\tif(tile.hasWall()) {\n\t\t\t\t\tthis.output[tile.position().y][tile.position().x] = WALL_SIGN;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static Boolean canStillReachEveryCrates(Cells[][] wallBoard, int column, int row)\n\t{\n\t\tif(playerPos.isEmpty())\n\t\t\treturn true;\n\n\t\tBoolean ret = true;\n\n\t\t_PF = new AStarPathFinder(wallBoard);\n\n\t\tfor(Point pos : playerPos)\n\t\t{\n\t\t\tret = (true && _PF.canFindAWay(pcolumn, prow, (int)pos.getX(), (int)pos.getY()));\n\t\t}\n\n\t\treturn ret;\n\t}", "private boolean checkFollowingWall(Coordinate carPos,\n\t\t\t\t\t\t\t\t\t\t WorldSpatial.Direction orientation) {\n\t\t// If it's a traversable trap return false\n\t\tif (map.tileAtRelative(carPos, orientation, -1, 0).isTrap() &&\n\t\t\t!map.tileAtRelative(carPos, orientation, -2, 0).blocking()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Return true if there are any blocking tiles in specific range ahead\n\t\tfor (int i = 1; i <= WALL_THRESHOLD; i++) {\n\t\t\tif (map.tileAtRelative(carPos, orientation, -i, 0).blocking()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private void addWall(int positionX, int positionY) {\n for (int i = Math.max(0, positionX - 1);\n i < Math.min(size.width, positionX + 2); i++) {\n for (int j = Math.max(0, positionY - 1);\n j < Math.min(size.height, positionY + 2); j++) {\n if (world[i][j] == Tileset.NOTHING) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }", "public boolean atWorldEdge()\n {\n if(getX() < 20 || getX() > getWorld().getWidth() - 20)\n return true;\n if(getY() < 20 || getY() > getWorld().getHeight() - 20)\n return true;\n else\n return false;\n }", "public boolean atWorldEdge()\n {\n if(getX() < 20 || getX() > getWorld().getWidth() - 20)\n return true;\n if(getY() < 20 || getY() > getWorld().getHeight() - 20)\n return true;\n else\n return false;\n }", "public void breakWall() {\r\n\tbustedWall = true;\r\n}", "private static boolean isWin()\n {\n boolean win = true;\n for(Ship[] k:map)\n {\n for(Ship o:k)\n {\n if(o.getState()==1)\n win=false;\n }\n }\n return win;\n }", "private boolean doesLineHitWall (Rectangle rect, float x1, float y1, float x2, float y2) {\n\t\tfloat minY = min(y1, y2);\n\t\tif (minY >= rect.y + rect.height + fudge) return false;\n\n\t\t// Does not intersect if maximum y coordinate is above the rectangle.\n\t\tfloat maxY = max(y1, y2);\n\t\tif (maxY < rect.y - fudge) return false;\n\n\t\t// Does not intersect if minimum x coordinate is to the right of the rectangle.\n\t\tfloat minX = min(x1, x2);\n\t\tif (minX >= rect.x + rect.width + fudge) return false;\n\n\t\t// Does not intersect if maximum x coordinate is to the left of the rectangle.\n\t\tfloat maxX = max(x1, x2);\n\t\tif (maxX < rect.x - fudge) return false;\n\n\t\t// And that's good enough, because the robots need to be a bit stupid\n\t\t// when they're near the ends of walls.\n\t\treturn true;\n\t}", "public void checkRep() {\n assert(wall.p1().x() >= BOARD_MIN_BOUND && wall.p1().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p1 must be within in the board\";\n assert(wall.p2().x() >= BOARD_MIN_BOUND && wall.p2().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p2 must be within in the board\";\n assert(wall.p1().y() >= BOARD_MIN_BOUND && wall.p1().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p1 must be within in the board\";\n assert(wall.p2().y() >= BOARD_MIN_BOUND && wall.p2().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p2 must be within in the board\";\n }", "public void onHitWall(int whichWall) {\n\t\t\r\n\t}", "private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\treturn checkEast(currentView);\n\t\tcase NORTH:\n\t\t\treturn checkNorth(currentView);\n\t\tcase SOUTH:\n\t\t\treturn checkSouth(currentView);\n\t\tcase WEST:\n\t\t\treturn checkWest(currentView);\n\t\tdefault:\n\t\t\treturn false;\n\t\t\n\t\t}\n\t}", "boolean land();", "public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }", "private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public void buildBoundaryWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (i == 0 || i == worldWidth - 1\n || j == 0 || j == worldHeight - 1) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }", "public Wall() {\n super(false, \"wall\");\n }", "public Wall() {\n\t\tcanHold = false;\n\t\tisPassable = false;\n\t\ttype = TileTypes.WALL;\n\t}", "public boolean canMoveBackward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n //tank upper than wall\n if(wall.getY()-locY<=60 && wall.getY()-locY>=0 && degree>=270 && degree<=360)\n {\n ans=false;\n }\n //tank lower than wall\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=0 && degree<=180)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n //tank at the left side of the wall\n if(wall.getX()-locX<=60 && wall.getX()-locX>=0 &&\n (degree>=90 && degree<=270) )\n {\n ans=false;\n }\n //tank at the right side of the wall\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }", "boolean invisiWallCollisions(Direction direction, Board board) {\n\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"Checking whether the actor is colliding with a wall...\");\n\n if (board instanceof MenuBoard) {\n\n if (direction == Direction.LEFT) {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isLeftCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the LEFT of the actor, returning.\");\n return true;\n }\n }\n return false;\n } else if (direction == Direction.RIGHT) {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isRightCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the RIGHT of the actor, returning.\");\n return true;\n }\n }\n return false;\n } else if (direction == Direction.UP) {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isTopCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the TOP of the actor, returning.\");\n return true;\n }\n }\n return false;\n } else /* if (dir == Direction.DOWN) */ {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isBottomCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the BOTTOM of the actor, returning.\");\n return true;\n }\n }\n\n }\n }\n\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There are no walls blocking the actor, returning.\");\n return false;\n }", "public boolean isWarp()\n\t{\n\t\treturn block == Block.WARP_SPACE;\n\t}", "public boolean wallCollision(int x, int y, float newX, float newY){\r\n\t\t\r\n\t\tint wall = 1048575; // in binary is 20 consecutive 1s (2^20 -1)\r\n\t\tint start = 0;\r\n\t\tint numChecks;\r\n\t\tint xDiff = (x * 20) - Math.round(newX);\r\n\t\tint yDiff = (y * 20) - Math.round(newY);\r\n\t\t\r\n\t\t// this shifts the correct objects bounding box by the correct amount. (ie deals with the x-axis)\r\n\t\tif (xDiff > 0){\r\n\t\t\twall = wall >> xDiff;\r\n\t\t} else {\r\n\t\t\twall = wall << (-xDiff);\r\n\t\t}\r\n\t\t\r\n\t\t// this gets correct range in hight to be testsed. (ie deals with the y-axis)\r\n\t\tif (yDiff > 0) {\r\n\t\t\tnumChecks = this.height - yDiff;\r\n\t\t} else {\r\n\t\t\tnumChecks = 20 + yDiff;\r\n\t\t\tstart = - yDiff;\r\n\t\t}\r\n\r\n\t\t// runs through bitMasks to detect collision.\r\n\t\tfor (int i = 0; i < numChecks; i++){\r\n\t\t\t// compare row of \r\n\t\t\tif( ((this.bitMask.bits[start]) & wall) != 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// increments the indexes of the bitmasks.\r\n\t\t\tstart++;\r\n\t\t}\r\n\t\t\r\n\t\t// Return false if no collision.\r\n\t\treturn false;\r\n\t}", "public Square createWall() {Collect.Hit(\"BoardFactory.java\",\"createWall()\"); Collect.Hit(\"BoardFactory.java\",\"createWall()\", \"1976\");return new Wall(sprites.getWallSprite()) ; }", "private boolean isBallCollideRightWall(GOval ball) {\n return ball.getX() + 2 * BALL_RADIUS >= getWidth();\n }", "protected boolean checkForWin() {\r\n \t\r\n if (squaresRevealed == this.width * this.height - this.mines) {\r\n finishFlags();\r\n finish(GameStateModel.WON);\r\n return true;\r\n } \t\r\n \t\r\n return false;\r\n \t\r\n }", "private boolean isBallCollideLeftWall(GOval ball) {\n return ball.getX() <= 0;\n }", "public boolean isBlackHole(){\r\n\t\tboolean flag = false;\r\n\t\tif (isSuperGiant() == true){\r\n\t\t\tflag = true;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "private boolean isFullWest()\r\n\t{\r\n\t\treturn (westElem == maxSize);\r\n\t}", "public boolean canGoCurrentTile(String currentObjectName, Direction dir) {\n if (currentObjectName.contains(\"Wall\")) {\n return !currentObjectName.toUpperCase().contains(dir.toString().toUpperCase());\n }\n return true;\n }", "public static void CheckArea(double wallSize, Scene scene, Group root)\r\n\t{ //check player area\r\n\t\tfor (int a = 0; a < GenerateMaze.rows; a++){ \r\n\t\t\tfor (int b = 0; b < GenerateMaze.columns; b++){\t\t\t\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 0){ //if player is in open\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2)){\r\n\t\t\t\t\t\tSystem.out.println(\"Open\"); //debug open\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tif (lastLocX != locX) lastLocX = locX;\r\n\t\t\t\t\t\tif (lastLocY != locY) lastLocY = locY;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 1){ //if player is in wall\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2) && camY >=-wallSize/2){\r\n\t\t\t\t\t\tSystem.out.println(\"Wall\");//debug wall\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tCollision.Collide(GameController.camera, wallSize, b, a, false);\r\n\t\t\t\t\t\tSystem.out.println(\"Wall Collided at: \" + b + \", \" + a);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 3){ //if player is at start\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2)){\r\n\t\t\t\t\t\tSystem.out.println(\"At Start\");//debug start\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tif (lastLocX != locX) lastLocX = locX;\r\n\t\t\t\t\t\tif (lastLocY != locY) lastLocY = locY;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 9){ //if player is at finish\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2)){\r\n\t\t\t\t\t\tSystem.out.println(\"At Finish, maze completed!\");//debug finish\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tif (lastLocX != locX) lastLocX = locX;\r\n\t\t\t\t\t\tif (lastLocY != locY) lastLocY = locY;\r\n\t\t\t\t\t\tFinished = true; //set finish to true\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\tif (camX < 0 && camZ < 0) {\r\n\t\t\tSystem.out.println(\"Player isn't even on map\"); //debug player isn't on map\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"Current location: \" + locX + \", \" + locY + \". \"\r\n\t\t\t\t\t+ \"Last Recorded Position: \" + lastLocX + \", \" + lastLocY); //debug player current position in maze\r\n\t\t}\r\n\t}", "public boolean isLegalJump(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\t\tPlayer white = currentGame.getWhitePlayer();\n\t\t\tint whiteCol = curPos.getWhitePosition().getTile().getColumn();\n\t\t\tint whiteRow = curPos.getWhitePosition().getTile().getRow();\n\t\t\tint blackCol = curPos.getBlackPosition().getTile().getColumn();\n\t\t\tint blackRow = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\tint rChange = 0, cChange = 0;\n\t\t\tif(dir == MoveDirection.North) rChange = -2;\n\t\t\telse if(dir == MoveDirection.South) rChange = 2;\n\t\t\telse if(dir == MoveDirection.East) cChange = 2;\n\t\t\telse if(dir == MoveDirection.West) cChange = -2;\n\t\t\telse return false;\n\t\t\t\n\t\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\t\t\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || blackCol != (whiteCol + (cChange / 2) ) ) return false;\n\t\t\t\t\twhiteCol += cChange;\n\t\t\t\t\tif(whiteCol < 1 || whiteCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (whiteCol -cChange) + tmp;\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == whiteRow || w.getTargetTile().getRow() == whiteRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || blackRow != (whiteRow + (rChange / 2) ) ) return false;\n\t\t\t\t\twhiteRow += rChange;\n\t\t\t\t\tif(whiteRow < 1 || whiteRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (whiteRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == whiteCol || w.getTargetTile().getColumn() == whiteCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t} else {\n\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || whiteCol != (blackCol + (cChange / 2) ) ) return false;\n\t\t\t\t\tblackCol += cChange;\n\t\t\t\t\tif(blackCol < 1 || blackCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (blackCol -cChange) + tmp;\n\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == blackRow || w.getTargetTile().getRow() == blackRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\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//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || whiteRow != (blackRow + (rChange / 2) ) ) return false;\n\t\t\t\t\tblackRow += rChange;\n\t\t\t\t\tif(blackRow < 1 || blackRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (blackRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == blackCol || w.getTargetTile().getColumn() == blackCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t}\n\t\t\treturn true;\r\n }", "public boolean isDraw(){\n String config = gameBoardToString();\n\n // Checks to see if there any more empty squares in the gameBoard. Returns -1 if 'g' not found in String config,\n // meaning there are no more empty squares in the gameBoard\n int val = config.indexOf('g');\n\n // Return true if no more empty squares. Otherwise, false.\n if (val == -1){\n return true;\n }\n else {\n return false;\n }\n }", "private static boolean isCorner(int[][] area, int x, int y, boolean countEdges) {\r\n\t\t// Find the coordinates of the spaces adjacent to this one\r\n\t\tint[][] around = { { x - 1, y },// Left 1\r\n\t\t\t\t{ x + 1, y },// Right 1\r\n\t\t\t\t{ x, y - 1 },// Down 1\r\n\t\t\t\t{ x, y + 1 } };// Up 1\r\n\t\tint walls = 0; // Create a variable to store how many walls are next to\r\n\t\t\t\t\t // the current space\r\n\t\tfor (int[] coords : around) {// test each adjacent space\r\n\t\t\tif ((coords[1] < 0) || (coords[0] >= area.length)\r\n\t\t\t\t\t|| (coords[0] < 0) || (coords[1] >= area[x].length)) {\r\n\t\t\t\t// If this square is out of the map then it counts as a wall\r\n\t\t\t\tif (countEdges) {\r\n\t\t\t\t\twalls++;\r\n\t\t\t\t}\r\n\t\t\t} else if (area[coords[0]][coords[1]] >= 1) {\r\n\t\t\t\t// The space has a wall next to it\r\n\t\t\t\twalls++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (walls == 2 || walls == 3) { // if the block is surrounded by 2 or 3\r\n\t\t\t\t\t\t\t\t\t\t// walls, it's a corner \r\n\t\t\t\r\n\t\t\t//Check to see if this wall is just a corridor\r\n\t\t\tif( (isCorridor(area, around[0][0],around[0][1], around[1][0], around[1][1])) && \r\n\t\t\t\t\t(!isCorridor(area, around[2][0],around[2][1], around[3][0], around[3][1]))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif( (!isCorridor(area, around[0][0],around[0][1], around[1][0], around[1][1])) && \r\n\t\t\t\t\t(isCorridor(area, around[2][0],around[2][1], around[3][0], around[3][1]))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean canMove (Location loc) {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return false;\n if (!gr.isValid(loc))\n return false;\n Actor neighbor = gr.get(loc);\n return !(neighbor instanceof Wall);\n }", "public boolean addWhiteWallsOnBoard(Wall aWhiteWallsOnBoard)\n {\n boolean wasAdded = false;\n if (whiteWallsOnBoard.contains(aWhiteWallsOnBoard)) { return false; }\n whiteWallsOnBoard.add(aWhiteWallsOnBoard);\n wasAdded = true;\n return wasAdded;\n }", "public boolean canGo(Vector2 pos, Direction dir) {\n String objectName = getObjectNameOnPos(tiledMap, pos);\n if (canGoCurrentTile(objectName, dir)) {\n Vector2 nextPos = getPosInDirection(pos,dir);\n objectName = getObjectNameOnPos(tiledMap, nextPos);\n\n if (objectName.contains(\"Wall\")) {\n return !objectName.toUpperCase().contains(oppositeOf(dir).toString().toUpperCase());\n }\n }\n else {\n return false;\n }\n return true;\n }" ]
[ "0.8457795", "0.82924813", "0.8240569", "0.8196196", "0.8096751", "0.80736053", "0.8020202", "0.77667874", "0.7657403", "0.7646915", "0.7546653", "0.7533639", "0.74518514", "0.72686934", "0.7196276", "0.711015", "0.7108361", "0.6951069", "0.69353336", "0.69145525", "0.6905453", "0.68939304", "0.6893298", "0.6880145", "0.68524367", "0.6799494", "0.6786782", "0.67760617", "0.6769884", "0.67517173", "0.6735706", "0.6724059", "0.6719061", "0.6710756", "0.66897666", "0.6686586", "0.6680633", "0.6655617", "0.66363794", "0.6615262", "0.6599691", "0.6592714", "0.6584458", "0.65781534", "0.6563008", "0.6559818", "0.655099", "0.65427184", "0.65370303", "0.65350014", "0.65070903", "0.6492069", "0.6486503", "0.64728594", "0.64708596", "0.64657", "0.6465438", "0.6462672", "0.64562106", "0.6453034", "0.6452953", "0.6450103", "0.6437539", "0.643541", "0.6432205", "0.64317155", "0.64173603", "0.6416576", "0.64137733", "0.64137733", "0.6409367", "0.63958836", "0.6392136", "0.6391004", "0.638109", "0.634703", "0.6324508", "0.6316439", "0.6314833", "0.6295416", "0.62899315", "0.62887937", "0.62820554", "0.6280277", "0.62772083", "0.62762153", "0.62720305", "0.6269057", "0.62672454", "0.6265971", "0.6261854", "0.6251464", "0.6251221", "0.62299734", "0.6226162", "0.6222692", "0.6218925", "0.6217065", "0.621478", "0.62106705" ]
0.8393721
1
Returns true only for the special "Cheese" place
public boolean isCheese();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasCheese() {\n return cheese;\n }", "private boolean hasEatenApple() {\r\n return snake.getHead().equals(apple);\r\n }", "public boolean searchEconomyClass()\n\t{\n\t\tfor(int i=0;i<4;i++)\n\t\t{\t\n\t\t\tif(seats[2][i] == false)\n\t\t\t{\n\t\t\t\treturn true;\t\t\t\n\t\t\t}\n\t\t\telse if(seats[3][i] == false)\n\t\t\t{\n\t\t\t\treturn true;\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "public boolean isBreedingItem(ItemStack par1ItemStack)\n {\n return par1ItemStack.getItem() == Items.porkchop;\n }", "boolean hasShoes();", "boolean hasShirt();", "public boolean hasTreasure() {\n Item[] items = getRoomContents();\n for (int i = 0; i < items.length; i++) {\n if (items[i].getDesc().equals(\"A bag filled with ten thousand Galleons.\")) {\n return true;\n }\n }\n return false;\n }", "public boolean isSpare(){\r\n\t\tif( this.firstThrow + this.secondThrow == 10\r\n\t\t\t&& !this.isStrike())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean verifyitemaddedtowishlist()\n\t{\n\t\tboolean s=driver.findElement(By.xpath(\"//a[@href='/black-white-diamond-heart']\")).getText().contains(\"Black & White Diamond Heart\");\n\t\treturn s;\n\t\t \n\t}", "public boolean isFruit()\n\t{\n\t\treturn block == Block.FRUIT;\n\t}", "boolean isReserved();", "public boolean isWood() {\n return this.type == Type.WOOD;\n }", "public boolean miniWin()\n {\n\treturn (jackpot()\n\t\t||( (! _fruits[0].equals(_fruits[1]))\n\t\t && (! _fruits[1].equals(_fruits[2]))\n\t\t && (! _fruits[0].equals(_fruits[2]))));\n }", "public boolean hasSpecial(){\n return (alg.containSpecial(input.getText().toString()));\n }", "public boolean canBike() {\r\n\t\tif (location == Location.SAFARI || location == Location.TOWN || location == Location.CAVE) {\r\n\t\t\treturn items.containsKey(Bicycle.getBicycleInstance());\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean checkForTreasure(){\n Object obj=charactersOccupiedTheLocation[3];\n if(obj!=null){return true;}\n return false; \n }", "private boolean isAtFish(){\n final RSNPC[] fishing_spots = NPCs.findNearest(\"Fishing spot\");\n if (fishing_spots.length < 1){\n return false;\n }\n return fishing_spots[0].isOnScreen();\n }", "public boolean jackpot()\n {\n\treturn (_fruits[0].equals(_fruits[1]) \n\t\t&& _fruits[1].equals(_fruits[2]));\n }", "private boolean canAddRedTile() {\n\n\t\tif(isAllPiecesEaten(Game.getInstance().getCurrentPlayerColor())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean obligatoryEats(Color pColor){\r\n Point pos = new Point();\r\n for (int i = 0; i < 8; i++){\r\n pos.setFirst(i);\r\n for (int j = 0; j < 8; j++){\r\n pos.setSecond(j);\r\n if(isBlack(pColor) && !isEmpty(pos) && isBlack(pos) && canEats(pos))\r\n return true;\r\n if(isRed(pColor) && !isEmpty(pos) && isRed(pos) && canEats(pos))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean canFish() {\r\n\t\tif (location == Location.SAFARI || location == Location.CAVE) {\r\n\t\t\treturn items.containsKey(FishingRod.getFishingRodInstance());\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private void checkEasterEgg (String word) {\r\n if (word.startsWith (\"IMAC\") || word.equals (\"APPLE\") || word.equals (\"KATZ\") || word.startsWith (\"IPOD\") || word.startsWith (\"IPHONE\")\r\n || word.startsWith (\"MAC\") && !word.startsWith (\"MACR\") && !word.startsWith (\"MACE\")) {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered cannot be recognized\\nSince we are nice, we will add it for you anyways.\",\r\n \"Woah There!\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n }", "boolean canBuy( final Item item )\n {\n return !ship.contains( item ) && item.getPrice() <= credits;\n }", "public boolean isPeace() {\r\n\t\tfor (int i=0; i<piece.size(); i++) {\r\n\t\t\tChessPiece p = piece.get(order[i]);\r\n\t\t\tif (p.chessPlayer.equals(\"black\") || p.chessPlayer.equals(\"white\")) {\r\n\t\t\t\tVector<ChessBoardBlock> blocks = this.getMovablePosition(p);\r\n\t\t\t\tif (blocks.size()>1) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean haveSuit(char suit){\n for (int i=0; i<6; i++)\n if (hand.get(i).suit != suit)\n return false;\n return true;\n }", "public boolean foodDetection() {\n ArrayList<Creature> creatures = world.getCreatureList();\n for (Creature c : creatures) {\n if (c.creatureLocation().equals((x + 1) + \",\" + y) || c.creatureLocation().equals((x - 1) + \",\" + y) ||\n c.creatureLocation().equals(x + \",\" + (y + 1)) || c.creatureLocation().equals(x + \",\" + (y - 1))) {\n //System.out.println(\"Creature Found: \" + c.creatureLocation());\n return true;\n }\n }\n return false;\n }", "static boolean willBuyDrink( boolean isHotOutside , double moneyInPocket) {\n\t\t\n\t\tif (isHotOutside && moneyInPocket >= 10.50) {\n\t\t\treturn true; \n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean checkForLotus(){\n Object obj=charactersOccupiedTheLocation[2];\n if(obj!=null){return true;}\n return false;\n }", "private boolean canAddBlueTile() {\n\t\tint soldierCount=0,queenCount=0;\n\n\n\t\tArrayList<Piece> playerPieces = Board.getInstance().getColorPieces(Game.getInstance().getCurrentPlayerColor());\n\t\tfor(Piece p:playerPieces)\n\t\t{\n\t\t\tif(p instanceof Soldier)\n\t\t\t{\n\t\t\t\tsoldierCount++;\n\t\t\t}\n\t\t\tif(p instanceof Queen)\n\t\t\t{\n\t\t\t\tqueenCount++;\n\t\t\t}\n\t\t}\n\t\treturn (soldierCount == 2 && queenCount == 1);\n\t}", "private boolean canSmelt()\n {\n ItemStack var1 = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);\n if (var1 == null) return false;\n if (this.furnaceItemStacks[2] == null) return true;\n if (!this.furnaceItemStacks[2].isItemEqual(var1)) return false;\n int result = furnaceItemStacks[2].stackSize + var1.stackSize;\n return (result <= getInventoryStackLimit() && result <= var1.getMaxStackSize());\n }", "private boolean isMyPiece(Loc thisSpot) {\n\t\tfor (Loc loc : currentPiece.getLocation()) {\n\t\t\tif (loc.row == thisSpot.row && loc.col == thisSpot.col) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isFood() {\n\t\treturn food > 0;\n\t}", "boolean hasSuit();", "public boolean isAnimalFood(Material item){\r\n\t\tif(item == Material.HAY_BLOCK || item == Material.SEEDS || item == Material.ROTTEN_FLESH || item == Material.RAW_BEEF || item == Material.PORK\r\n\t\t\t\t|| item == Material.RAW_FISH){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private static boolean isAllItemsAreNotSoldOut(List<Chef> foodItemList) {\n boolean result = false;\n for (int i = 0; i < foodItemList.size(); i++) {\n for (int j = 0; j < foodItemList.get(i).getFoodItemList().size(); j++) {\n if (foodItemList.get(i).getFoodItemList().get(j).getAvailQty() == 0 || !foodItemList.get(i).getFoodItemList().get(j).getAvailable()) {\n result = true;\n }\n }\n }\n return result;\n }", "@Override\r\n\tpublic boolean isFruitful() {\r\n\t\treturn true;\r\n\t}", "public boolean isBreedingItem(ItemStack stack) {\n return TEMPTATION_ITEMS.test(stack);\n }", "public boolean isBearish(){\n return (Double.compare(this.open, this.close) > 0) ? true : false;\r\n }", "protected boolean allBoatsArePlaced() {\n for(BoatDrawing boat : boatMap.values()) {\n if (!boat.isPlaced()) {\n return false;\n }\n }\n logMsg(\"click now on 'valider' button to begin game\");\n return true;\n }", "boolean hasHat();", "public boolean usesItem(Item item){\n for (char c : item.getName().toCharArray()){\n if(!content.contains( String.valueOf(c) )){\n return false;\n }else {\n// count++;\n }\n }\n\n// System.out.println(item + \" est utilisé \" + count + \" fois\");\n\n return true;\n\n\n// return content.contains(item);\n }", "public boolean isSuitable(Food food) {\n return food.calculateFitness() < 100;\n }", "public boolean checkSE(String myType, String theirType){\n\n if(theirType.equals(\"Fire\")){\n if(myType.equals(\"Water\")||myType.equals(\"Ground\")||myType.equals(\"Rock\")){\n return true;\n }\n }else if(theirType.equals(\"Water\")){\n if(myType.equals(\"Grass\")||myType.equals(\"Electric\")){\n return true;\n }\n\n }else if(theirType.equals(\"Psychic\")){\n if(myType.equals(\"Bug\")||myType.equals(\"Ghost\")||myType.equals(\"Dark\")){\n return true;\n }\n\n }else if(theirType.equals(\"Bug\")){\n if(myType.equals(\"Fire\")||myType.equals(\"Flying\")||myType.equals(\"Rock\")){\n return true;\n }\n }else if(theirType.equals(\"Electric\")){\n if(myType.equals(\"Ground\")){\n return true;\n }\n\n }else if(theirType.equals(\"Ghost\")){\n if(myType.equals(\"Ghost\")||myType.equals(\"Dark\")){\n return true;\n }\n\n }else if(theirType.equals(\"Dark\")){\n if(myType.equals(\"Fighting\")||myType.equals(\"Bug\")||myType.equals(\"Fairy\")){\n return true;\n }\n\n }\n else if(theirType.equals(\"Grass\")){\n if(myType.equals(\"Fire\")||myType.equals(\"Ice\")||myType.equals(\"Poison\")||myType.equals(\"Flying\")||myType.equals(\"Bug\")){\n return true;\n }\n }\n return false;\n\n }", "public boolean isWin_DragonKingOfArms(){\r\n // player got LordSelachii card\r\n /*Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 5) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }*/\r\n int count = 0;\r\n for(TroubleMarker troubleMarker : discWorld.getTroubleMarker_HASH().values()){\r\n if(troubleMarker.getAreaNumber() != ConstantField.DEFAULT_PIECE_AREA_NUMBER){\r\n count++;\r\n }\r\n }\r\n \r\n if(count >= 8){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n \r\n }", "public boolean hasShoes() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "private static boolean capet(int brown, int garo, int sero) {\n\t\tint sum = 4;\r\n\t\tsum += garo * 2;\r\n\t\tsum += sero * 2;\r\n\t\tif (brown == sum)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "boolean hasEyes();", "@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }", "public boolean isSunk(){\n if(places.isEmpty()){\n //ship cant be sunk if empty\n return false;\n }\n\n //Checks each place in list for hit\n for(Place place : places){\n if(!place.isHit()){\n return false;\n }\n }\n return true;\n }", "public boolean heatPotion() \n\t{\n\t\tint count=0;\n\t\tfor (int i=0; i < ingredients.length(); i++) \n\t\t{\n\t\t\tif (ingredients.charAt(i)=='w') \n\t\t\t{\n\t\t\t\t//take out the water and count that it was there\n\t\t\t\tingredients = ingredients.replace(\"w\", \"\");\n\t\t\t\tcount+=1;\n\t\t\t}\n\t\t}\n\t\t//check that there was water in the potion in order to have it properly heated\n\t\tif (count > 0) \n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\telse\n\t\t\treturn false;\n\t}", "private static boolean checkAlgae(Critter foo) throws InvalidCritterException {\n\t\tboolean x =false;\n\t\ttry {\n\t\t\tList<Critter> tmp = getInstances(\"assignment4.Algae\");\n\t\t\tif(!tmp.isEmpty()){\n\t\t\t\tx=true;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tcatch(assignment4.InvalidCritterException e){\n\n\t\t\tthrow new InvalidCritterException(\"\");\n\t\t}\n\t\treturn x;\n\t}", "public boolean hasShoes() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean needsRepair() {\n if (id == 5509) {\n return false;\n }\n return inventory.contains(id + 1);\n }", "public boolean lookAtWinCard(){\n boolean winCard = false;\n for(Card cards: playerHand){\n if(cards.getCardName().equals(\"Magnetite\")){\n winCard = true;\n }\n }\n return winCard;\n }", "public boolean isAllPiecesEaten(Piece piece) {\n\t\tArrayList<Piece> ediblePieces= piece.getMustEdiblePieces();\n\t\tif(ediblePieces.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean allPlaced() {\n\t\tfor (Ship s : ships) {\n\t\t\tif (!s.isPlaced()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private void checkApple() {\r\n if ((x[0] == apple_x) && (y[0] == apple_y)) {\r\n dots++;\r\n score += 10;\r\n randomApple();\r\n }\r\n }", "@Test\n public void isRedTest() {\n assertTrue(red_piece.isRed());\n assertTrue(!white_piece.isRed());\n }", "public boolean canProtectPieces() {\r\n\t\treturn (cityCards.stream().anyMatch(c -> (c.isSmallGods() && !c.isDisabled())\r\n\t\t\t\t&& money >= PROTECTION_COST)); \r\n\t}", "private boolean isChoseFine(){\n if(freeSpaces.size()!=2 & freeSpaces.size()!=3){ //if the number of chosen spaces is not 3 or 2, that means it can't be good.\n return false;\n }\n else if(freeSpaces.size()==2){ //if there are 2.\n if(freeSpaces.elementAt(0).place.distance(freeSpaces.elementAt(1).place)==1)\n return true;\n else //if the distance between the spaces isn't 1, that means it can't be two suite spaces.\n return false;\n }\n else{ //if there are 3.\n //get the all 3 elements.\n int aX = freeSpaces.elementAt(0).place.x;\n int aY = freeSpaces.elementAt(0).place.y;\n int bX = freeSpaces.elementAt(1).place.x;\n int bY = freeSpaces.elementAt(1).place.y;\n int cX = freeSpaces.elementAt(2).place.x;\n int cY = freeSpaces.elementAt(2).place.y;\n if(aX==bX && bX==cX){ //if they are in the same column.\n int min = Math.min(aY, Math.min(bY, cY));\n int max = Math.max(aY, Math.max(bY, cY));\n return (max - min == 2); //if the distance between the max and the min is 2, that means they 3 suited.\n }\n else if(aY==bY && bY==cY){ //if they are in the same row.\n int min = Math.min(aX, Math.min(bX, cX));\n int max = Math.max(aX, Math.max(bX, cX));\n return (max - min == 2); //if the distance between the max and the min is 2, that means they 3 suited.\n }\n else //if they are in different rows and columns, so it isn't good.\n return false;\n }\n }", "public boolean isCat() {\r\n\t\tboolean isCat = false;\r\n\r\n\t\tif (numOfLeg == 4 && mammal == true && sound.equals(\"meow\")) {\r\n\r\n\t\t\tisCat = true;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tisCat = false;\r\n\t\t}\r\n\r\n\t\treturn isCat;\r\n\t}", "@Override\r\n\t\tpublic boolean isStuff(Reservation reservation) {\n\t\t\treturn false;\r\n\t\t}", "boolean isDrooping();", "public boolean isSuperGiant(){\r\n\t\tboolean flag = false;\r\n\t\tif ((getMass() >100) && (getSize()>100)){\r\n\t\t\tflag = true;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public boolean hasBust()\n {\n return getSumOfCards(false) > 21;\n }", "protected boolean dangerAnimal(double margin) {\n if (!state.isHoldingItem() && !(state.isSearching() && state.getTimeToFinishSearching() > 1)) {\n return false;\n }\n FoodType type = state.isHoldingItem() ? state.getItemHeld() : state.getFoodSearched();\n int dangerGoose = 0;\n int dangerMonkey = 0;\n final Point location = state.getLocation();\n for (Animal animal : animals) {\n if (animal.isEating()) {\n continue;\n }\n if (animal.getType() == AnimalType.MONKEY) { //monkey\n if (//distance(animal.predictNextLocation(), location) <= 5.0 + 1e-7 && \n distance(animal.getLocation(), location) <= 5.0 + 1e-7 + margin) {\n dangerMonkey += 1;\n }\n } else if (type == FoodType.SANDWICH) { //goose\n if (//distance(animal.predictNextLocation(), location) <= 2.0 + 1e-7 &&\n distance(animal.getLocation(), location) <= 2.0 + 1e-7 + margin) {\n dangerGoose += 1;\n }\n }\n }\n return (dangerGoose >= 1 || dangerMonkey >= 3);\n }", "public static boolean isInColosseum(Location loc) {\n\t\tif (!(loc.getWorld() == Bukkit.getWorld(\"redacted2\"))) return false;\n\t\t// bad hotfix\n\t\tif (loc.clone().add(0, -1, 0).getBlock().getType() == Material.GRASS) return false;\n\t\tint locX = loc.getBlockX();\n\t\tint locY = loc.getBlockY();\n\t\tint locZ = loc.getBlockZ();\n\t\t//Test if player is in main launcher ignore box\n\t\t// -4 98 10 to -23 30 23 - ignore zone for main launcher\n\t\tif (-23 <= locX && locX <= -4 && 30 <= locY && locY <= 98 && 10 <= locZ && locZ <= 23) return false;\n\t\t//Test if player is in side launcher ignore box\n\t\t//-4 98 98 to -25 30 75 - ignore zone for side launcher\n\t\tif (-25 <= locX && locX <= -4 && 30 <= locY && locY <= 98 && 75 <= locZ && locZ <= 98) return false;\n\t\t//If the player is not in either of the ignore boxes, check if they are in the colosseum boundaries\n\t\t//-4 98 10 to -100 30 98 - Colosseum boundaries\n\t\tif (-100 <= locX && locX <= -4 && 30 <= locY && locY <= 98 && 10 <= locZ && locZ <= 98) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isWorthyCompCapeT(Player player) {\n\t\tboolean worthy;\n\t\tif (isWorthyCompCape(player)\n\t\t\t\t&& player.getOresMined() >= 5000\n\t\t\t\t&& player.getBarsSmelt() >= 5000\n\t\t\t\t&& player.getLogsChopped() >= 5000\n\t\t\t\t&& player.getLogsBurned() >= 5000\n\t\t\t\t&& player.getBonesOffered() >= 5000\n\t\t\t\t&& player.getPotionsMade() >= 5000\n\t\t\t\t&& player.getTimesStolen() >= 5000\n\t\t\t\t&& player.getItemsMade() >= 5000 \n\t\t\t\t&& player.getItemsFletched() >= 5000\n\t\t\t\t&& player.getCreaturesCaught() >= 3000\n\t\t\t\t&& player.getFishCaught() >= 5000\n\t\t\t\t&& player.getFoodCooked() >= 5000\n\t\t\t\t&& player.getProduceGathered() >= 3000\n\t\t\t\t&& player.getPouchesMade() >= 2500\n\t\t\t\t&& player.getLapsRan() >= 1000\n\t\t\t\t&& player.getMemoriesCollected() >= 5000\n\t\t\t\t&& player.getRunesMade() >= 5000)\n\t\t\tworthy = true;\n\t\telse\n\t\t\tworthy = false;\n\t\treturn worthy;\n\t}", "public boolean canPlace(Card o, String c)\r\n {\r\n if (this.color == c)\r\n return true;\r\n else if (this.value == o.value)\r\n return true;\r\n else if (this.color == \"none\") // Wild cards\r\n return true;\r\n return false;\r\n }", "public boolean eatFood(Cat eatingCat) {\n if (eatingCat.getAppetite() > food) {\n System.out.printf(\"Cat \\u001B[31m%s\\u001B[0m can't eat - not enough food =(\\n\", eatingCat.getName());\n return false;\n }\n else {\n food -= eatingCat.getAppetite();\n System.out.printf(\"Cat \\u001B[32m%s\\u001B[0m have ate successful =)\\n\", eatingCat.getName());\n return true;\n }\n }", "public boolean isSomethingBuyable(GameClient game){\n for(Level l : Level.values()){\n for(ColorDevCard c : ColorDevCard.values()){\n try {\n NumberOfResources cost = dashBoard[l.ordinal()][c.ordinal()].getCost();\n cost = cost.safe_sub(game.getMe().getDiscounted());\n game.getMe().getDepots().getResources().sub(cost);\n return true;\n } catch (OutOfResourcesException | NullPointerException ignored) {}\n }\n }\n return false;\n }", "public boolean mataGato() {\r\n\t\treturn true;\r\n\t}", "private boolean playerFoundTreasure(int playerRow, int playerCol){\n return (playerRow == 7 && playerCol == 9);\n }", "private static boolean checkPotionToReagentsMapContents(Map<String, Set<String>> map)\n\t{\n\t\tif (map.size() != 4)\n\t\t\treturn false;\n\n\t\tif (!map.containsKey(\"Pygmy Oil\") ||\n\t\t !map.containsKey(\"Flask of Pure Mojo\") ||\n\t\t !map.containsKey(\"Leznupar's Draught\") ||\n\t\t !map.containsKey(\"Guru's Elixir\"))\n\t\t\treturn false;\n\n\t\tSet<String> set;\n\n\t\t// Check map for Pygmy Oil.\n\t\tset = map.get(\"Pygmy Oil\");\n\t\tif (set.size() != 1)\n\t\tif (!set.contains(\"Pygmy Suckerfish\"))\n\t\t\treturn false;\n\n\t\t// Check map for Flask of Pure Mojo.\n\t\tset = map.get(\"Flask of Pure Mojo\");\n\t\tif (set.size() != 3)\n\t\tif (!set.contains(\"Icethorn\") ||\n\t\t !set.contains(\"Pygmy Oil\") ||\n\t\t !set.contains(\"Frost Lotus\"))\n\t\t\treturn false;\n\n\t\t// Check map for Leznupar's Draught.\n\t\tset = map.get(\"Leznupar's Draught\");\n\t\tif (set.size() != 5)\n\t\tif (!set.contains(\"Wax from a Partially Burned Candle\") ||\n\t\t !set.contains(\"Frost Lotus\") ||\n\t\t !set.contains(\"Phoenix Feather\") ||\n\t\t !set.contains(\"12-ounce Can of Root Beer\") ||\n\t\t !set.contains(\"Rain from a Category 3 Hurricane\"))\n\t\t\treturn false;\n\n\t\t// Check map for Guru's Elixir.\n\t\tset = map.get(\"Guru's Elixir\");\n\t\tif (set.size() != 1)\n\t\tif (!set.contains(\"Pygmy Oil\"))\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "final boolean hanArribatAlFinal() {\n int cont = 0;\n for (int i = 0; i < soldats.size(); i++) {\n if (soldats.get(i).isHaArribat()) {\n cont++;\n }\n }\n\n if (cont == soldats.size()) {\n\n return true;\n }\n\n return false;\n\n }", "public boolean canFly() {\n\t\treturn !isEgg() && !isHatchling();\n\t}", "public boolean work() {\n // get the next block so the cart knows where to mine\n Vec3 next = getNextblock();\n // save thee coordinates for easy access\n int x = (int) next.xCoord;\n int y = (int) next.yCoord;\n int z = (int) next.zCoord;\n\n // loop through the blocks in the \"hole\" in front of the cart\n\n for (int i = -getRange(); i <= getRange(); i++) {\n for (int j = -getRange(); j <= getRange(); j++) {\n // calculate the coordinates of this \"hole\"\n int coordX = x + i;\n int coordY = y - 1;\n int coordZ = z + j;\n\n if (farm(coordX, coordY, coordZ)) {\n return true;\n } else if (till(coordX, coordY, coordZ)) {\n return true;\n } else if (plant(coordX, coordY, coordZ)) {\n return true;\n }\n }\n }\n\n return false;\n }", "boolean hasB27();", "boolean canCharge(ItemStack me);", "public boolean isAllPiecesEaten(PrimaryColor playerColor) {\n\n\t\tArrayList<Piece> ediblePieces= getAllEdiblePiecesByColor(playerColor);\n\t\tif(ediblePieces.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasKey() {\n Item[] items = getRoomContents();\n for (int i = 0; i < items.length; i++) {\n if (items[i].getDesc().equals(\"A shiny gold key.\")) {\n return true;\n }\n }\n return false;\n }", "private boolean isSurroundedByDirtAndLava() {\n List<Cell> surrounding = getSurroundingCells(currentWorm.position.x, currentWorm.position.y);\n int i = 0;\n boolean isAllDirt = true;\n while (i < surrounding.size() && (isAllDirt)) {\n if (!isDirt(surrounding.get(i)) && !isLava(surrounding.get(i))) {\n isAllDirt = false;\n } else {\n i++;\n }\n }\n return isAllDirt;\n }", "public boolean animalFood(Entity e, Material item){\r\n\t\t\r\n\t\tif(e instanceof Cow || e instanceof Horse || e instanceof Pig || e instanceof Sheep ){\r\n\t\t\tif(item == Material.HAY_BLOCK){\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}else if(e instanceof Chicken){\r\n\t\t\tif(item == Material.SEEDS){\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}else if( e instanceof Wolf){\r\n\t\t\tif(item == Material.ROTTEN_FLESH || item == Material.RAW_BEEF || item == Material.PORK){\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}else if(e instanceof Ocelot){\r\n\t\t\tif(item == Material.RAW_FISH){\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean checkIn(MyPair<Integer, Integer> position){\n Board copy;\n try{\n copy = new Board(getBoard());\n }\n catch(Exception e){\n System.out.println(\"AAA\");\n return true;\n }\n\n copy.removePiece(copy.kingByColour(getColour()));\n copy.addPiece(new King(getColour(), copy, position));\n if(copy.check() == getColour())\n return true;\n return false;\n }", "private boolean checkVictory(){\r\n boolean wins = true;\r\n for (int i = 0; i < hidden.length; i++){\r\n if (hidden[i] == '_'){\r\n wins = false;\r\n }\r\n }\r\n return wins;\r\n }", "private boolean checkGreedyIronCurtain() {\r\n return (myself.health < 30 || enTotal.get(0) >= 8 || opponent.isIronCurtainActive || this.myTotal.get(0) < this.enTotal.get(0));\r\n }", "boolean hasBonusItemDrop();", "public boolean hasFood() {\r\n\t\treturn this.food > 0;\r\n\t}", "public static boolean isPickaxe(Item item) {\r\n \t\tif(item == null)\r\n \t\t\t\treturn false;\r\n \t\tif(item instanceof ItemPickaxe)\r\n \t\t\treturn true;\r\n \t\tString itemName = item.getUnlocalizedName().toLowerCase();\r\n \t\tif(itemName.contains(\"pickaxe\") && !itemName.contains(\"upgrade\"))\r\n \t\t\treturn true;\r\n \t\treturn false;\r\n \t}", "private boolean fruitChecker(String currentInput)\n\t{\n\t\tboolean hasFruit = false;\n\t\t// loop over all items in it, and look for a meme.\n\n\t\tfor (String currentPhrase : fruitList)\n\t\t{\n\t\t\tif (currentPhrase.equals(currentInput))\n\t\t\t{\n\t\t\t\thasFruit = true;\n\t\t\t}\n\t\t}\n\t\treturn hasFruit;\n\t}", "public boolean canBecombo(){\n \treturn price <5;\n }", "public boolean checkRecipe_EM(ItemStack itemStack) {\n return false;\n }", "@Override\n\tpublic boolean isBreedingItem(ItemStack item) {\n\t\treturn getBreed().getBreedingItem() == item.getItem();\n\t}", "@Override\n\tpublic boolean canBePushed() {\n\t\treturn super.canBePushed() && isEgg();\n\t}", "public boolean itemonfloor(){\n\t\tint XI = 0;\n\t\tint YI = 0;\n\t\tint Xyou = 1;\n\t\tint Yyou = 1;\n\t\tfor(int i = 0 ; i < this.Items.length;i++){\n\t\t\tfor(int p = 0; p < this.Items.length;p++){\n\t\t\t\tif(this.Items[i][p] != null && this.position[i][p] == 1){\n\t\t\t\t\tYI = i;\n\t\t\t\t\tXI = p;\n\t\t\t\t\tYyou = i;\n\t\t\t\t\tXyou = p;\n\t\t\t\t}\n\t\t\t}\n\t\t}//end of outter for\n\t\tif(YI==Yyou && XI==Xyou){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isFood(){\n\t\treturn foodFlag;\n\t}", "@Test\n\tpublic void testIfKingIsNotOnSpecialSquare()\n\t{\n\t\tData d = new Data();\n\t\tassertFalse(d.isKingOnSpecialSquare(61));\n\t\tassertFalse(d.isKingOnSpecialSquare(2));\n\t}", "public boolean hasOnlyHearts(){\n\t\t\n\t\tfor(int i=0; i<hand.size(); i++){\n\t\t\tif(hand.get(i).getSuit() != PlayingCard.HEARTS){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean checkItem () {\r\n\t\tfor (Entity e : getLocation().getWorld().getEntities())\r\n\t\t{\r\n\t\t\tdouble x = e.getLocation().getX();\r\n\t\t\tdouble z = e.getLocation().getZ();\r\n\t\t\tdouble yDiff = getSpawnLocation().getY() - e.getLocation().getY();\r\n \r\n\t\t\tif (yDiff < 0)\r\n\t\t\t\tyDiff *= -1;\r\n\r\n\t\t\tif (x == getSpawnLocation().getX() && yDiff <= 1.5 && z == getSpawnLocation().getZ()) {\r\n \r\n ShowCaseStandalone.slog(Level.FINEST, \"Potential hit on checkItem()\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tItem itemE = (Item)e;\r\n\t\t\t\t\tif (ItemStackHandler.itemsEqual(itemE.getItemStack(), getItemStack(), true)) {\r\n ShowCaseStandalone.slog(Level.FINEST, \"Existing stack: \" + itemE.getItemStack().toString());\r\n itemE.getItemStack().setAmount(1); //Removes duped items, which can occur.\r\n\t\t\t\t\t\tthis.item = itemE;\r\n\t\t\t\t\t\tscs.log(Level.FINER, \"Attaching to existing item.\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean anotherPlayIsPossible()\n {\n \t\n List<Integer> test = cardIndexes();\n return containsSum13(test) || containsK(test);\n \n }" ]
[ "0.70113665", "0.699225", "0.63800937", "0.6338426", "0.62488073", "0.62422293", "0.6229675", "0.6180543", "0.61301804", "0.610743", "0.6101381", "0.61010295", "0.60909176", "0.60754716", "0.6067239", "0.60482395", "0.6014804", "0.6002314", "0.59950423", "0.5980782", "0.5970869", "0.5961484", "0.5946164", "0.5931525", "0.59208053", "0.5907954", "0.5892133", "0.5887178", "0.5886008", "0.58797586", "0.5878489", "0.5871924", "0.5860317", "0.58579713", "0.5831223", "0.58271444", "0.5827037", "0.5812782", "0.5811944", "0.58100516", "0.58080244", "0.5804333", "0.5803919", "0.57928234", "0.5792341", "0.57903874", "0.5789004", "0.578854", "0.57704455", "0.57671475", "0.57661855", "0.576457", "0.57635474", "0.57617384", "0.5760256", "0.5759238", "0.57552767", "0.57543147", "0.57412213", "0.574031", "0.5738859", "0.5733393", "0.5723979", "0.5722637", "0.5722415", "0.5720725", "0.57188994", "0.57150275", "0.57093877", "0.5708768", "0.56993264", "0.5696689", "0.5696337", "0.5694384", "0.5686589", "0.56864744", "0.5684036", "0.5683874", "0.5682372", "0.5680127", "0.5676685", "0.5676516", "0.5676074", "0.5669174", "0.5660002", "0.5659362", "0.56584644", "0.5652869", "0.5648421", "0.56470996", "0.56454766", "0.56423235", "0.56401026", "0.56395715", "0.56394553", "0.5636163", "0.56328017", "0.5631742", "0.5630574", "0.562513" ]
0.7554872
0
private HashMap nearby=new HashMap();
public Mouse() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyHashMap() {\n map = new HashMap();\n }", "void setHashMap();", "Neighbors() {\n HashMap<Integer, Double> neighbors = new HashMap<>();\n }", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "public MyHashMap() {\n array = new TreeNode[1024];\n\n }", "public StreetSearcher() {\n vertices = new HashMap<>();\n graph = new SparseGraph<>();\n //double smDistance = 0;\n //previous = new HashMap<>();\n }", "public MyHashMap() {\n\n }", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "public MyHashMap() {\n hashMap = new ArrayList<>();\n }", "Dijk(){\n grp = new HashMap<>();\n seen = new HashSet<>();\n dlist = new HashMap<>();\n id = new HashMap<>();\n lowlink = new HashMap<>();\n orid = 0;\n }", "public MyHashMap() {\n\n }", "public GameLogic(){\n\t\tplayerPosition = new HashMap<Integer, int[]>();\n\t\tcollectedGold = new HashMap<Integer, Integer>();\n\t\tmap = new Map();\n\t}", "public HashMapStack()\n {\n this.hashMap = new HashMap<>();\n }", "public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }", "void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);", "public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}", "@Override\n public int hashCode() {\n \tint result=super.hashCode();\n \tresult+=(latitude*1000); // *1000 to increase the chance that coordinates nearby have a different hashcode \n \tresult+=(longitude*1000); \n \tresult+=altitude;\n \treturn result;\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn loc.hashCode();\n\t}", "public HashGraph()\n {\n graph = new HashMap <>();\n }", "public OwnMap() {\n super();\n keySet = new OwnSet();\n }", "Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();", "HashMap<GamePiece, Integer> distanceMap(GamePiece from) {\n ArrayDeque<GamePiece> worklist = new ArrayDeque<GamePiece>();\n HashMap<GamePiece, Integer> distances = new HashMap<GamePiece, Integer>();\n ArrayList<GamePiece> seen = new ArrayList<GamePiece>();\n distances.put(from, 0);\n worklist.add(from);\n\n while (worklist.size() > 0) {\n GamePiece next = worklist.removeFirst();\n\n if (seen.contains(next)) {\n // if seen has the next element don't do anything with it\n }\n else {\n for (String s : this.directions) {\n if (next.hasNeighbor(s) && next.connected(s) && !seen.contains(next.neighbors.get(s))) {\n distances.put(next.neighbors.get(s), distances.get(next) + 1);\n worklist.addFirst(next.neighbors.get(s));\n }\n }\n seen.add(next);\n }\n }\n return distances;\n }", "@Test\n\tpublic void testHashMap() {\n\n\t\t/*\n\t\t * Creates an empty HashMap object with default initial capacity 16 and default\n\t\t * fill ratio \"0.75\".\n\t\t */\n\t\tHashMap hm = new HashMap();\n\t\thm.put(\"evyaan\", 700);\n\t\thm.put(\"varun\", 100);\n\t\thm.put(\"dolly\", 300);\n\t\thm.put(\"vaishu\", 400);\n\t\thm.put(\"vaishu\", 300);\n\t\thm.put(null, 500);\n\t\thm.put(null, 600);\n\t\t// System.out.println(hm);\n\n\t\tCollection values = hm.values();\n//\t\tSystem.out.println(values);\n\n\t\tSet entrySet = hm.entrySet();\n\t\t// System.out.println(entrySet);\n\n\t\tIterator iterator = entrySet.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry entry = (Map.Entry) iterator.next();\n\t\t\t// System.out.println(entry.getKey()+\":\"+entry.getValue());\n\t\t}\n\n\t}", "public MyHashMap() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n }", "MAP createMAP();", "public HashMap<String, NeonValue> getMap();", "public MyHashMap() {\n this.key_space = 2069;\n this.hash_table = new ArrayList<Bucket>();\n for (int i = 0; i < this.key_space; ++i) {\n this.hash_table.add(new Bucket());\n }\n }", "public HashMap() {\n this.capacity = 100;\n this.hashMap = new LinkedList[capacity];\n }", "public HashSet<Position> getNeighborPos() { return neighborPos; }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashTableMap() {\r\n\t\tK = new LinkedList[10];\r\n\t\tV = new LinkedList[10];\r\n\t}", "public Pathfinding(Map map){\r\n _map = map;\r\n _openSet = new ArrayList<>();\r\n _closedSet = new ArrayList<>();\r\n _path = new ArrayList<>();\r\n }", "public HashMap<String,SupplyNode> getMap(){\n return t;\n }", "public MapGraph()\n {\n this.nodes = new HashMap<Integer, MapNode>();\n this.edges = new HashMap<Integer, Set<MapEdge>>();\n this.nodesByName = new HashMap<String, Set<Integer>>();\n }", "private static Map<String, String> m36195a(Rect rect) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"x\", String.valueOf(rect.left));\n hashMap.put(\"y\", String.valueOf(rect.top));\n hashMap.put(\"w\", String.valueOf(rect.right - rect.left));\n hashMap.put(\"h\", String.valueOf(rect.bottom - rect.top));\n return hashMap;\n }", "private static void remakeMap(HashMap<String, ArrayList<Critter>> population)\r\n {\r\n \t//get a copy of the hash map\r\n \tHashMap<String, ArrayList<Critter>> copy = new HashMap<String, ArrayList<Critter>>(population);\r\n \t//clear the original hash map\r\n \tpopulation.clear();\r\n \t\r\n \t//iterates through all of the critters in the copy of the hash map\r\n \tIterator<String> populationIter = copy.keySet().iterator();\r\n \t\r\n \twhile (populationIter.hasNext()) { \r\n \t\t\r\n \t\t//get the String position\r\n String pos = populationIter.next();\r\n \r\n //get the critter list in that position\r\n ArrayList<Critter> critterList = copy.get(pos);\r\n \r\n //Iterate through the critters ArrayList \r\n ListIterator<Critter> currCritter = critterList.listIterator();\r\n while(currCritter.hasNext()) {\r\n \tCritter thisCritter = currCritter.next();\r\n \t//get the new coordinates of the critter\r\n \tString critterKey = thisCritter.getCritterPosition();\r\n \t\r\n \t//if the position is already a key in the hash map\r\n \tif(population.containsKey(critterKey)) {\r\n \t\t//add the critter to the ArrayList at key of coordinates\r\n \t\tArrayList<Critter> list = population.get(critterKey);\r\n \t\tlist.add(thisCritter);\r\n \t\tpopulation.replace(critterKey, list);\r\n \t}\r\n \r\n \t//if position is not already a key in the hash map\r\n \telse {\r\n \t\tArrayList<Critter> newCritters = new ArrayList<Critter>();\r\n \t\tnewCritters.add(thisCritter);\r\n \t\tpopulation.put(critterKey, newCritters);\r\n \t}\r\n }\r\n \t}\r\n }", "public ObservableHashMap()\n {\n super();\n }", "public IntObjectHashMap() {\n resetToDefault();\n }", "public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}", "public static void main(String[] args) {\n\t\tString2Int.put(\"Location1\", new Integer(0));\n\t\tString2Int.put(\"Location2\", new Integer(1));\n\t\tString2Int.put(\"Location3\", new Integer(2));\n\t\tString2Int.put(\"Location4\", new Integer(3));\n\t\t\n\t\t\n\t\t// populate it\n\t\tInt2String.put(new Integer(0), \"Location1\");\n\t\tInt2String.put(new Integer(1), \"Location2\");\n\t\tInt2String.put(new Integer(2), \"Location3\");\n\t\tInt2String.put(new Integer(3), \"Location4\");\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> NHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> NHMap = new ArrayList<Integer[]>();\n\t\tInteger[] NHMapedge1 ={String2Int.get(\"Location1\"),100,30};\n\t\tInteger[] NHMapedge2 ={String2Int.get(\"Location2\"),20,40};\n\t\tInteger[] NHMapedge3 ={String2Int.get(\"Location4\"),30,15};\n\t\tInteger[] NHMapedge4 ={String2Int.get(\"Location3\"),140,60};\n\t\t//edges.add(edge);\n\t\tNHMap.add(NHMapedge1);\n\t\tNHMap.add(NHMapedge2);\n\t\tNHMap.add(NHMapedge3);\n\t\tNHMap.add(NHMapedge4);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> EHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> EHMap = new ArrayList<Integer[]>();\n\t\tInteger[] EHMapedge1 ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10,30};\n\t\tInteger[] EHMapedge2 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20,40};\n\t\tInteger[] EHMapedge3 ={String2Int.get(\"Location4\"),String2Int.get(\"Location4\"),30,50};\n\t\tInteger[] EHMapedge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location2\"),40,60};\n\t\t//edges.add(edge);\n\t\tEHMap.add(EHMapedge1);\n\t\tEHMap.add(EHMapedge2);\n\t\tEHMap.add(EHMapedge3);\n\t\tEHMap.add(EHMapedge4);\n\t\t\n\t\tArrayList<Integer[]> edges = new ArrayList<Integer[]>();\n\t\tInteger[] edge ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10};\n\t\tInteger[] edge1 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20};\n\t\tInteger[] edge2 ={String2Int.get(\"Location1\"),String2Int.get(\"Location3\"),30};\n\t\tInteger[] edge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location4\"),40};\n\t\tInteger[] edge5 ={String2Int.get(\"Location4\"),String2Int.get(\"Location3\"),40};\n\t\t\n\t\t\n\t\tedges.add(edge);\n\t\tedges.add(edge1);\n\t\tedges.add(edge2);\n\t\tedges.add(edge4);\n\t\tedges.add(edge5);\n\t\t\n\t\t\n \n\t //int[][] adj_matrix = MapArrayList(edges1);\n int[][] adj_matrix = MapArrayList(edges);\n\t\tfor(int i=0;i<5;i++){\n\t\t\t//System.out.println(\"\");\n\t\t\tfor(int j=0;j<5;j++){\n\t\t\t\t\n\t\t\t\t//System.out.print(adj_matrix[i][j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//dijkstra(edges1);\n\t\t//System.out.print(edges2);\n\t\t//System.out.println(\"Ehtesham\");\n\t\tArrayList<ArrayList<Integer>> finalpaths = dijkstra(adj_matrix);\n\t\t for (ArrayList<Integer> item : finalpaths) { \n\t\t\t System.out.println(\"\");\n\t\t\t \tfor(Integer node: item)\n\t\t\t \t{\t\n\t\t\t \t\tSystem.out.print(Int2String.get(node)+\"->\");\n\t\t\t \t}\n\t\t\n\t\t }\n\t\t int cost = 210;\n\t\t int time = 190;\n\t\t //ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(finalp1aths1);\n\t\t ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(NHMap,EHMap,finalpaths,cost,time);\n\t\t System.out.println(\"\");\n\t\t System.out.println(\"-----------------------------Final answer-------------------------------\");\n\t\t for (ArrayList<Integer> item : finalp1aths1) { \n\t\t\t\tSystem.out.println(item);\n\t\t\t\t\n\t\t }\n\t\t\t\t \n\t}", "public Map(){\r\n map = new Square[0][0];\r\n }", "public int hashCode()\n {\n return inDegrees();\n }", "public static void init() {\n buildings = new HashMap<Long, JSONObject>();\n arr = new ArrayList();\n buildingOfRoom = new HashMap<Long, Long>();\n }", "public q677() {\n hm = new HashMap<>();\n words = new HashMap<>();\n }", "@Override\n public int hashCode() {\n return Double.valueOf(lat).hashCode() + Double.valueOf(lon).hashCode();\n }", "public int hashCode()\n {\n return getMap().hashCode();\n }", "@Override\n\tpublic HashMap<Position, Node> generate(){\n\t\tNode tempNode;\n\t\tPosition tempPosition;\n\t\tif(map != null && map.isEmpty()){\n\t\t\tfor(int y=0; y<numNodesY; y++){\n\t\t\t\tfor(int x=0; x<numNodesX; x++){\n\t\t\t\t\ttempPosition = new Position(x*nodeDistance, \n\t\t\t\t\t\t\ty*nodeDistance);\n\t\t\t\t\ttempNode = new Node(field, tempPosition,\n\t\t\t\t\t\t\tnodeSignalStrength,\n\t\t\t\t\t\t\tagentLife,\n\t\t\t\t\t\t\trequestLife);\n\t\t\t\t\tmap.put(tempPosition, tempNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new HashMap<Position, Node>(map);\n\t}", "public HitCounter() {\n map = new HashMap<Integer, Integer>();\n }", "public static void main(String[] args) {\n HashMap hmme = new HashMap();\n hmme.put(\"Name\", \"useonlyjava\");\n hmme.put(\"geolocation\", \"ondesk\");\n String[] j= {\"java\", \"etc\"};\n hmme.put(\"interest\", j);\n // so far this describes me\n HashMap hmmekid = new HashMap();\n hmme.put(\"Name\", \"useonlyjava-script\");\n hmme.put(\"geolocation\", \"onplaytable\");\n String[] k= {\"munching\", \"etc\"};\n hmme.put(\"interest\", k);\n HashMap hmmeworld = new HashMap();\n hmmeworld.put(\"Me\", hmme);\n hmmeworld.put(\"Mine\", hmmekid);\n HashMap hmnull = new HashMap();\n hmnull = null;\n \n Object[] a = compare(hmme, hmnull);\n }", "private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }", "public int infectNeighbours(Map map);", "private Map<Square, List<Player>> checkRocketJump()\n {\n Player dummie = new Player(null,null,null,false);\n\n Map<Square, List<Player>> squareColorIdListHashMap = new HashMap<>();\n List<Player> playersSeen = new ArrayList<>();\n List<Player> playersSeenCopy = new ArrayList<>();\n\n List<Square> targetSquares = new ArrayList<>();\n targetSquares.addAll(player.getSquare().getGameBoard().getArena().squareReachableNoWall(player.getSquare().getX() , player.getSquare().getY(),2)); //Obtain all players that can be targets\n targetSquares.remove(player.getSquare());\n\n //i will set a dummie player in all the possible squares at distance 2 and i will check if there is still at least 1 target for the basic mode\n for(Square squareIterate : targetSquares)\n {\n playersSeen = new ArrayList<>();\n playersSeenCopy = new ArrayList<>();\n dummie.setSquare(squareIterate);\n\n playersSeen.addAll(dummie.playerThatSee(player.getSquare().getGameBoard()));\n playersSeen.remove(dummie);\n playersSeen.remove(player);\n\n playersSeenCopy.addAll(playersSeen);\n\n for (Player playerIterate : playersSeen)\n {\n if (playerIterate.getSquare() == dummie.getSquare())\n playersSeenCopy.remove(playerIterate);\n }\n\n if (!playersSeenCopy.isEmpty())\n {\n squareColorIdListHashMap.put(squareIterate, playersSeenCopy);\n }\n }\n\n return squareColorIdListHashMap; //Returns all targets\n\n }", "private void constructHMap() {\n\t\tfor (int i = 0; i < hMap.length; i++) {\n\t\t\tfor (int j = 0; j < hMap[0].length; j++) {\n\t\t\t\tif (hMap[i][j] == 0) {\n\t\t\t\t\tSkiNode head = new SkiNode(map[i][j], i, j, null);\n\t\t\t\t\tbuildSkiTree(head);\n\t\t\t\t\tupdateSkiTreeLevel(head);\n\t\t\t\t\tif (goodHeads.isEmpty()) {\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t} else if (goodHeads.getFirst().level == head.level) {\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t} else if (goodHeads.getFirst().level < head.level) {\n\t\t\t\t\t\tgoodHeads.clear();\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public MyHashMap() {\n keys = new MapNode[n];\n vals = new MapNode[n];\n for (int i=0; i < n ; ++i) {\n keys[i] = new MapNode();\n vals[i] = new MapNode();\n }\n }", "public DesignHashmap() {\n\t\ttable = new boolean[buckets][];\n\t}", "@Override\n\tpublic HashMap<Integer, HashMap<Integer,VueElement>> chercherElementProche(VueElement ve, Hashtable<Integer,VueElement> voisins){\n\t\tHashMap<Integer, HashMap<Integer,VueElement>> resultat = new HashMap<>();\n\n\t\tint distPlusProche = 100;\n\t\tint refPlusProche = 0;\n\t\t/* Strategie du random */\t\t\t\n\t\tSet<Integer> tabref = voisins.keySet();\n\t\tInteger[] t = new Integer[tabref.size()];\n\t\tRandom r = new Random();\n\t\tint s = tabref.size();\n\t\ttabref.toArray(t);\n\t\tif(tabref.size() >= 1 && t[0]!=null)\n\t\t{\n\t\t\t/* On trouve un ele aleatoire dans la liste de voisins */\n\t\t\tint l = r.nextInt(s);\n\t\t\trefPlusProche=t[l];\n\t\t}\n\t\telse refPlusProche=0;\n\n\t\tHashMap<Integer,VueElement> cible = new HashMap<>();\n\t\tcible.put((Integer)refPlusProche, voisins.get(refPlusProche));\n\t\tresultat.put((Integer)distPlusProche, cible);\n\n\t\treturn resultat;\n\t}", "public HashMapValueComparator() {\n\t\tsuper();\n\t}", "public MyHashMap() {\n map = new ArrayList<>();\n for (int i = 0;i<255;i++)\n map.add(new Entry());\n }", "@Test\n public void testSmallPillarNeighbors(){\n //test pillar at (0,0)\n pillar = smallPillarMap.get(Maze.position(0,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (1,0)\n pillar = smallPillarMap.get(Maze.position(1,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n\n //test pillar at (2,0)\n pillar = smallPillarMap.get(Maze.position(2,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n\n //test pillar at (0,1)\n pillar = smallPillarMap.get(Maze.position(0,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 2)));\n\n //test pillar at (1,1)\n pillar = smallPillarMap.get(Maze.position(1,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(4, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (2,1)\n pillar = smallPillarMap.get(Maze.position(2,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 0)));\n\n //test pillar at (0,2)\n pillar = smallPillarMap.get(Maze.position(0,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (1,2)\n pillar = smallPillarMap.get(Maze.position(1,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n\n //test pillar at (2,2)\n pillar = smallPillarMap.get(Maze.position(2,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n }", "protected SortedMap getSortedMap() {\n/* 65 */ return (SortedMap)this.map;\n/* */ }", "public ConnectedMap() {\n }", "public ArrayHashMap() {\n super();\n }", "private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}", "public static void main(String[] args) {\n\t\tHashMap<Integer, Movil> moviles = new HashMap<Integer, Movil>();\r\n\t\t\r\n\t\t/*\r\n\t\t//Utilizando \"var\" como en C#\r\n\t\tvar movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tvar movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tvar movilPedro = new Movil(955, 4, \"Xiaomi\", 5);\r\n\t\t*/\r\n\t\tMovil movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tMovil movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tMovil movilPedro = new Movil(955, 4, \"Xiaomi\", 5);\r\n\r\n\t\tMovil movilBusqueda = new Movil(232, 6, \"Apple\", 4);\r\n\t\t\r\n\t\t//Añadimos los elementos a la colección\r\n\t\t/*\r\n\t\tmoviles.put(111, movilJuan);\r\n\t\tmoviles.put(232, movilMaria);\r\n\t\tmoviles.put(955, movilPedro);\r\n\t\t*/\r\n\t\tmoviles.put(movilJuan.getImei(), movilJuan);\r\n\t\tmoviles.put(movilMaria.getImei(), movilMaria);\r\n\t\tmoviles.put(movilPedro.getImei(), movilPedro);\r\n\t\t\r\n\t\t\r\n\t\t//Comprobamos is un elemento se encuentra en la colección por su valor\r\n\t\t//El método containsValue() requiere redefinir el método equals() de la clase Movil para saber que campo debe comparar para determinar que dos objetos sean iguales.\r\n\t\t//En caso de no hacerlo, los objetos se comparan utilizando sus Hashcodes (direcciones de memoria).\r\n\t\tif (moviles.containsValue(movilBusqueda)) {\r\n\t\t\tSystem.out.println(\"Encontrado\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No encontrado\");\r\n\t\t}\r\n\t\t\r\n\r\n\t\t\r\n\t}", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn Integer.parseInt(lat.toString()) ^ Integer.parseInt(lng.toString());\n\t\t\t//return super.hashCode();\n\t\t}", "@Override \r\n\tpublic int hashCode(){\r\n\t\treturn (new Double(this.getX()).hashCode()) + (new Double(this.getY()).hashCode());\r\n\t}", "public _No_706_DesignHashMap() {\n// Arrays.fill(arr, -1);\n }", "public int makeGlobal(){\r\n\t\tif(mapExists && this.creationTime > SimClock.getTime() - TIMEOUT){\r\n\t\t//TODO: merge new maps\t\r\n\t\t\treturn globalMap.size();\r\n\t\t}\r\n\t\telse if(mapExists && this.creationTime <= SimClock.getTime() - TIMEOUT){\r\n\t\t//restart my map\r\n\t\t\tglobalMap = null;\r\n\t\t\tsynced = -1;\r\n\t\t\tmapExists = false;\r\n\t\t\tref_id = -1;\r\n\t\t\tthis.creationTime = SimClock.getTime();\r\n\t\t\t\r\n\t\t}\r\n\t\t//usar 3 estáticos para ajustar coordenadas\r\n\t\t\r\n\t\tMap<Integer, Coord> m = new HashMap<Integer, Coord>();\r\n\t\tArrayList<Integer> staticNBs = new ArrayList<Integer>();\r\n\t\t/*first find the static nodes i have in my map*/\r\n\t\tif(this.myMap == null || this.myMap.getMap() == null) return -1;\r\n\t\tfor(Map.Entry<Integer, Coord> nb : this.myMap.getMap().entrySet()){\r\n\t\t\t/*add them to my map*/\r\n\t\t\tif (staticNodes.keySet().contains(nb.getKey())){\r\n\t\t\t\tstaticNBs.add(nb.getKey());\t\r\n\t\t\t\tm.put(nb.getKey(), staticNodes.get(nb.getKey()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(staticNBs.size() < 3){\r\n\t\t\t//core.Debug.p(\"can't determine global coordinates\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\telse{\r\n\t\t\t//map centered on certain static node, using real coordinates.\r\n\t\t\tMap.Entry<Integer, NodePositionsSet> s = startingGlobalMap(staticNBs);\r\n\t\t\t//core.Debug.p(\"***map centered on static node\" + ref_id + \"***\");\r\n\t\t\t//core.Debug.p(this.toString());\r\n\t\t\tif(s.getValue() != null){\r\n\t\t\t\t//core.Debug.p(\"globalmap not null! wohoo!\");\r\n\t\t\t\t//core.Debug.p(\"t= \" + SimClock.getTime() + \" base map:\" + realMap(s.getValue().getMap()));\r\n\t\t\t\t/*now mix this map*/\r\n\t\t\t\t//core.Debug.p(\"+++mixed map:\" + realMap(s.getValue().getMap()));\r\n\t\t\t\tglobalMap = NodePositionsSet.mixMap(s.getValue().getMap(), myMap.getMap(), ref_id, myID);\r\n\t\t\t\t//core.Debug.p(\"+++mixed map:\" + realMap(globalMap));\r\n\t\t\t\tif(globalMap == null) return -1;\r\n\t\t\t\tlocalmix();\r\n\t\t\t\tif(globalMap == null) return -1;\r\n\t\t\t\tthis.updateTime = SimClock.getTime();\r\n\t\t\t\treturn globalMap.size();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcore.Debug.p(\"can't determine global coordinates\");\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void initializationMapOfLastDistance(){\r\n Float val = 0.00f;\r\n for(Build b: allBuildings_){\r\n saveLastDistance.put(b.getName(), val);\r\n }\r\n }", "public void initAndSetWorld() {\n\t\tHashMap<String, Location> gameWorld = new HashMap<String, Location>();\r\n\t\tthis.world = gameWorld;\r\n\t\t\r\n\t\t// CREATING AND ADDING LOCATIONS, LOCATION AND ITEM HASHES ARE AUTOMATICALLY SET BY CALLING CONSTRUCTOR\r\n\t\tLocation valley = new Location(\"valley\", \"Evalon Valley. A green valley with fertile soil.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(valley);\r\n\t\tLocation plains = new Location(\"plains\", \"West Plains. A desolate plain.\",\r\n\t\t\t\t\"You cannot go in that direction. There is nothing but dust over there.\",true);\r\n\t\tthis.addLocation(plains);\r\n\t\tLocation mountain = new Location(\"mountain\", \"Northern Mountains. A labyrinth of razor sharp rocks.\",\r\n\t\t\t\t\"You cannot go in that direction. The Mountain is not so easily climbed.\",true);\r\n\t\tthis.addLocation(mountain);\r\n\t\tLocation shore = new Location(\"shore\", \"Western Shore. The water is calm.\",\r\n\t\t\t\t\"You cannot go in that direction. There might be dangerous beasts in the water.\",true);\r\n\t\tthis.addLocation(shore);\r\n\t\tLocation woods = new Location(\"woods\", \"King's Forest. A bright forest with high pines.\",\r\n\t\t\t\t\"You cannot go in that direction. Be careful not to get lost in the woods.\",true);\r\n\t\tthis.addLocation(woods);\r\n\t\tLocation hills = new Location(\"hills\", \"Evalon hills.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(hills);\r\n\t\tLocation cave = new Location(\"cave\", \"Blood Cave. Few of those who venture here ever return.\",\r\n\t\t\t\t\"The air smells foul over there, better not go in that direction.\",true);\r\n\t\tthis.addLocation(cave);\r\n\t\tLocation innercave = new Location(\"innercave\", \"Blood Cave. This path must lead somewhere.\",\r\n\t\t\t\t\"Better not go over there.\",true);\r\n\t\t\r\n\t\tLocation westhills = new Location(\"westhills\", \"Thornhills. A great many trees cover the steep hills.\",\r\n\t\t\t\t\"You cannot go in that direction. Watch out for the thorny bushes.\",true);\r\n\t\tthis.addLocation(westhills);\r\n\t\t\r\n\t\tLocation lake = new Location(\"lake\", \"Evalon Lake. A magnificent lake with a calm body of water.\",\r\n\t\t\t\t\"You cannot go in that direction, nothing but fish over there.\",true);\r\n\t\tthis.addLocation(lake);\r\n\t\t\r\n\t\tLocation laketown = new Location(\"laketown\", \"Messny village. A quiet village with wooden houses and a dirt road.\",\r\n\t\t\t\t\"You cannot go in that direction, probably nothing interesting over there.\",true);\r\n\t\t\r\n\t\tLocation inn = new Room(\"inn\", \"Messny Inn. A small but charming inn in the centre of the village.\",\r\n\t\t\t\t\"You cannot go in that direction.\",false);\r\n\t\t\r\n\t\t// CONNECTING LOCATIONS\r\n\t\t// IT DOES NOT MATTER ON WHICH LOCATION THE METHOD ADDPATHS IS CALLED\r\n\t\tvalley.addPaths(valley, \"east\", plains, \"west\");\r\n\t\tvalley.addPaths(valley, \"north\", mountain, \"south\");\r\n\t\tvalley.addPaths(valley, \"west\", shore, \"east\");\r\n\t\tvalley.addPaths(valley, \"south\", woods, \"north\");\r\n\t\twoods.addPaths(woods, \"east\", hills, \"west\");\r\n\t\thills.addPaths(hills, \"south\", westhills, \"north\");\r\n\t\twesthills.addPaths(westhills, \"west\", lake, \"east\");\r\n\t\tlake.addPaths(woods, \"south\", lake, \"north\");\r\n\t\tlake.addPaths(lake, \"west\", laketown, \"east\");\r\n\t\tmountain.addPaths(mountain, \"cave\", cave, \"exit\");\r\n\t\tlaketown.addPaths(laketown, \"inn\", inn, \"exit\");\r\n\t\t\r\n\r\n\t\t\r\n\t\t// CREATE EMPTY ARMOR SET FOR GAME START AND UNEQUIPS\r\n\t\tBodyArmor noBodyArmor = new BodyArmor(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBodyArmor(noBodyArmor);\r\n\t\tBoots noBoots = new Boots(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBoots(noBoots);\r\n\t\tHeadgear noHeadgear = new Headgear(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultHeadgear(noHeadgear);\r\n\t\tGloves noGloves = new Gloves(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultGloves(noGloves);\r\n\t\tWeapon noWeapon = new Weapon(\"unarmored\", 0, 0, true, 5, false);\r\n\t\tthis.setDefaultWeapon(noWeapon);\r\n\t\t\r\n\t\tthis.getPlayer().setBodyArmor(noBodyArmor);\r\n\t\tthis.getPlayer().setBoots(noBoots);\r\n\t\tthis.getPlayer().setGloves(noGloves);\r\n\t\tthis.getPlayer().setHeadgear(noHeadgear);\r\n\t\tthis.getPlayer().setWeapon(noWeapon);\r\n\t\t\r\n\t\t\r\n\t\t// CREATING AND ADDING ITEMS TO PLAYER INVENTORY \r\n\t\tItem potion = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tthis.getPlayer().addItem(potion);\r\n\t\tWeapon sword = new Weapon(\"sword\", 10, 200, true, 10, false);\r\n\t\tvalley.addItem(sword);\r\n\t\t\r\n\t\tWeapon swordEvalon = new Weapon(\"EvalonianSword\", 15, 400, true, 1, 15, false);\r\n\t\thills.addItem(swordEvalon);\r\n\t\t\r\n\t\tPotion potion2 = new Potion(\"largepotion\", 2, 200, true, 25);\r\n\t\tPotion potion3 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tPotion potion4 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tlake.addItem(potion3);\r\n\t\tinn.addItem(potion4);\r\n\t\t\r\n\t\tItem potion5 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion6 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\twoods.addItem(potion6);\r\n\t\t\r\n\t\tPurse purse = new Purse(\"purse\",0,0,true,100);\r\n\t\tvalley.addItem(purse);\r\n\t\t\r\n\t\tChest chest = new Chest(\"chest\", 50, 100, false, 50);\r\n\t\tvalley.addItem(chest);\r\n\t\tchest.addItem(potion2);\r\n\t\t\r\n\t\tChest chest2 = new Chest(\"chest\", 10, 10, false, 20);\r\n\t\tinn.addItem(chest2);\r\n\t\t\r\n\t\t// ENEMY LOOT\r\n\t\tBodyArmor chestplate = new BodyArmor(\"chestplate\", 20, 200, true, 20);\r\n\t\t\r\n\t\t// ADDING NPC TO WORLD\r\n\t\tNpc innkeeper = new Npc(\"Innkeeper\", false, \"Hello, we have rooms available if you want to stay over night.\",true,1000);\r\n\t\tinn.addNpc(innkeeper);\r\n\t\t\r\n\t\tItem potion7 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion8 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tinnkeeper.addItem(potion7);\r\n\t\tinnkeeper.addItem(potion8);\r\n\t\t\r\n\t\tNpc villager = new Npc(\"Lumberjack\", false, \"Gotta get those logs back to the mill soon, but first a few pints at the inn!\",false,0);\r\n\t\tlaketown.addNpc(villager);\r\n\t\t\r\n\t\tEnemy enemy1 = new Enemy(\"Enemy\", true, \"Come at me!\", 50, chestplate, 200, 10);\r\n\t\tmountain.addNpc(enemy1);\r\n\t\t\r\n\t\tEnemyGuardian guardian = new EnemyGuardian(\"Guardian\", true, \"I guard this cave.\", 100, potion5, 600, 15, innercave, \"An entrance reveals itself behind the fallen Guardian.\", \"inwards\", \"entrance\");\r\n\t\tcave.addNpc(guardian);\r\n\t\t\r\n\t\t// ADDING SPAWNER TO WORLD\r\n\t\tthis.setNpcSpawner(new BanditSpawner()); \r\n\t\t\r\n\t\t// ADDING PLAYER TO THE WORLD\r\n\t\tthis.getPlayer().setLocation(valley);\r\n\t\t\r\n\t\t// QUEST\r\n\t\tQuest noquest = new Quest(\"noquest\",\"nodesc\",\"nocomp\",false,true,1000,0,0,0);\r\n\t\tthis.setCurrentQuest(noquest);\r\n\t\t\r\n\t\t\r\n\t\tQuest firstquest = new Quest(\"A New Journey\",\"Find the lost sword of Evalon.\",\"You have found the lost sword of Evalon!\",false,false,1,400,0,1);\r\n\t\t\r\n\t\tScroll scroll = new Scroll(\"Questscroll\",1,1,true,firstquest);\r\n\t\tmountain.addItem(scroll);\r\n\t\t\r\n\t\tSystem.out.println(\"All set up.\");\r\n\t}", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "protected abstract Set<T> findNeighbors(T node, Map<T, T> parentMap);", "public RBTMap() {\n RBT = new TreeMap<K,V>();\n \n }", "private void addAllAbove(@NonNull final Location searchLoc, final int limit) {\n int currX = searchLoc.getScX();\n int currY = searchLoc.getScY();\n int currZ = searchLoc.getScZ();\n \n while (currZ <= limit) {\n currX -= MapDisplayManager.TILE_PERSPECTIVE_OFFSET;\n currY += MapDisplayManager.TILE_PERSPECTIVE_OFFSET;\n currZ++;\n final long foundKey = Location.getKey(currX, currY, currZ);\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }\n }", "@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }", "public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }", "public CitiesMap(){\r\n\t\tmap=new Graph<City>();\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap()\r\n\t{\r\n\t\ttable = new MapEntry[7];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\tDUMMY = new MapEntry<>(null, null);\r\n\t}", "public GameMapHashMap() {\n HashMap<String, HashMap<String, String>> temporaryMap = new HashMap<>();\n instantiateIndividualRooms();\n\n temporaryMap.put(\"Atrium\", atrium);\n temporaryMap.put(\"Breakfast Nook\", breakfastNook);\n temporaryMap.put(\"Menagerie\", menagerie);\n temporaryMap.put(\"Conservatory\", conservatory);\n temporaryMap.put(\"Panic Room\", panicRoom);\n\n temporaryMap.put(\"Fire Swamps\", fireSwamps);\n temporaryMap.put(\"Hall\", hall);\n temporaryMap.put(\"Dining Room\", diningRoom);\n temporaryMap.put(\"Arcade\", arcade);\n temporaryMap.put(\"Observatory\", observatory);\n\n temporaryMap.put(\"Courtyard\", courtyard);\n temporaryMap.put(\"Library\", library);\n temporaryMap.put(\"Garden\", garden);\n temporaryMap.put(\"Laboratory\", laboratory);\n temporaryMap.put(\"Kitchen\", kitchen);\n\n rooms = Collections.unmodifiableMap(temporaryMap);\n }", "public MyHashMap() {\r\n\t\tloadFactor = DEFAULT_LOAD_FACTOR;\r\n\t\tcapacity = DEFAULT_CAPACITY;\r\n\t\thashMapArray = new LinkedList[capacity];\r\n\t}", "@Override\n public int hashCode() {\n return getBoundingBox().hashCode();\n }", "public MyHashMap() {\n\t\tthis(INIT_CAPACITY);\n\t}", "public HitCounter() {\n map = new TreeMap<>();\n }", "private ArrayList<Integer> getCityEdges(HashMap<Integer,Integer> table){\n ArrayList<Integer> edges = new ArrayList<Integer>();\n edges.addAll(table.keySet());\n return edges;\n }", "private static void m568a() {\n if (f878a == null) {\n HashMap hashMap = new HashMap();\n f878a = hashMap;\n hashMap.put(\"CN\", p.China);\n f878a.put(\"FI\", p.Europe);\n f878a.put(\"SE\", p.Europe);\n f878a.put(\"NO\", p.Europe);\n f878a.put(\"FO\", p.Europe);\n f878a.put(\"EE\", p.Europe);\n f878a.put(\"LV\", p.Europe);\n f878a.put(\"LT\", p.Europe);\n f878a.put(\"BY\", p.Europe);\n f878a.put(\"MD\", p.Europe);\n f878a.put(\"UA\", p.Europe);\n f878a.put(\"PL\", p.Europe);\n f878a.put(\"CZ\", p.Europe);\n f878a.put(\"SK\", p.Europe);\n f878a.put(\"HU\", p.Europe);\n f878a.put(\"DE\", p.Europe);\n f878a.put(\"AT\", p.Europe);\n f878a.put(\"CH\", p.Europe);\n f878a.put(\"LI\", p.Europe);\n f878a.put(\"GB\", p.Europe);\n f878a.put(\"IE\", p.Europe);\n f878a.put(\"NL\", p.Europe);\n f878a.put(\"BE\", p.Europe);\n f878a.put(\"LU\", p.Europe);\n f878a.put(\"FR\", p.Europe);\n f878a.put(\"RO\", p.Europe);\n f878a.put(\"BG\", p.Europe);\n f878a.put(\"RS\", p.Europe);\n f878a.put(\"MK\", p.Europe);\n f878a.put(\"AL\", p.Europe);\n f878a.put(\"GR\", p.Europe);\n f878a.put(\"SI\", p.Europe);\n f878a.put(\"HR\", p.Europe);\n f878a.put(\"IT\", p.Europe);\n f878a.put(\"SM\", p.Europe);\n f878a.put(\"MT\", p.Europe);\n f878a.put(\"ES\", p.Europe);\n f878a.put(\"PT\", p.Europe);\n f878a.put(\"AD\", p.Europe);\n f878a.put(\"CY\", p.Europe);\n f878a.put(\"DK\", p.Europe);\n f878a.put(\"RU\", p.Russia);\n f878a.put(\"IN\", p.India);\n }\n }", "public InternalWorkingOfHashSet() {\r\n map = new HashMap<>();\r\n }", "public Map<EntityPlayer, Vec3> b()\r\n/* 204: */ {\r\n/* 205:217 */ return this.k;\r\n/* 206: */ }", "public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}", "public Map() {\n\t\t//intially empty\n\t}", "public Map(RefLinks refLink)\r\n {\r\n /// Retine referinta \"shortcut\".\r\n this.refLink = refLink;\r\n list_star = new ArrayList<CollisionItem>();\r\n list_star_blue = new ArrayList<CollisionItem>();\r\n\r\n list_fire = new ArrayList<CollisionItem>();\r\n list_static_element = new ArrayList<CollisionItem>();\r\n\r\n list_next_level = new ArrayList<CollisionItem>();\r\n\r\n //level = 1;\r\n // star = new CollisionItem(refLink , 650 , 390,104,15);\r\n\r\n\r\n\r\n if(Map_level.GetInstance().getLevel() == 1) {\r\n System.out.println(\"salut1\");\r\n\r\n list_star.add(new CollisionItem(refLink, 300, 200, 50, 50));\r\n list_star_blue.add(new CollisionItem(refLink, 250, 50, 50, 50));\r\n\r\n list_fire.add(new CollisionItem(refLink, 850, 270, 60, 20));\r\n\r\n\r\n //list_static_element.add(new CollisionItem(refLink, 452, 433, 104, 15));\r\n //list_static_element.add(new CollisionItem(refLink, 650, 410, 104, 15));\r\n\r\n list_static_element.add(new CollisionItem(refLink, 15, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 119, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 223, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 535, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 639, 140, 104, 15));\r\n\r\n //list_static_element.add( new CollisionItem(refLink, 15, 250, 104, 15) );\r\n //list_static_element.add( new CollisionItem(refLink, 119, 250, 104, 15) );\r\n list_static_element.add(new CollisionItem(refLink, 223, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 535, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 639, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 743, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 847, 290, 104, 15));\r\n\r\n\r\n list_next_level.add( new CollisionItem(refLink, 120, 420, 55, 50) );\r\n //list_static_element.add( new CollisionItem(refLink, 0, 465, 960, 15) );\r\n\r\n\r\n\r\n ///incarca harta de start. Functia poate primi ca argument id-ul hartii ce poate fi incarcat.\r\n LoadWorld();\r\n\r\n\r\n }\r\n else if(Map_level.GetInstance().getLevel() ==2){\r\n list_star.add(new CollisionItem(refLink, 250, 80, 50, 50));\r\n list_star_blue.add(new CollisionItem(refLink, 700, 160, 50, 50));\r\n\r\n list_fire.add(new CollisionItem(refLink, 300, 450, 60, 20));\r\n\r\n\r\n //list_static_element.add(new CollisionItem(refLink, 452, 433, 104, 15));\r\n //list_static_element.add(new CollisionItem(refLink, 650, 410, 104, 15));\r\n\r\n list_static_element.add(new CollisionItem(refLink, 15, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 119, 140, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 223, 140, 104, 15));\r\n //list_static_element.add(new CollisionItem(refLink, 327, 140, 104, 15));\r\n\r\n\r\n list_static_element.add(new CollisionItem(refLink, 620, 230, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 724, 230, 104, 15));\r\n\r\n\r\n list_static_element.add(new CollisionItem(refLink, 223, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 327, 290, 104, 15));\r\n list_static_element.add(new CollisionItem(refLink, 431, 290, 104, 15));\r\n\r\n\r\n list_next_level.add( new CollisionItem(refLink, 120, 420, 55, 50) );\r\n\r\n\r\n LoadWorld();\r\n }\r\n\r\n\r\n //lista podelei//elemente de coliziune statica\r\n\r\n }", "public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}", "public int sizeOfMap(){return size;}", "public HashMap<String, String> getCalculation(){\n return directionsList;\n }", "void populatePidToHolderMap() {\n\t\tSet<Integer> visited = new HashSet<Integer>();\n\t\tQueue<Integer> visitQueue = new LinkedList<Integer>();\n\t\tvisitQueue.add(pid);\n\t\tvisited.add(pid);\n\t\twhile(!visitQueue.isEmpty()) {\n\t\t\tint nodePid = visitQueue.poll();\n\t\t\tList<Integer> neighborList = neighborMap.get(nodePid);\n\t\t\tfor (int neighborPid : neighborList) {\n\t\t\t\tif (!visited.contains(neighborPid)) {\n\t\t\t\t\tpidToHolderMap.put(neighborPid, nodePid);\n\t\t\t\t\tvisitQueue.add(neighborPid);\n\t\t\t\t\tvisited.add(neighborPid);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Ledger() {\n\tH = new TreeMap<String, Integer>();\n }", "public ArrayList< LocationHandler >findNear ( double lat, double lon){\n\t\tArrayList< LocationHandler> locationList = new ArrayList< LocationHandler>();\n\t\tString selectQuery = \"SELECT \"+ table_location +\".*, \" +\n\t\t\t\t\"(( \" + lat +\" - \" + table_location+\".\"+ key_latitude +\") * (\" + lat +\" - \" + table_location+\".\"+ key_latitude +\") + \" +\n\t\t\t\t\"(\" + lon +\" - \" + table_location+\".\"+ key_longitude +\") * (\" + lon +\" - \" + table_location+\".\"+ key_longitude +\"))\" +\n\t\t\t\t\" AS distance \"+ \n\t\t\t\t\" FROM \" + table_location + \" LEFT JOIN \" + table_locationType + \" ON \" +\n\t\t\t\ttable_location +\".\"+key_type + \" = \" + table_locationType+ \".\" +key_base_id +\n\t\t\t\t\" ORDER BY distance\";\n\t\t//\t\t\t\t\t\" ORDER BY \" + \"ABS( \" + table_location +\".\" +key_latitude + \" - \" + lon + \") \" + \" AND \" \n\t\t//\t\t\t\t\t + \"ABS( \" + table_location +\".\"+ key_longitude + \" - \" + lat + \") \" + \" DESC\";\n\t\tLog.i(TAG, \"near \" + selectQuery);\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tLocationHandler locationHandlerArray = new LocationHandler();\n\t\t\t\tlocationHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tlocationHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tlocationHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tlocationHandlerArray.setLongitude(cursor.getDouble(3)); \n\t\t\t\tlocationHandlerArray.setLatitude(cursor.getDouble(4)); \n\t\t\t\tlocationHandlerArray.setName(cursor.getString(5)); \n\t\t\t\tlocationHandlerArray.setType(cursor.getString(6));\n\t\t\t\tlocationHandlerArray.setSearchTag(cursor.getString(7));\n\t\t\t\tlocationHandlerArray.setAmountables(cursor.getDouble(8));\n\t\t\t\tlocationHandlerArray.setDescription(cursor.getString(9));\n\t\t\t\tlocationHandlerArray.setBestSeller(cursor.getString(10));\n\t\t\t\tlocationHandlerArray.setWebsite(cursor.getString(11));\n\t\t\t\tlocationList.add(locationHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tdb.close();\n\t\treturn locationList;\n\t}", "public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }", "private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }", "public MapCalculator(ZanMinimap minimap) {\n \t\tmap = minimap.map;\n \t}", "public HashMap(int bins){\n\t\tthis.numOfBins=bins;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}" ]
[ "0.6132113", "0.6108429", "0.6098094", "0.6064384", "0.6051464", "0.6046143", "0.60228425", "0.5956235", "0.59461576", "0.59432244", "0.5916599", "0.58672833", "0.5862", "0.5854893", "0.5831626", "0.57992446", "0.5797992", "0.5747331", "0.5744049", "0.57216316", "0.57138383", "0.56742346", "0.56571877", "0.5640497", "0.5610684", "0.5604641", "0.55794144", "0.5575563", "0.55636847", "0.5553154", "0.5523901", "0.5504126", "0.54925287", "0.547419", "0.5460869", "0.5453066", "0.54427826", "0.54354715", "0.54351306", "0.5422399", "0.541174", "0.5400571", "0.5399024", "0.53954625", "0.5382828", "0.5376675", "0.53591067", "0.5352508", "0.53524566", "0.53504694", "0.53473103", "0.53455436", "0.53429973", "0.5335512", "0.5331796", "0.53253573", "0.5324287", "0.5321905", "0.5318756", "0.5318292", "0.5317116", "0.53163815", "0.5310064", "0.5309249", "0.53090143", "0.5306353", "0.5306123", "0.5297907", "0.5295173", "0.5289126", "0.52827185", "0.5281791", "0.5273814", "0.5264458", "0.52557886", "0.5250463", "0.5246552", "0.5243758", "0.5232944", "0.5220609", "0.5218688", "0.5214318", "0.5214297", "0.52132547", "0.52023154", "0.51902735", "0.51868665", "0.5180605", "0.51785135", "0.51784706", "0.51726013", "0.5172516", "0.51711184", "0.5168122", "0.515573", "0.5152383", "0.51476", "0.5146586", "0.5145786", "0.5145311", "0.51425165" ]
0.0
-1
Return a string of the letters NSEW which, if used to traverse the the maze from startingPoint, will reach a Place where isCheese() is true. Return null if you can't find such a path.
public String findCheese(Place startingPoint) { if (startingPoint==null) return null; visited.add(startingPoint); Stack<Place> vstdstack=new Stack<Place>(); vstdstack.add(startingPoint); //Stack<c> pather="start->"; while(!vstdstack.isEmpty()) { Place curpos=getNextPlace(vstdstack.peek()); if (curpos==null) { vstdstack.pop(); soln.deleteCharAt(soln.length()-1); continue; } if(curpos.isCheese()) return soln.toString(); else vstdstack.push(curpos); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String findPath(Maze maze) {\n \tint m = maze.getNumRows();\n \tint n = maze.getNumCols();\n\n \t//define a visited matrix\n \tboolean[][] visited = new boolean[m][n];\n \tsetvisited(false, visited);\n\n \t//define a direction matrix\n \tint[][] dir_mtr = new int[m][n];\n \tinit_dir(-1,dir_mtr);\n\n\n\n \t//define a stack\n \tStack<MazeLocation> s;\n \ts = new StackRefBased<MazeLocation>();\n\n \tMazeLocation entry = maze.getEntry();\n \tMazeLocation exit = maze.getExit();\n \t// System.out.println(entry.toString());\n \ts.push(entry);\n\n\t\tMazeLocation temp; \n\t\tString result = \"\"; \t\n\n\t\ttry{\n\t\t\tint x,y;\n\n\n\t\t\twhile(!s.isEmpty()){\n\n \t\ttemp = s.peek();\n \t\tx = temp.getRow();\n \t\ty = temp.getCol();\n \t\tdir_mtr[x][y]+=1;\n\n \t\tif(temp.toString().equals(exit.toString())){\n \t\t\tSystem.out.println(\"find the path\");\n \t\t\tbreak;\n\n \t\t}\n\n \t\tif(dir_mtr[x][y]==0){ \n \t\t\t//checking the up direction\n \t\t\tif(x-1>=0 && !maze.isWall(x-1,y) && !visited[x-1][y]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x-1,y,maze.isWall(x-1,y));\n \t\t\t\tvisited[x-1][y] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n\n \t\t}else if(dir_mtr[x][y]==1){\n \t\t\t//checking the left direction\n \t\t\tif(y-1>=0 && !maze.isWall(x,y-1) && !visited[x][y-1]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x,y-1,maze.isWall(x,y-1));\n \t\t\t\tvisited[x][y-1] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n\n \t\t}else if(dir_mtr[x][y]==2){\n \t\t\t//checking the down direction\n \t\t\tif(x+1<m && !maze.isWall(x+1,y) && !visited[x+1][y]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x+1,y,maze.isWall(x+1,y));\n \t\t\t\tvisited[x+1][y] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n \t\t\t\n \t\t}else if(dir_mtr[x][y]==3){\n \t\t\t//checking the right direction\n \t\t\tif(y+1<n && !maze.isWall(x,y+1) && !visited[x][y+1]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x,y+1,maze.isWall(x,y+1));\n \t\t\t\tvisited[x][y+1] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n \t\t\t\n \t\t}else{\n \t\t\tvisited[x][y] = false;\n \t\t\ts.pop();\n \t\t}\n\n\n\n \t\t\n \t}\n\n \t//reverse the stack\n \tStack<MazeLocation> reverse;\n \treverse = new StackRefBased<MazeLocation>();\n \twhile(!s.isEmpty()){\n\t\t\t reverse.push(s.pop()); \t//push the node to the reverse stack\n\t\t\t }\n\n\n \t//if the stack is not empty, then we find the path\n\t\tif(!reverse.isEmpty()){\n\t\t\tresult = reverse.toString();\n\n\t\t}\n\n \t\n \n\n\t\t}\n\t\tcatch (StackEmptyException see) {\n \n }\n\n\n \treturn result;\n\n\n }", "public Stack<MazePoint> DepthFirstSearch(int row, int column)\n {\n //cMaze[row][column].wasVisited()\n if(cMaze[row][column].isExit())\n {\n sPath.push(cMaze[row][column]);\n //print out the path\n PrintPath(sPath, true);\n return sPath;\n }\n else\n {\n //when not visit\n if(!cMaze[row][column].wasVisited())\n {\n if(cMaze[row][column].hasItem())\n {\n String itemName = cMaze[row][column].pickUpItem();\n Item item = new Item(itemName);\n //check if the item is in the hashmap\n if(availableItemsHashMap.get(item) != null)\n {\n inventoryList.insert(itemName);\n }\n else\n {\n cMaze[row][column].dropItem();\n }\n }\n //mark as vist\n cMaze[row][column].markVisited();\n //push into stack\n sPath.push(cMaze[row][column]);\n }\n //determine where to traverse next (S, E, W, N)\n //recursively\n if(cMaze[row+1][column].canBeNavigated() || cMaze[row+1][column].isExit())// or (cMaze[row+1][column] != VISITED_MARKER && cMaze[row+1][column] != 'W')\n {\n return DepthFirstSearch(row+1, column);\n }\n else if(cMaze[row][column+1].canBeNavigated() || cMaze[row][column+1].isExit())\n {\n return DepthFirstSearch(row, column+1);\n }\n else if(cMaze[row][column-1].canBeNavigated() || cMaze[row][column-1].isExit())\n {\n return DepthFirstSearch(row, column-1);\n }\n else if(cMaze[row-1][column].canBeNavigated() || cMaze[row-1][column].isExit())\n {\n return DepthFirstSearch(row-1, column);\n }\n //no where could go, then return\n else\n {\n sPath.pop();\n if(sPath.isEmpty())\n {\n //print nothing found\n PrintPath(sPath, false);\n return sPath;\n }\n MazePoint mp = sPath.top();\n int mpRow = mp.getRow();\n int mpColumn = mp.getColumn();\n return DepthFirstSearch(mpRow, mpColumn);\n }\n }\n }", "public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}", "@Override\r\n\tpublic Path findSeaPath(Point start, Point end) {\n\t\treturn null;\r\n\t}", "public XYPoint getSnakeHeadStartLocation();", "public void printShortestPath() {\n Cell[][] grid = maze.getGrid();\n\n for (int i = 0; i <= r; i++) {\n // Rows: This loop needs to iterate r times since there are r rows\n for (int j = 0; j < r; j++) {\n Cell currentCell;\n if (i == r) { // If it is on the last row, print the bottom row of the cells\n currentCell = grid[i - 1][j];\n System.out.print(currentCell.bottomRow());\n } else { // If it's not on the last row, print the top row of the cells\n currentCell = grid[i][j];\n System.out.print(currentCell.topRow());\n }\n }\n System.out.print(\"+\");\n System.out.println();\n\n // This loop only needs to iterate r-1 times since there is only r-1 \"|\" rows\n if (i != r) {\n for (int k = 0; k < r; k++) {\n Cell currentCell = grid[i][k];\n if ((i == 0 && k == 0))\n System.out.print(currentCell.zeroDistanceColumn2());\n else if (parents.contains(currentCell))\n System.out.print(currentCell.zeroDistanceColumn2());\n else\n System.out.print(currentCell.distanceColumn2());\n }\n System.out.print(\"|\");\n System.out.println();\n }\n }\n }", "public static void findShortestPath(char[][] maze) {\n\t\tboolean visited[][] = new boolean[maze.length][maze[0].length]; \n\t\tint srcX = 0, srcY = 0;\n\t\t// find the source\n\t\tfor(int i=0; i<maze.length; i++) {\n\t\t\tfor(int j=0; j<maze[0].length; j++) {\n\t\t\t\tif(maze[i][j] == 's') {\n\t\t\t\t\tsrcX = i; srcY=j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tboolean pe = doGridBFS(maze,visited,srcX,srcY);\n\t\tSystem.out.println(pe);\n\t\t\n\t}", "private String getPossibleDirections() {\n\t\t\n\t\tString directionsToReturn=\"\";\n\t\t\n\t\tif(entity.getFrontCell() != null) {\n\t\t\t\n\t\tHashSet<E_Direction> possibleDirections = entity.getFrontCell().getPossibleDirections();\n\t\tint size=possibleDirections.size();\n\t\t\n\t\tE_Direction[] directions = new E_Direction[size];\n\t\tdirections = possibleDirections.toArray(directions);\n\t\t\n\t\tif(size > 1) directionsToReturn = directions[0].toString()+\",\"+directions[1].toString(); \n\t\n\t\telse\n directionsToReturn = directions[0].toString();\n\t\n\t\t}\n\t\t\n\t\t\n\t\treturn directionsToReturn; // the directons text to string\n\t\t\n\t}", "public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }", "public abstract void calcPathToKing(Space kingSpot);", "String computeNextLawnPosition();", "public abstract List<Direction> searchForCheese(Maze maze);", "public String getWinner(){\n\t\tswitch (hatGewonnen) {\n\t\tcase \"Spieler O\":\n\t\t\treturn \"o\";\n\t\tcase \"Spieler X\":\n\t\t\treturn \"x\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}", "private List<BoardPos> getStrikesCrown(BoardPos from) {\n Queue<BoardPos> search = new LinkedList<>(); search.add(from);\n List<BoardPos> result = new ArrayList<>();\n final int[] direction = {-1, 1};\n\n // below is essentially a level-order tree transverse algorithm\n while (!search.isEmpty()) {\n // some new positions found from the current search position?\n boolean finalPos = true;\n // go in all 4 orthogonal directions\n for (int dirX : direction)\n for (int dirY : direction) {\n // initial next position to check in this direction\n BoardPos pos = search.peek().add(dirX, dirY);\n // some pieces already stricken in this direction\n BoardPos strike = null;\n // copy route up to this point\n pos.setRoute(new ArrayList<>(search.peek().getRoute()));\n\n // this goes through all potential legal positions in this\n // direction, before and after first(!) strike\n while (pos.inBounds(board.side()) &&\n (board.get(pos).isEmpty() ||\n (pos.add(dirX, dirY).inBounds(board.side()) &&\n board.get(pos.add(dirX, dirY)).isEmpty() &&\n board.get(from).color() != board.get(pos).color()))) {\n // this position contains a piece that can be stricken\n // for the first time in this route (no infinite loops)\n if (!board.get(pos).isEmpty() && board.get(from).color()\n != board.get(pos).color() && !pos.getRoute().contains(pos) &&\n pos.add(dirX, dirY).inBounds(board.side()) &&\n board.get(pos.add(dirX, dirY)).isEmpty()) {\n strike = new BoardPos(pos);\n finalPos = false;\n pos = pos.add(dirX, dirY);\n // stricken pieces added to route so that they will\n // be highlighted & removed later\n pos.addToRoute(strike);\n }\n // add all positions after strike to\n if (strike != null && !pos.equals(strike))\n search.add(pos);\n\n // next position in current direction\n pos = pos.add(dirX, dirY);\n }\n }\n\n if (finalPos && !search.peek().equals(from))\n result.add(search.peek());\n\n // next element in search\n search.poll();\n }\n\n // filter strikes shorter than maximum length\n return filterShorter(result);\n }", "public String getRootMove();", "public Stack<Node> findPath(Node initial_node, Node end_node) {\r\n\r\n // TODO: check for hardcoded value 3\r\n int size = 3;\r\n boolean is_start_node = true;\r\n\r\n PriorityList priority_list = new PriorityList();\r\n LinkedList linked_list = new LinkedList();\r\n\r\n // Initialise start node\r\n initial_node.total_path_cost = 0;\r\n initial_node.cost_estimated_to_goal_node = initial_node.pathCost(end_node);\r\n initial_node.parent_node_in_path = null;\r\n priority_list.add(initial_node);\r\n\r\n // Begin exploration of grid map\r\n while (!priority_list.isEmpty()) {\r\n\r\n // Get node from head of list\r\n Node node = (Node) priority_list.removeFirst();\r\n\r\n // Determine if node is Start node\r\n if (node == initial_node)\r\n is_start_node = true;\r\n else\r\n is_start_node = false;\r\n\r\n ((Node) node).setFacing();\r\n\r\n // Determine if node is goal node\r\n if (node == end_node) {\r\n return constructPath(end_node);\r\n }\r\n\r\n // Get list of node neighbours\r\n List neighbors_list = node.getNeighbors();\r\n\r\n // Iterate through list of node neighbours\r\n for (int i = 0; i < neighbors_list.size(); i++) {\r\n\r\n // Extract neighbour node information\r\n Node node_neighbour = (Node) neighbors_list.get(i);\r\n boolean isOpen = priority_list.contains(node_neighbour);\r\n boolean isClosed = linked_list.contains(node_neighbour);\r\n boolean isObs = (node_neighbour).isObs();\r\n int clearance = node_neighbour.getClearance();\r\n float total_path_cost = node.getCost(node_neighbour, end_node, is_start_node) + 1;\r\n\r\n // Check 1. if node neighbours have not been explored OR 2. if shorter path to\r\n // neighbour node exists\r\n if ((!isOpen && !isClosed) || total_path_cost < node_neighbour.total_path_cost) {\r\n node_neighbour.parent_node_in_path = node;\r\n node_neighbour.total_path_cost = total_path_cost;\r\n node_neighbour.cost_estimated_to_goal_node = node_neighbour.pathCost(end_node);\r\n\r\n // Add neighbour node to priority_list if 1. node not in\r\n // priority_list/linked_list AND 2.\r\n // robot can reach\r\n if (!isOpen && !isObs && size == clearance) {\r\n priority_list.add(node_neighbour);\r\n }\r\n }\r\n }\r\n linked_list.add(node);\r\n }\r\n\r\n // priority_list empty; no path found\r\n\r\n return new Stack<Node>();\r\n }", "public String getShortestPath(T begin, T end);", "public static String findDirection(XYLocation initial, XYLocation goingTo) {\n\t\tfloat goingToX = goingTo.getX();\n\t\tfloat goingToY = goingTo.getY();\n\t\tfloat initialX = initial.getX();\n\t\tfloat inititalY = initial.getY();\n\t\tfloat theta = (float) Math.atan2(goingToY - inititalY, goingToX - initialX);\n\t\t\n\t\tif (Math.abs(theta) <= oneEighthPI && Math.abs(theta) >= negOneEighthPI) {\n\t\t\t\treturn \"East\";\n\t\t\t} else if (theta > oneEighthPI && theta < threeEighthsPI) {\n\t\t\t\treturn \"SouthEast\";\n\t\t\t} else if (theta > negThreeEighthsPI && theta < negOneEighthPI) {\n\t\t\t\treturn \"NorthEast\";\n\t\t\t} else if (theta > threeEighthsPI && theta < fiveEighthsPI) {\n\t\t\t\treturn \"South\";\n\t\t\t} else if (theta > negFiveEighthsPI && theta < negThreeEighthsPI){\n\t\t\t\treturn \"North\";\n\t\t\t} else if (theta > fiveEighthsPI && theta < sevenEighthsPI) {\n\t\t\t\treturn \"SouthWest\";\n\t\t\t} else if (theta > negSevenEighthsPI && theta < negFiveEighthsPI) {\n\t\t\t\treturn \"NorthWest\";\n\t\t\t} else {\n\t\t\t\treturn \"West\";\n\t\t\t}\n\t}", "private Stack<MapLocation> findPath(State.StateView state)\n {\n Unit.UnitView townhallUnit = state.getUnit(townhallID);\n Unit.UnitView footmanUnit = state.getUnit(footmanID);\n \n MapLocation startLoc = new MapLocation(footmanUnit.getXPosition(), footmanUnit.getYPosition(), null, 0);\n \n MapLocation goalLoc = new MapLocation(townhallUnit.getXPosition(), townhallUnit.getYPosition(), null, 0);\n \n MapLocation footmanLoc = null;\n if(enemyFootmanID != -1) {\n Unit.UnitView enemyFootmanUnit = state.getUnit(enemyFootmanID);\n footmanLoc = new MapLocation(enemyFootmanUnit.getXPosition(), enemyFootmanUnit.getYPosition(), null, 0);\n }\n \n // get resource locations\n List<Integer> resourceIDs = state.getAllResourceIds();\n Set<MapLocation> resourceLocations = new HashSet<MapLocation>();\n for(Integer resourceID : resourceIDs)\n {\n ResourceNode.ResourceView resource = state.getResourceNode(resourceID);\n \n resourceLocations.add(new MapLocation(resource.getXPosition(), resource.getYPosition(), null, 0));\n }\n \n return AstarSearch(startLoc, goalLoc, state.getXExtent(), state.getYExtent(), footmanLoc, resourceLocations);\n }", "public Stack<Node> retrieve_fastest_path() {\r\n return findPath(initial_node, end_node);\r\n }", "public String findShortestRoute(char start, char finish) {\r\n PriorityQueue<Vertex> Q = new PriorityQueue<>(new Comparator<Vertex>() {\r\n @Override\r\n public int compare(Vertex v1, Vertex v2) {\r\n return Integer.compare(v1.getDistanceFromStart(), v2.getDistanceFromStart());\r\n }\r\n });\r\n\r\n Vertex startVert = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == start) {\r\n v.setDistanceFromStart(0);\r\n v.setPrevious(v);\r\n startVert = v;\r\n }\r\n else {\r\n v.setDistanceFromStart(Integer.MAX_VALUE);\r\n v.setPrevious(null);\r\n }\r\n Q.add(v);\r\n }\r\n if(startVert == null) {\r\n throw new IllegalArgumentException(\"start vertex is not in graph\");\r\n }\r\n\r\n Vertex finishVert = null;\r\n while(!Q.isEmpty()) {\r\n Vertex v = Q.remove(); // remove first vertex in queue, the shortest path has been found to this vertex\r\n if(v.getName() == finish) {\r\n finishVert = v;\r\n break; // finish quicker\r\n }\r\n for(Edge incidentEdge : v.getIncidentEdges()) {\r\n Vertex adjacentVertex = incidentEdge.getOppositeVertex(v);\r\n int alt = v.getDistanceFromStart() + incidentEdge.getDistance();\r\n if(alt < adjacentVertex.getDistanceFromStart()) { // if going through this edge shortens the route to adjacentVertex\r\n adjacentVertex.setDistanceFromStart(alt);\r\n adjacentVertex.setPrevious(v);\r\n Q.remove(adjacentVertex); // increase the priority of adjacent vertices if this vertex shortens their route\r\n Q.add(adjacentVertex);\r\n }\r\n }\r\n }\r\n \r\n // throw exception if finish vertex not found\r\n if(finishVert == null) {\r\n throw new IllegalArgumentException(\"finish vertex is not in graph\");\r\n }\r\n \r\n // build the return value by adding vertex names from finish to start,\r\n // reversing the string, then concatenating the distance\r\n StringBuilder sb = new StringBuilder();\r\n for(Vertex v = finishVert; v != startVert; v = v.getPrevious()) {\r\n sb.append(v.getName());\r\n }\r\n return sb.append(start).reverse().append(finishVert.getDistanceFromStart()).toString();\r\n }", "public String findMyFleet() {\n String boatLocations = \"Your fleet consists of \" + NUM_BOATS + \" boat(s):\\n\";\n for (int i = 0; i < NUM_BOATS; i++) {\n boatLocations += \"Boat \" + (i+1) + \" is \" + fleet.get(i).getLength() + \" units long and \"\n + \"is at (\" + fleet.get(i).getStartX() + \", \" + fleet.get(i).getStartY() + \") and (\" \n + fleet.get(i).getEndX() + \", \" + fleet.get(i).getEndY() + \").\";\n boatLocations += (fleet.get(i).getIsSunk()) ? \" It has been sunk.\\n\" : \" It has not been sunk.\\n\";\n }\n return boatLocations;\n }", "public String getShortestPath(int goal) throws Throwable {\n if (goal < 0) {\n return \"There is no path\";\n }\n Queue<Integer> stack = new Queue<>(new Integer[10]); \n int previous = path[goal];\n if (previous == -1) {\n return \"There is no path\";\n }\n while (previous != 0) {\n stack.push(previous);\n previous = path[previous];\n }\n String ret = \"0 > \";\n while (!stack.isEmpty()) {\n ret = ret + (stack.poll() + \" > \");\n }\n return \"\" + ret + goal;\n }", "private int heuristic(Node node, int currentDepth) {\n\n int ef, w1 = 1, w2 = 1, w3 = 0, w4 = 10, w5 = 1, w6 = 35, e1 = 0, e2 = 0, e3 = 0, e4 = 0, e5 = 0, e6 = 0;\n\n int ourSeedsInStore = node.getBoard().getSeedsInStore(ourSide);\n int oppSeedsInStore = node.getBoard().getSeedsInStore(ourSide.opposite());\n\n\n // hardcode fix.\n int parentOurSeedsInStore = 0;\n int parentOppSeedsInStore = 0;\n int parentMove = 0;\n int parentOurSeedsInHouse = 0;\n int parentOppSeedsInHouse = 0;\n\n if (currentDepth != 1) {\n parentOurSeedsInStore = node.getParent().getBoard().getSeedsInStore(ourSide);\n parentOppSeedsInStore = node.getParent().getBoard().getSeedsInStore(ourSide.opposite());\n parentMove = node.getName();\n parentOurSeedsInHouse = node.getParent().getBoard().getSeeds(ourSide, parentMove);\n parentOppSeedsInHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), parentMove);\n }\n\n int ourFreeHouse = 0;\n int oppFreeHouse = 0;\n int ourSeeds = ourSeedsInStore;\n int oppSeeds = oppSeedsInStore;\n\n int asdf1 = ourSeedsInStore - parentOurSeedsInStore;\n int asdf2 = oppSeedsInStore - parentOppSeedsInStore;\n\n e6 = asdf1 - asdf2;\n\n for (int i = 1; i <= 7; i++) {\n ourSeeds += node.getBoard().getSeeds(ourSide, i);\n oppSeeds += node.getBoard().getSeeds(ourSide.opposite(), i);\n }\n\n for (int i = 1; i <= 7; i++) {\n if (node.getBoard().getSeeds(ourSide, i) == 0)\n ourFreeHouse++;\n if (node.getBoard().getSeeds(ourSide.opposite(), i) == 0)\n oppFreeHouse++;\n }\n\n e1 = ourSeeds - oppSeeds;\n e2 = ourFreeHouse - oppFreeHouse;\n\n // hardcode fix.\n if (currentDepth != 1) {\n if (node.getParent().getPlayerSide() == this.getOurSide()) {\n // if last move puts seed into store\n if ((parentMove + parentOurSeedsInHouse) % 8 == 0) {\n e4 = 1;\n e3 = (parentMove + parentOurSeedsInHouse) / 8;\n } else if (parentMove + parentOurSeedsInStore > 8) {\n e4 = 0;\n e3 = (parentMove + parentOurSeedsInStore) / 8;\n }\n\n for (int i = 1; i <= 7; i++) {\n int parentOurSeedsInCurrentHouse = node.getParent().getBoard().getSeeds(ourSide, i);\n int parentOppSeedsInFrontHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), 8 - i);\n int oppSeedsInFrontHouse = node.getBoard().getSeeds(ourSide.opposite(), 8 - i);\n // if there's no seed in current house && there is seed right in front of us\n if ((parentOurSeedsInCurrentHouse == 0 || parentOurSeedsInCurrentHouse == 15) && parentOppSeedsInFrontHouse != 0 && oppSeedsInFrontHouse == 0) {\n if (currentDepth != 2) {\n if (node.getParent().getParent().getPlayerSide() == this.getOurSide()) {\n w5 = 5;\n e5 = parentOppSeedsInFrontHouse;\n break;\n }\n }\n e5 = parentOppSeedsInFrontHouse;\n break;\n }\n\n }\n } else if (node.getParent().getPlayerSide() == this.getOurSide().opposite()) {\n\n if (parentMove + parentOppSeedsInHouse == 8) {\n e4 = -1;\n e3 = -1 * (parentMove + parentOppSeedsInHouse) / 8;\n } else if (parentMove + parentOppSeedsInStore > 8) {\n e4 = 0;\n e3 = -(parentMove + parentOppSeedsInStore) / 8;\n }\n\n\n for (int i = 1; i <= 7; i++) {\n int parentOppSeedsInCurrentHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), i);\n int parentOurSeedsInFrontHouse = node.getParent().getBoard().getSeeds(ourSide, 8 - i);\n int oppSeedsInCurrentHouse = node.getBoard().getSeeds(ourSide, 8 - i);\n\n if ((parentOppSeedsInCurrentHouse == 0 || parentOppSeedsInCurrentHouse == 15) && parentOurSeedsInFrontHouse != 0 && oppSeedsInCurrentHouse == 0) {\n if (currentDepth != 2) {\n if (node.getParent().getParent().getPlayerSide() == this.getOurSide()) {\n w5 = 5;\n e5 = -parentOurSeedsInFrontHouse;\n break;\n }\n }\n w5 = 5;\n e5 = -parentOurSeedsInFrontHouse;\n break;\n }\n }\n }\n }\n ef = w1 * e1 + w2 * e2 + w3 * e3 + w4 * e4 + w5 * e5 + w6 * e6;\n return ef;\n }", "public Position findWeedPosition() {\n int x = 0;\n int y = 0;\n int sum = 0;\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(sum==0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n x = i;\n y = j;\n sum = tmpSum;\n }\n }\n else {\n x = i;\n y = j;\n sum = tmpX + tmpY;\n\n }\n }\n }\n\n }\n }\n return new Position(x,y);\n }", "public String checkCheese() {\n\n\n int j = 1;\n\n while (j < _cheese.getY() + 2) {\n\n for (int i = 1; i < _cheese.getX() + 1; i++) {\n\n int i2 = i;\n int j2 = j;\n\n\n if (_cheese.getCellArray()[i2][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2].isVisited()) {\n int temp1 = i2;\n int temp2 = j2;\n _holeCount++;\n while ((\n\n (_cheese.getCellArray()[i2 + 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2].isVisited()) ||\n\n\n (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited()) ||\n\n\n (_cheese.getCellArray()[i2][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2 + 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2].isVisited()) ||\n\n (_cheese.getCellArray()[i2 - 1][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 - 1][j2 - 1].isVisited()) ||\n\n (_cheese.getCellArray()[i][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i][j2 - 1].isVisited()) ||\n\n (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited())\n\n )) {\n if (_cheese.getCellArray()[i2 + 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2].setVisited(true);\n i2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2 + 1][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2 + 1].setVisited(true);\n i2++;\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2][j2 + 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2 + 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 - 1][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 - 1][j2 - 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2][j2 - 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2][j2 - 1].setVisited(true);\n j2++;\n _holeCount++;\n } else if (_cheese.getCellArray()[i2 + 1][j2 + 1].getCheeseCell() == \"*\" && !_cheese.getCellArray()[i2][j2 + 1].isVisited()) {\n _cheese.getCellArray()[i2 + 1][j2 + 1].setVisited(true);\n j2++;\n\n }\n\n\n }\n _cheese.getCellArray()[temp1][temp2].setVisited(true);\n if (_holeCount > _biggestHole) {\n _biggestHole = _holeCount;\n }\n }\n _cheese.getCellArray()[i2][j2].setVisited(true);\n\n\n }\n\n\n j++;\n }\n\n\n return \"hole-count: \" + _holeCount + \"\\n\" +\n \"biggest hole edge: \" + _biggestHole;\n\n }", "private String hardMove() {\n return super.makeAMove(getBestMoveForBlack(FORESEEN_MOVES * 2));\n }", "public String search() {\r\n currentRoom = player.getCurrentRoom();\r\n String res = \"You start searching the room....\";\r\n if (currentRoom.getChestSize() > 0) {\r\n res += \"You find a treasure chest in the corner...\" + System.lineSeparator();\r\n res += \"You pick up the following items from the chest and put them in your backpack\" + System.lineSeparator();\r\n res += currentRoom.getItemsInChest();\r\n } else {\r\n res = \"You find nothing of intrest in the room...\";\r\n }\r\n return res;\r\n }", "public String playerNear(){\r\n\t\tif(AdventureManager.toon.x + 25 > x-200 && AdventureManager.toon.x +25 < x) return \"left\";\r\n\t\telse if(AdventureManager.toon.x +25 < x+250 && AdventureManager.toon.x +25 > x) return \"right\";\r\n\t\telse return \"n\";\r\n\t}", "public boolean isPathToCheese(Maze maze, List<Direction> path);", "private LinkedList<Node> aStarPath() throws PathNotFoundException {\n\n // Set of nodes already evaluated\n List<Node> closedSet = new ArrayList<Node>();\n\n // Set of nodes visited, but not evaluated\n List<Node> openSet = new ArrayList<Node>();\n openSet.add(start);\n\n\n // Map of node with shortest path leading to it\n Map<Node, Node> cameFrom = new HashMap<>();\n\n // Map of cost of navigating from start to node\n Map<Node, Double> costFromStart = new HashMap<>();\n costFromStart.put(start, 0.0);\n\n // Map of cost of navigating path from start to end through node\n Map<Node, Double> costThrough = new HashMap<>();\n costThrough.put(start, heuristic(start, end));\n\n while (!openSet.isEmpty()){\n\n Node current = lowestCostThrough(openSet, costThrough);\n\n if(current.equals(end)){\n return reconstructPath(cameFrom, current);\n }\n\n openSet.remove(current);\n closedSet.add(current);\n\n for(Node neighbor: current.getNodes()) {\n if (closedSet.contains(neighbor)) {\n continue;\n }\n\n double tentativeCost = costFromStart.get(current) + distanceBetween(current, neighbor);\n\n if (!openSet.contains(neighbor)) { // found new neighbor\n openSet.add(neighbor);\n } else if (tentativeCost >= costFromStart.get(neighbor)) { // not a better path\n continue;\n }\n\n cameFrom.put(neighbor, current);\n costFromStart.put(neighbor, tentativeCost);\n costThrough.put(neighbor, tentativeCost + heuristic(neighbor, end));\n\n }\n }\n // no path\n throw pathNotFound;\n }", "public String runFindPath(String initialWord, String finalWord){\n\t\twords = load(\"dict.dat\", initialWord);\n\t\tif((words.contains(initialWord))&&(words.contains(finalWord))){\n\t\t\tSimpleGraph<String, DefaultEdge> graph = new SimpleGraph<String, DefaultEdge>(DefaultEdge.class);\n\t\t\tinitialise(initialWord, words.size(), graph);\n\t\t\ttry{\n\t\t\t\tDijkstraShortestPath<String, DefaultEdge> algorithm = new DijkstraShortestPath<String, DefaultEdge>(graph, initialWord, finalWord);\n\t\t\t\tList<String> list = Graphs.getPathVertexList(algorithm.getPath());\n\t\t\t\tString output=\"\";\n\t\t\t\tint i=0;\n\t\t\t\tfor(String s: list){\n\t\t\t\t\tif(i==15){\n\t\t\t\t\t\toutput=output+\"\\n\";\n\t\t\t\t\t\ti=0;\n\t\t\t\t\t}\n\t\t\t\t\toutput=output+s+\", \";\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\toutput = output.substring(0,output.length()-2);\n\t\t\t\treturn output;\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.err.println(\"Can't find a path between the words!\");\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Can't find a path between the words!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}else{\n\t\t\tif(!(words.contains(initialWord))){\n\t\t\t\tSystem.err.println(\"There is no such word as '\"+initialWord+\"' in the dictionary!\");\n\t\t\t\tJOptionPane.showMessageDialog(null,\"There is no such word as '\"+initialWord+\"' in the dictionary!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t\tif(!(words.contains(finalWord))){\n\t\t\t\tSystem.err.println(\"There is no such word as '\"+finalWord+\"' in the dictionary!\");\n\t\t\t\tJOptionPane.showMessageDialog(null,\"There is no such word as '\"+finalWord+\"' in the dictionary!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "public String getPath() {\n if (foundNemo) {\n return path;\n } else {\n path = \"Uh Oh!! Could not find Nemo!!\";\n return path;\n }\n }", "public String playerRealNear(){\r\n\t\tif(AdventureManager.toon.x + 25 > x-50 && AdventureManager.toon.x +25 < x) return \"left\";\r\n\t\telse if(AdventureManager.toon.x +25 < x+100 && AdventureManager.toon.x +25 > x) return \"right\";\r\n\t\telse return \"n\";\r\n\t}", "public Path findLandPath(Point start, Point end) {\n\t\treturn null;\r\n\t}", "private String displayText() {\n // Location is unknown, tell the user as such.\n if (!storage.explored[numX][numY])\n return \" Unknown Location\";\n // Uses the specific cell to generate the name.\n if (numX == 8 && numY == 4)\n return \" Great Hollow Entrance\";\n if ((numY == 3 || numY == 2 || numY == 1) && (numX == 7 || numX == 8 || numX == 9))\n return \" Faron Woods\";\n if (numY == 0 && (numX == 7 || numX == 8))\n return \" Faron Woods\";\n if (numY == 4 && (numX == 7 || numX == 9))\n return \" Faron Woods\";\n if (numY == 5 && (numX == 7 || numX == 9))\n return \" Faron Woods Entrance\";\n if (numY == 5 && numX == 8)\n return \" Carthell Village Outskirts\";\n if ((numY == 7 || numY == 8) && numX == 7)\n return \" Carthell Village Outskirts\";\n if (numY == 6 && numX == 8)\n return \" Aragoth's Fountain\";\n if (numY == 6 && numX == 7)\n return \" Unoccupied House\";\n if (numY == 9 && numX == 11)\n return \" Carthell Library\";\n if (numY == 8 && numX == 10)\n return \" Carthell Marketplace\";\n if (numY == 7 && numX == 11)\n return \" Four Statue Square\";\n if (numY == 6 && (numX == 9 || numX == 10 || numX == 11 || numX == 12))\n return \" Carthell Village\";\n if (numY == 7 && (numX == 8 || numX == 9 || numX == 10 || numX == 12))\n return \" Carthell Village\";\n if (numY == 8 && (numX == 8 || numX == 9 || numX == 11 || numX == 12))\n return \" Carthell Village\";\n if (numY == 9 && (numX == 8 || numX == 9 || numX == 10 || numX == 12))\n return \" Carthell Village\";\n if (numX == 10 && numY == 3)\n return \" Fairy Queen's Fountain\";\n return \"\";\n }", "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }", "public static int[] getKnightStart(int[][] piecePos, int endFile,\n int endRank) {\n for (int[] pos: piecePos) {\n if ((pos[0] + 1 == endFile || pos[0] - 1 == endFile)\n && (pos[1] + 2 == endRank || pos[1] - 2 == endRank)) {\n int[] startPos = {pos[0], pos[1]};\n\n if (isLegalMove(startPos, endFile, endRank)) {\n return startPos;\n }\n } else if ((pos[0] + 2 == endFile || pos[0] - 2 == endFile)\n && (pos[1] + 1 == endRank\n || pos[1] - 1 == endRank)) {\n int[] startPos = {pos[0], pos[1]};\n\n if (isLegalMove(startPos, endFile, endRank)) {\n return startPos;\n }\n }\n }\n\n return null;\n }", "public char checkWinner() {\r\n // Vertical\r\n if (board[0][0] == board[0][1] && board[0][1] == board[0][2] && board[0][0] != '-') {\r\n return board[0][0];\r\n }\r\n else if (board[1][0] == board[1][1] && board[1][1] == board[1][2] && board[1][0] != '-') {\r\n return board[1][0];\r\n }\r\n else if (board[2][0] == board[2][1] && board[2][1] == board[2][2] && board[2][0] != '-') {\r\n return board[2][0];\r\n }\r\n // Horizontal\r\n else if (board[0][0] == board[1][0] && board[1][0] == board[2][0] && board[0][0] != '-') {\r\n return board[0][0];\r\n }\r\n else if (board[0][1] == board[1][1] && board[1][1] == board[2][1] && board[0][1] != '-') {\r\n return board[0][1];\r\n }\r\n else if (board[0][2] == board[1][2] && board[1][2] == board[2][2] && board[0][2] != '-') {\r\n return board[0][2];\r\n }\r\n // Diagonal\r\n else if (board[0][0] == board[1][1] && board[1][1] == board[2][2] && board[0][0] != '-') {\r\n return board[0][0];\r\n }\r\n else if (board[0][2] == board[1][1] && board[1][1] == board[2][0] && board[0][2] != '-') {\r\n return board[0][2];\r\n }\r\n // Tie\r\n else {\r\n for (int y = 0; y < 3; y++) {\r\n for (int x = 0; x < 3; x++) {\r\n if (board[x][y] == '-')\r\n return 'N';\r\n }\r\n }\r\n return 'T';\r\n }\r\n }", "private void findBestPath(){\n\t\t// The method will try to find the best path for every starting point and will use the minimum\n\t\tfor(int start = 0; start < this.getDimension(); start++){\n\t\t\tfindBestPath(start);\t\n\t\t}\t\n\t}", "public LinkedList<Node> shortestPath() throws PathNotFoundException {\n // Which strategy shall we use?\n ApplicationConfiguration config = ApplicationConfiguration.getInstance();\n switch(config.getCurrentSearchAlgorithm()) {\n case A_STAR:\n return aStarPath();\n case BFS:\n return bfsPath();\n case DFS:\n return dfsPath();\n default:\n return null;\n }\n }", "public void findShortestPath() {\r\n\t\t\r\n\t\t//Create a circular array that will store the possible next tiles in the different paths.\r\n\t\tOrderedCircularArray<MapCell> path = new OrderedCircularArray<MapCell>();\r\n\t\t\r\n\t\t//Acquire the starting cell.\r\n\t\tMapCell starting = cityMap.getStart();\r\n\t\t\r\n\t\t//This variable is to be updated continuously with the cell with the shortest distance value in the circular array.\r\n\t\tMapCell current=null;\r\n\t\t\r\n\t\t//This variable is to check if the destination has been reached, which is initially false.\r\n\t\tboolean destination = false;\r\n\t\t\r\n\t\t//Add the starting cell into the circular array, and mark it in the list.\r\n\t\tpath.insert(starting, 0);\r\n\t\t\r\n\t\tstarting.markInList(); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//As long as the circular array isn't empty, and the destination hasn't been reached, run this loop.\r\n\t\t\twhile(!path.isEmpty()&&!destination) {\r\n\t\t\t\t\r\n\t\t\t\t//Take the cell with the shortest distance out of the circular array, and mark it accordingly.\r\n\t\t\t\tcurrent = path.getSmallest();\r\n\t\t\t\tcurrent.markOutList();\r\n\t\t\t\t\r\n\t\t\t\tMapCell next;\r\n\t\t\t\tint distance;\r\n\t\t\t\t\r\n\t\t\t\tif(current.isDestination()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tdestination = true; //If the current cell is the destination, end the loop.\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t\tnext = nextCell(current); //Acquire the next possible neighbour of the current cell.\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Don't run if next is null, meaning there is no other possible neighbour in the path for the current cell.\r\n\t\t\t\t\twhile(next!=null) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = current.getDistanceToStart() + 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//If the distance of the selected neighbouring cell is currently more than 1 more than the current cell's \r\n\t\t\t\t\t\t//distance, update the distance of the neighbouring cell. Then, set the current cell as its predecessor.\r\n\t\t\t\t\t\tif(next.getDistanceToStart()>distance) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tnext.setDistanceToStart(distance);\r\n\t\t\t\t\t\t\tnext.setPredecessor(current);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = next.getDistanceToStart(); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(next.isMarkedInList() && distance<path.getValue(next)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.changeValue(next, distance); //If the neighbouring cell is in the circular array, but with a \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //larger distance value than the new updated distance, change its value.\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if(!next.isMarkedInList()){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.insert(next, distance); //If the neighbouring cell isn't in the circular array, add it in.\r\n\t\t\t\t\t\t\tnext.markInList();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tnext = nextCell(current); //Look for the next possible neighbour, if any.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Catch all the possible exceptions that might be thrown by the method calls. Print the appropriate messages.\r\n\t\t} catch (EmptyListException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidNeighbourIndexException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"The program tried to access an invalid neighbour of a tile.\");\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidDataItemException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage()+\" Path finding execution has stopped.\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//If a path was found, print the number of tiles in the path.\r\n\t\tif(destination) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Number of tiles in path: \" + (current.getDistanceToStart()+1));\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"No path found.\"); //Otherwise, indicate that a path wasn't found.\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public char printWinner ()\n {\n\tif (a == b && a == c && a != ' ')\n\t return a;\n\telse if (d == e && d == f && d != ' ')\n\t return d;\n\telse if (g == h && g == i && g != ' ')\n\t return g;\n\telse if (a == d && a == g && a != ' ')\n\t return a;\n\telse if (b == e && b == h && b != ' ')\n\t return b;\n\telse if (c == f && c == i && c != ' ')\n\t return c;\n\telse if (a == e && a == i && a != ' ')\n\t return a;\n\telse if (g == e && g == c && g != ' ')\n\t return g;\n\telse\n\t return t;\n\n\n }", "private List<Integer> depthFirstSearch(String sequence) {\r\n LinkedList<Integer> stack = new LinkedList<Integer>();\r\n LinkedList<Integer> wordPos = new LinkedList<Integer>();\r\n List<Integer> neighbors = null;\r\n //string pos counter\r\n int c = 0;\r\n int index = -1;\r\n //find starting pos\r\n for (int i = 0; i < squareDimension * squareDimension; i++) {\r\n if (sequence.toUpperCase().startsWith(this.elementAtPos(i))) {\r\n this.clearMarks();\r\n wordPos.clear();\r\n stack.clear();\r\n //depth-first search\r\n stack.push(i);\r\n togglePosMark(i);\r\n wordPos = (LinkedList<Integer>) \r\n dfsRecursive(stack, sequence.substring(\r\n elementAtPos(i).length(), sequence.length())\r\n .toUpperCase(), elementAtPos(i).length(), \r\n i, sequence.length());\r\n if (wordPos.size() != 0) {\r\n return wordPos;\r\n }\r\n }\r\n }\r\n //no result so return empty list\r\n return new LinkedList<Integer>();\r\n }", "public static String structureTraceback(){\r\n // Set multipleOptimal to false\r\n boolean multipleOptimal = false;\r\n\r\n // Set i,j values to 0\r\n int i = 0;\r\n int j = 0;\r\n\r\n // Set isPair to false\r\n boolean isPair = false;\r\n\r\n // Initialize string to store structure\r\n StringBuilder optimalStructure = new StringBuilder();\r\n\r\n // Loop through to traceback\r\n for (int k = 0; k < sequence.length()-1; k++) {\r\n // First thing to be added to string builder\r\n if (k == 0) {\r\n // Check if there are multiple paths\r\n if(DPMatrix[0][sequence.length() - 1] == DPMatrix[0][sequence.length() - 2] && DPMatrix[0][sequence.length() -1] == DPMatrix[1][sequence.length()-1]){\r\n // Set multiple optimal to true\r\n multipleOptimal = true;\r\n\r\n // Came from the left\r\n i = 0;\r\n\r\n // Keep going left\r\n j = sequence.length() - 2;\r\n\r\n // Add to optimal structure\r\n optimalStructure.insert(0,\".\");\r\n\r\n } else if (DPMatrix[0][sequence.length() - 1] == DPMatrix[0][sequence.length() - 2]) {\r\n // Came from left\r\n i = 0;\r\n\r\n // Keep going left\r\n j = sequence.length() - 2;\r\n\r\n // Add to optimal structure\r\n optimalStructure.insert(0,\".\");\r\n\r\n } else if (DPMatrix[0][sequence.length() - 1] == DPMatrix[1][sequence.length() - 1]){\r\n // Came from up\r\n i = 1;\r\n\r\n // Don't go left\r\n j = sequence.length() - 1;\r\n\r\n // Add to optimal structure\r\n optimalStructure.insert(0,\".\");\r\n\r\n } else if (checkPair(sequence.charAt(0), sequence.charAt(sequence.length() - 1)) == 1) {\r\n // Came from up (diagonal)\r\n i = 1;\r\n\r\n // Go left\r\n j = sequence.length() - 2;\r\n\r\n // It is a pair (with -2)\r\n isPair = true;\r\n\r\n // Add to optimal structure\r\n optimalStructure.insert(0, \"(\");\r\n\r\n } else if (checkPair(sequence.charAt(0), sequence.charAt(sequence.length() - 1)) == 2) {\r\n // Came form up (diagonal)\r\n i = 1;\r\n\r\n // Go left\r\n j = sequence.length() - 2;\r\n\r\n // It is a pair (with -3)\r\n isPair = true;\r\n\r\n // Add to optimal structure\r\n optimalStructure.insert(0, \"(\");\r\n\r\n } else {\r\n // Bifurcation\r\n optimalStructure.insert(0,\".\");\r\n }\r\n // Not first thing in string builder\r\n } else {\r\n //\r\n if (DPMatrix[i][j] == DPMatrix[i][j - 1] && DPMatrix[i][j] == DPMatrix[i + 1][j]){\r\n // Go left\r\n j = j-1;\r\n\r\n // Add to optimal structure\r\n optimalStructure.insert(0,\".\");\r\n\r\n // There is multiple optimal\r\n multipleOptimal = true;\r\n\r\n } else if (DPMatrix[i][j] == DPMatrix[i][j - 1]) {\r\n // Go left\r\n j = j-1;\r\n\r\n // Add to optimal structure\r\n optimalStructure.insert(0,\".\");\r\n\r\n } else if (DPMatrix[i][j] == DPMatrix[i + 1][j]){\r\n // Go down\r\n i = i+1;\r\n\r\n // Add to optimal structure\r\n optimalStructure.insert(0,\".\");\r\n\r\n // Check if it is a pair resulting in -2\r\n } else if (checkPair(sequence.charAt(i), sequence.charAt(j)) == 1) {\r\n // Move diagonally\r\n i = i+1;\r\n j = j-1;\r\n\r\n // If not pair\r\n if (!isPair) {\r\n // Add to optimal structure\r\n optimalStructure.insert(0, \")\");\r\n } else if (isPair){\r\n // Add to optimal structure\r\n optimalStructure.insert(0, \"(\");\r\n }\r\n\r\n // Set pair to true\r\n isPair = true;\r\n\r\n // Check if it is a pair resulting in -3\r\n } else if (checkPair(sequence.charAt(i), sequence.charAt(j)) == 2) {\r\n // Check if it is a pair resulting in -2\r\n if (DPMatrix[i][j] == DPMatrix[i + 1][j - 1] - 3){\r\n // Move diagonally\r\n i = i+1;\r\n j = j-1;\r\n\r\n // If not pair\r\n if (!isPair) {\r\n // Add to optimal structure\r\n optimalStructure.insert(0, \")\");\r\n } else if (isPair){\r\n // Add to optimal structure\r\n optimalStructure.insert(0, \"(\");\r\n }\r\n\r\n // Set pair to true\r\n isPair = true;\r\n }\r\n } else {\r\n // add to optimal structure\r\n optimalStructure.insert(0,\".\");\r\n }\r\n }\r\n }\r\n\r\n // If pair\r\n if (isPair) {\r\n // Add to optimal structure\r\n optimalStructure.insert(0, \"(\");\r\n } else {\r\n // Add to optimal structure\r\n optimalStructure.insert(0, \".\");\r\n }\r\n\r\n // Create file for multiple optimal\r\n File file = new File(\"5.o2\");\r\n\r\n // Try opening a file to write to\r\n try {\r\n // Create writer\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(file));\r\n\r\n // Determine what to write\r\n if (multipleOptimal){\r\n writer.write(\"YES\");\r\n } else {\r\n writer.write(\"NO\");\r\n }\r\n\r\n // Close writer\r\n writer.close();\r\n\r\n } catch (IOException e) {\r\n // Display error message\r\n System.out.println(\"Error opening file 5.o2\");\r\n }\r\n\r\n // Change structure into a string\r\n String structure = optimalStructure.toString();\r\n\r\n // Return the string\r\n return structure;\r\n\r\n }", "public static String defaultMakeMove() {\n \n final int x = Map.MyX();\n final int y = Map.MyY();\n final List<String> validMoves = new ArrayList<String>();\n \n if (!Map.IsWall(x, y - 1)) {\n validMoves.add(\"North\");\n }\n if (!Map.IsWall(x+1, y)) {\n validMoves.add(\"East\");\n }\n if (!Map.IsWall(x,y+1)) {\n validMoves.add(\"South\");\n }\n if (!Map.IsWall(x-1,y)) {\n validMoves.add(\"West\");\n }\n \n if (validMoves.size() == 0) {\n return \"North\"; // Hopeless. Might as well go North!\n } else {\n final Random rand = new Random();\n int whichMove = rand.nextInt(validMoves.size());\n return validMoves.get(whichMove);\n } // End of the if - else //\n }", "public static int[] getPawnStart(int[][] piecePos, char color, int endFile,\n int endRank, boolean capture) {\n if (capture) {\n // En Passant\n int direction = color == 'w' ? 1 : -1;\n\n if (getBoardStateSquare(endFile, endRank).equals(\" \")) {\n for (int[] pos: piecePos) {\n if (endRank == pos[1] + direction) {\n int[] startPos = {pos[0], pos[1]};\n move(\" \", endFile, endRank, endFile, pos[1]);\n\n if (isLegalMove(startPos, endFile, endRank)) {\n return startPos;\n }\n }\n }\n\n }\n\n for (int[] pos: piecePos) {\n if (endRank == pos[1] + direction) {\n int[] startPos = {pos[0], pos[1]};\n\n if (isLegalMove(startPos, endFile, endRank)) {\n return startPos;\n }\n }\n }\n }\n\n for (int[] pos: piecePos) {\n if (pos[0] == endFile) {\n int direction = color == 'w' ? 1 : -1;\n\n if (pos[1] + direction == endRank) {\n int[] startPos = {pos[0], pos[1]};\n\n if (isLegalMove(startPos, endFile, endRank)) {\n return startPos;\n }\n }\n\n if (pos[1] + 2 * direction == endRank) {\n boolean correct = true;\n\n for (int r = 0; r < Math.abs(pos[1] - endRank) - 1; r++) {\n if (!getBoardStateSquare(endFile,\n Math.abs(r + direction * pos[1] + 1))\n .equals(\" \")) {\n correct = false;\n\n break;\n }\n }\n\n if (correct) {\n int[] startPos = {pos[0], pos[1]};\n\n if (isLegalMove(startPos, endFile, endRank)) {\n return startPos;\n }\n }\n }\n }\n }\n\n return null;\n }", "public void findShortestPath(String startName, String endName) {\n checkValidEndpoint(startName);\n checkValidEndpoint(endName);\n\n Vertex<String> start = vertices.get(startName);\n Vertex<String> end = vertices.get(endName);\n\n double totalDist; // totalDist must be update below\n\n Map<Vertex<String>, Double> distance = new HashMap<>();\n Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();\n Set<Vertex<String>> explored = new HashSet<>();\n PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();\n\n\n\n addPQ(distance, start, pq, previous);\n\n\n\n dijkstraHelper(pq, end, explored, distance, previous);\n\n\n\n\n\n\n totalDist = distance.get(end);\n List<Edge<String>> path = getPath(end, start);\n printPath(path, totalDist);\n }", "public String toString() {\n String mazeVisual = \"\";\n Maze routeMaze = this.getMaze();\n for (int row = 0; row < routeMaze.getTiles().size(); row++) {\n for (int col = 0; col < routeMaze.getTiles().get(0).size(); col++) {\n if (route.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"*\");\n } else if (popped.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"-\");\n } else {\n mazeVisual = (mazeVisual + routeMaze.getTiles().get(row).get(col).toString());\n }\n if ((col + 1) == routeMaze.getTiles().get(0).size()) {\n mazeVisual = mazeVisual + \"\\n\";\n }\n }\n }\n return mazeVisual;\n }", "public static String findPath(String CHAR1, String CHAR2,CampusRouteFindingModel campusModel) {\n\t\t graph<String, Float> g = campusModel.getGraph();\n\t\t Map<String, String> idFirst = campusModel.getName();\n\t\t Map<String,String> nameFirst = campusModel.getID();\n\t\t Map<String, XYLocation> locations = campusModel.getLocations();\n\t\t if(!(nameFirst.containsKey(CHAR1))&&(!(idFirst.containsKey(CHAR1)))) { \n\t\t\t if(!(nameFirst.containsKey(CHAR2))&&(!(idFirst.containsKey(CHAR2)))) {\n\t\t\t\t if (CHAR1.equals(CHAR2)) {\n\t\t\t\t\t return \"Unknown building: [\"+CHAR1+\"]\\n\";\n\t\t\t\t }\n\t\t\t\t return \"Unknown building: [\"+CHAR1+\"]\\n\"+\"Unknown building: [\"+CHAR2+\"]\\n\";\n\t\t\t }\n\t\t\t\treturn \"Unknown building: [\"+CHAR1+\"]\\n\";\n\t\t\t}\n\t\t\tif(!(nameFirst.containsKey(CHAR2))&&(!(idFirst.containsKey(CHAR2)))) {\n\t\t\t\treturn \"Unknown building: [\"+CHAR2+\"]\\n\";\n\t\t\t}\n\t\tif (nameFirst.containsKey(CHAR1)) {\n\t\t\tCHAR1 = nameFirst.get(CHAR1);\n\t\t}\n\t\tif (nameFirst.containsKey(CHAR2)) {\n\t\t\tCHAR2 = nameFirst.get(CHAR2);\n\t\t}\n\t\tString retrn = \"Path from \"+idFirst.get(CHAR1)+\" to \"+idFirst.get(CHAR2)+\":\\n\";\n\t\tdouble fin = 0;\n\t\tString prev = CHAR1;\n\t\tif (Integer.valueOf(CHAR1) > 92) {\n\t\t\tif (Integer.valueOf(CHAR2) > 92) {\n\t\t\t\tif (CHAR1.equals(CHAR2)) {\n\t\t\t\t\t return \"Unknown building: [\"+CHAR1+\"]\\n\";\n\t\t\t\t }\n\t\t\t\treturn \"Unknown building: [\"+CHAR1+\"]\\n\"+\"Unknown building: [\"+CHAR2+\"]\\n\";\n\t\t\t}\n\t\t\treturn \"Unknown building: [\"+CHAR1+\"]\\n\";\n\t\t}\n\t\tif (Integer.valueOf(CHAR2) > 92) {\n\t\t\treturn \"Unknown building: [\"+CHAR2+\"]\\n\";\n\t\t}\n\t\tif (!(CHAR1.equals(CHAR2))) {\n\t\t\tArrayList<edges<String, Double>> tmp = Dijkstra(CHAR1,CHAR2,g);\n\t\t\tif (tmp==null) {\n\t\t\t\treturn \"There is no path from \"+idFirst.get(CHAR1)+\" to \"+idFirst.get(CHAR2)+\".\\n\";\n\t\t\t}\n\t\t\tIterator<edges<String, Double>> print = tmp.iterator();\n\t\t\tprint.next();\n\t\t\twhile (print.hasNext()) {\n\t\t\t\tedges<String, Double> temp = print.next();\n\t\t\t\tString direction = findDirection(locations.get(prev),locations.get(temp.getDest()));\n\t\t\t\tretrn = retrn+\"\\tWalk \"+direction+\" to (\"+ idFirst.get(temp.getDest())+\")\\n\";\n\t\t\t\tprev = temp.getDest();\n\t\t\t\tfin = temp.getLabel();\n\t\t\t}\n\t\t}\n\t\tretrn = retrn+String.format(\"Total distance: %.3f pixel units.\\n\", fin);\n\t\treturn retrn;\n\t}", "public String getNearestStreet() {\n String nearestStreet = \"null\";\n CollisionResults results = new CollisionResults();\n float closestDistance = 101f;\n for(float xDir = -1; xDir <= 1; xDir += .1f) {\n for(float yDir = -1; yDir <= 1; yDir += .1f) {\n for(float zDir = -1; zDir <= 1; zDir += .1f) { \n Ray ray = new Ray(loc, new Vector3f(xDir, yDir, zDir));\n world.collideWith(ray, results);\n for (int i = 0; i < results.size(); i++) {\n float dist = results.getCollision(i).getDistance();\n String name = results.getCollision(i).getGeometry().getParent().getName();\n if (name.startsWith(\"R_\") && dist <= 100 && dist < closestDistance) {\n nearestStreet = name;\n closestDistance = dist;\n }\n }\n }\n }\n }\n\n return nearestStreet;\n \n }", "public String toString() {\n\t\tString temp;\n\t\tint i;\n\n\t\ttemp = new String(\"\");\n\n\t\t//Seperate each word by a space (leave off \"_start_node_\" and \"_end_node_\")\n\t\tfor (i = 1; i < wc.size() - 1; i++) {\n\t\t\ttemp = temp.concat(((String) wc.elementAt(i)));\n\t\t\tif (i < wc.size() - 2) {\n\t\t\t\ttemp = temp.concat(\" \");\n\t\t\t}\n\t\t}\n\t\tif (temp.length() <= 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn temp;\n\t}", "private boolean findPath(char[][] board, int i, int j, String word, int index) {\n if (index == word.length()) return true;\n\n // check the boundaries.\n if (i<0 || i>=board.length || j<0 || j>=board[0].length) return false;\n\n // check the current cell.\n if (board[i][j] != word.charAt(index)) return false;\n\n // current cell has correct letter, mark the cell as visited\n char temp = board[i][j];\n board[i][j] = '$';\n\n // if current cell is ok, try to find path for the next char.\n boolean top = findPath(board, i-1, j, word, index+1);\n boolean bottom = findPath(board, i+1, j, word, index+1);\n boolean left = findPath(board, i, j-1, word, index+1);\n boolean right = findPath(board, i, j+1, word, index+1);\n if (top || bottom || left || right) return true;\n\n // restore visited cell\n board[i][j] = temp;\n return false;\n }", "Place getNextPlace(Place next)\n{\n if (!visited.contains(next.goNorth()) && !(next.goNorth()).isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goEast()) && !next.goEast().isWall()){\n soln.append(\"E\");\n visited.add(next.goEast());\n //nearby.clear();\n return next.goEast();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n \n //nearby.clear();\n return null;\n} \n}", "String getPosX();", "public KnightNode getPathByDFS(KnightNode startNode,\n\t\t\tKnightNode finishNode) {\n\t\tif (startNode == null) {\n\t\t\tthrow new IllegalArgumentException(\"start node shouldn't be null!\");\n\t\t}\n\n\t\tif (finishNode == null) {\n\t\t\tthrow new IllegalArgumentException(\"finish node shouldn't be null!\");\n\t\t}\n\n\t\tDeque<KnightNode> stack = new LinkedList<KnightNode>();\n\n\t\t// step 0\n\t\tstartNode.isUsed = true;\n\t\tstack.add(startNode);\n\n\t\tnodes.remove(startNode);\n\t\tnodes.add(startNode);\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\t// get next node from head of queue\n\t\t\tKnightNode tmpNode = stack.getLast();\n\t\t\tSet<KnightNode> childNodes = tmpNode.availableMoves;\n\t\t\tfor (KnightNode tmpChild : childNodes) {\n\t\t\t\ttmpChild = findNode(tmpChild.x, tmpChild.y);\n\t\t\t\t// check if we have already been here\n\t\t\t\tif (!tmpChild.isUsed) {\n\t\t\t\t\ttmpChild.root = tmpNode;\n\t\t\t\t\ttmpChild.isUsed = true;\n\t\t\t\t\tstack.add(tmpChild);\n\n\t\t\t\t\tif (tmpChild.equals(finishNode)) {\n\t\t\t\t\t\t// we have found our short path\n\t\t\t\t\t\treturn tmpChild;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// path is not exist\n\t\treturn null;\n\t}", "private void findKillerPath() {\n Cell current, next;\n killerPath = new ArrayDeque<>();\n clearVisitedMarks();\n current = killer;\n current.visited = true;\n\n while (true) {\n next = nextNotVisitedCell(current);\n if (next == player) {\n killerPath.addLast(current);\n killerPath.addLast(next);\n break;\n } else if (next != null) {\n killerPath.addLast(current);\n current = next;\n current.visited = true;\n } else {\n current = killerPath.pollLast();\n }\n }\n killerPath.pollFirst();\n }", "private Queue<Position> pathToClosest(MyAgentState state, Position start, int goal) {\n\t\tQueue<Position> frontier = new LinkedList<Position>();\n\t\tSet<String> enqueued = new HashSet<String>();\n\t\tMap<Position, Position> preceedes = new HashMap<Position, Position>();\n\t\tfrontier.add(start);\n\t\tenqueued.add(start.toString());\n\n\t\twhile (!frontier.isEmpty()) {\n\t\t\tPosition pos = frontier.remove();\n\t\t\tif (state.getTileData(pos) == goal) {\n\t\t\t\treturn toQueue(preceedes, pos, start);\n\t\t\t}\n\t\t\t\n\t\t\tfor (Position neighbour : pos.neighbours()) {\n\t\t\t\tif (!enqueued.contains(neighbour.toString()) && state.getTileData(neighbour) != state.WALL) {\n\t\t\t\t\tpreceedes.put(neighbour, pos);\n\t\t\t\t\tfrontier.add(neighbour);\n\t\t\t\t\tenqueued.add(neighbour.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public List<Node> findPath(Vector2i start, Vector2i goal) {\n\t\tList<Node> openList = new ArrayList<Node>(); //All possible Nodes(tiles) that could be shortest path\n\t\tList<Node> closedList = new ArrayList<Node>(); //All no longer considered Nodes(tiles)\n\t\tNode current = new Node(start,null, 0, getDistance(start, goal)); //Current Node that is being considered(first tile)\n\t\topenList.add(current);\n\t\twhile(openList.size() > 0) {\n\t\t\tCollections.sort(openList, nodeSorter); // will sort open list based on what's specified in the comparator\n\t\t\tcurrent = openList.get(0); // sets current Node to first possible element in openList\n\t\t\tif(current.tile.equals(goal)) {\n\t\t\t\tList<Node> path = new ArrayList<Node>(); //adds the nodes that make the path \n\t\t\t\twhile(current.parent != null) { //retraces steps from finish back to start\n\t\t\t\t\tpath.add(current); // add current node to list\n\t\t\t\t\tcurrent = current.parent; //sets current node to previous node to strace path back to start\n\t\t\t\t}\n\t\t\t\topenList.clear(); //erases from memory since algorithm is finished, ensures performance is not affected since garbage collection may not be called\n\t\t\t\tclosedList.clear();\n\t\t\t\treturn path; //returns the desired result shortest/quickest path\n\t\t\t}\n\t\t\topenList.remove(current); //if current Node is not part of path to goal remove\n\t\t\tclosedList.add(current); //and puts it in closedList, because it's not used\n\t\t\tfor(int i = 0; i < 9; i++ ) { //8-adjacent tile possibilities\n\t\t\t\tif(i == 4) continue; //index 4 is the middle tile (tile player currently stands on), no reason to check it\n\t\t\t\tint x = (int)current.tile.getX();\n\t\t\t\tint y = (int)current.tile.getY();\n\t\t\t\tint xi = (i % 3) - 1; //will be either -1, 0 or 1\n\t\t\t\tint yi = (i / 3) - 1; // sets up a coordinate position for Nodes (tiles)\n\t\t\t\tTile at = getTile(x + xi, y + yi); // at tile be all surrounding tiles when iteration is run\n\t\t\t\tif(at == null) continue; //if empty tile skip it\n\t\t\t\tif(at.solid()) continue; //if solid cant pass through so skip/ don't consider this tile\n\t\t\t\tVector2i a = new Vector2i(x + xi, y + yi); //Same thing as node(tile), but changed to a vector\n\t\t\t\tdouble gCost = current.gCost + (getDistance(current.tile, a) == 1 ? 1 : 0.95); //*calculates only adjacent nodes* current tile (initial start is 0) plus distance between current tile to tile being considered (a)\n\t\t\t\tdouble hCost = getDistance(a, goal);\t\t\t\t\t\t\t\t// conditional piece above for gCost makes a more realist chasing, because without it mob will NOT use diagonals because higher gCost\n\t\t\t\tNode node = new Node(a, current, gCost, hCost);\n\t\t\t\tif(vecInList(closedList, a) && gCost >= node.gCost) continue; //is node has already been checked \n\t\t\t\tif(!vecInList(openList, a) || gCost < node.gCost) openList.add(node);\n\t\t\t}\n\t\t}\n\t\tclosedList.clear(); //clear the list, openList will have already been clear if no path was found\n\t\treturn null; //a default return if no possible path was found\n\t}", "public static int[] getRookStart(int[][] piecePos, int endFile,\n int endRank) {\n for (int[] pos: piecePos) {\n boolean correct = true;\n\n if (pos[0] == endFile) {\n int direction = (endRank - pos[1]) / Math.abs(endRank - pos[1]);\n\n for (int r = 0; r < Math.abs(pos[1] - endRank) - 1; r++) {\n if (!getBoardStateSquare(endFile,\n Math.abs(r + direction * pos[1] + 1))\n .equals(\" \")) {\n correct = false;\n\n break;\n }\n }\n\n if (correct) {\n int[] startPos = {pos[0], pos[1]};\n\n if (isLegalMove(startPos, endFile, endRank)) {\n return startPos;\n }\n }\n }\n\n if (pos[1] == endRank) {\n correct = true;\n\n int direction = (endFile - pos[0]) / Math.abs(endFile - pos[0]);\n\n for (int f = 0; f < Math.abs(pos[0] - endFile) - 1; f++) {\n if (!getBoardStateSquare(Math.abs(\n f + direction * pos[0] + 1), endRank)\n .equals(\" \")) {\n correct = false;\n\n break;\n }\n }\n\n if (correct) {\n int[] startPos = {pos[0], pos[1]};\n\n if (isLegalMove(startPos, endFile, endRank)) {\n return startPos;\n }\n }\n }\n }\n\n return null;\n }", "public String getSpawnLocationString(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tList<Location> locs = getSpawns();\n\t\tfor (int i=0;i<locs.size(); i++ ){\n\t\t\tif (locs.get(i) != null) sb.append(\"[\").append(i + 1).append(\":\").\n append(Util.getLocString(locs.get(i))).append(\"] \");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public char getSpot(int x,int y){\r\n if(x<0||x>=3||y<0||y>=3){return 7;}\r\n return board[x][y];\r\n }", "public String getGoodWordStartingWith(String s) {\n Random random = new Random();\n String x = s;\n TrieNode temp = searchNode(s);\n if (temp == null){\n return \"noWord\";\n }\n // get a random word\n ArrayList<String> charsNoWord = new ArrayList<>();\n ArrayList<String> charsWord = new ArrayList<>();\n String c;\n\n while (true){\n charsNoWord.clear();\n charsWord.clear();\n for (String ch: temp.children.keySet()){\n if (temp.children.get(ch).isWord){\n charsWord.add(ch);\n } else {\n charsNoWord.add(ch);\n }\n }\n System.out.println(\"------>\"+charsNoWord+\" \"+charsWord);\n if (charsNoWord.size() == 0){\n if(charsWord.size() == 0){\n return \"sameAsPrefix\";\n }\n s += charsWord.get( random.nextInt(charsWord.size()) );\n break;\n } else {\n c = charsNoWord.get( random.nextInt(charsNoWord.size()) );\n s += c;\n temp = temp.children.get(c);\n }\n }\n if(x.equals(s)){\n return \"sameAsPrefix\";\n }else{\n return s;\n }\n }", "public String startOz(String str) {\n String result = \"\";\n \n if (str.length() >= 1 && str.charAt(0)=='o') {\n result = result + str.charAt(0);\n }\n \n if (str.length() >= 2 && str.charAt(1)=='z') {\n result = result + str.charAt(1);\n }\n \n return result;\n}", "public static void printShortestPath(List<Town> sp) {\n\t\tint size = sp.size();\n\t\tif ( size>1 ) {\n\t\t\tfor( int i = 1; i <= size; i++) {\n\t\t\t\tif( i != size ) {\n\t\t\t\t\tSystem.out.print( sp.get(size-i).getName()+\"-\" );\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print( sp.get(size-i).getName());\n\t\t\t\t} \n\t\t\t}\t\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\"There is no possible route\");\n\t\t}\n\t}", "public String depthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n ConstantTimeStack<Vertex<AnyType>> stack = new ConstantTimeStack<Vertex<AnyType>>();\n boolean exists = false;\n Vertex<AnyType> S = new Vertex<AnyType>(start_vertex);\n int counter = 0;\n //loop through to set each vertex to not visited\n for( int i = 0; i < vertex_adjacency_list.size(); i++){\n vertex_adjacency_list.get(i).setVisited(-1);\n //if find the start vertex then set index position to counter\n if(vertex_adjacency_list.get(i).compareTo(S) == 0){\n exists = true;\n vertex_adjacency_list.get(i).setVisited(counter);\n counter = i;\n }\n }\n //if doesn't exist then through exception\n if(exists == false){\n throw new VertexException(\"Start Vertex does not exist\");\n }\n //if it does exist then push start node onto stack, set visited \n else if(exists){\n stack.push(vertex_adjacency_list.get(counter));\n vertex_adjacency_list.get(counter).setVisited(1);\n Vertex <AnyType> e = vertex_adjacency_list.get(counter);\n counter = 2;\n int n = e.numberOfAdjacentVertices();\n try{\n \n while(true){\n //loop through e's adjacent vertices \n for (n = e.numberOfAdjacentVertices()-1; n >=0 ; n--){\n //if the adacent vertex has not been visited\n if(e.getAdjacentVertex(n).hasBeenVisited()==false){\n //change e to adjacent vertex and push onto stack\n e = e.getAdjacentVertex(n);\n stack.push(e);\n //set e as visited at counter\n e.setVisited(counter);\n counter++;\n //reset n to e's num of vertices\n n = e.numberOfAdjacentVertices();\n }\n //if it has been visited and it's the first node in list\n //then pop it off the stack and then set e to new top\n //set n to new num of vertices\n else if(e.getAdjacentVertex(n).hasBeenVisited() && n == 0){\n stack.pop();\n e = stack.peek();\n n = e.numberOfAdjacentVertices();\n }\n }\n }\n }catch(EmptyStackException m){\n }\n }\n //loop through the list and print each with when it was visited\n for(int k = 0; k< vertex_adjacency_list.size(); k++){\n buffer.append(vertex_adjacency_list.get(k) + \":\" + vertex_adjacency_list.get(k).getVisited()+ \"\\n\");\n }\n \n return buffer.toString();\n \n }", "public static Path findShortestPath(Unit unit, int x, int y, GameMap map, boolean theoretical)\n {\n if( null == unit || null == map || !map.isLocationValid(unit.x, unit.y) )\n {\n return null;\n }\n\n Path aPath = new Path(100);\n if( !map.isLocationValid(x, y) )\n {\n // Unit is not in a valid place. No path can be found.\n System.out.println(\"WARNING! Cannot find path for a unit that is not on the map.\");\n aPath.clear();\n return aPath;\n }\n\n int[][] costGrid = new int[map.mapWidth][map.mapHeight];\n for( int i = 0; i < map.mapWidth; i++ )\n {\n for( int j = 0; j < map.mapHeight; j++ )\n {\n costGrid[i][j] = Integer.MAX_VALUE;\n }\n }\n\n // Set up search parameters.\n SearchNode root = new SearchNode(unit.x, unit.y);\n costGrid[unit.x][unit.y] = 0;\n Queue<SearchNode> searchQueue = new java.util.PriorityQueue<SearchNode>(13, new SearchNodeComparator(costGrid, x, y));\n searchQueue.add(root);\n\n ArrayList<SearchNode> waypointList = new ArrayList<SearchNode>();\n\n // Find optimal route.\n while (!searchQueue.isEmpty())\n {\n // Retrieve the next search node.\n SearchNode currentNode = searchQueue.poll();\n\n // If this node is our destination, we are done.\n if( currentNode.x == x && currentNode.y == y )\n {\n // Add all of the points on the route to our waypoint list.\n while (currentNode.parent != null)\n {\n waypointList.add(currentNode);\n currentNode = currentNode.parent;\n }\n // Don't forget the starting node (no parent).\n waypointList.add(currentNode);\n break;\n }\n\n expandSearchNode(unit, map, currentNode, searchQueue, costGrid, theoretical);\n\n currentNode = null;\n }\n\n // Clear and Populate the Path object.\n aPath.clear();\n // We added the waypoints to the list from end to beginning, so populate the Path in reverse order.\n if( !waypointList.isEmpty() )\n {\n for( int j = waypointList.size() - 1; j >= 0; --j )\n {\n //System.out.println(\"Waypoint \" + waypointList.get(j).x + \", \" + waypointList.get(j).y + \" over \" + map.getEnvironment(waypointList.get(j).x, waypointList.get(j).y).terrainType);\n aPath.addWaypoint(waypointList.get(j).x, waypointList.get(j).y);\n }\n }\n\n return aPath;\n }", "String getLawnPosition();", "private void findChest() {\n\t\tchar[][] location = game.getPlayingmap().getLocation();\n//\t\tFighter fighter = (Fighter)game.getPlayingmap().getCellsinthemap()[character.xOfFighter][character.yOfFighter].getContent();\n\n\t\tif(character.xOfFighter-1>=0&&location[character.xOfFighter-1][character.yOfFighter]=='c'){\n\t\t\tChest chest = (Chest)game.getPlayingmap().getCellsinthemap()[character.xOfFighter-1][character.yOfFighter].getContent();\n\t\t\tcharacter.openChest(chest);\n\t\t\tif(chest.isEmpty()){\n\t\t\t\tgame.getPlayingmap().changeLocation(character.xOfFighter-1, character.yOfFighter, 'e');\n\t\t\t}\n\t\t}\n\t\telse if(character.xOfFighter+1<game.getPlayingmap().getRow()&&location[character.xOfFighter+1][character.yOfFighter]=='c'){\n\t\t\tChest chest = (Chest)game.getPlayingmap().getCellsinthemap()[character.xOfFighter+1][character.yOfFighter].getContent();\n\t\t\tcharacter.openChest(chest);\n\t\t\tif(chest.isEmpty()){\n\t\t\t\tgame.getPlayingmap().changeLocation(character.xOfFighter+1, character.yOfFighter, 'e');\n\t\t\t}\n\t\t}\n\t\telse if(character.yOfFighter-1>=0&&location[character.xOfFighter][character.yOfFighter-1]=='c'){\n\t\t\tChest chest = (Chest)game.getPlayingmap().getCellsinthemap()[character.xOfFighter][character.yOfFighter-1].getContent();\n\t\t\tcharacter.openChest(chest);\n\t\t\tif(chest.isEmpty()){\n\t\t\t\tgame.getPlayingmap().changeLocation(character.xOfFighter, character.yOfFighter-1, 'e');\n\t\t\t}\n\t\t}\n\t\telse if(character.yOfFighter+1<game.getPlayingmap().getColumn()&&location[character.xOfFighter][character.yOfFighter+1]=='c'){\n\t\t\tChest chest = (Chest)game.getPlayingmap().getCellsinthemap()[character.xOfFighter][character.yOfFighter+1].getContent();\n\t\t\tcharacter.openChest(chest);\n\t\t\tif(chest.isEmpty()){\n\t\t\t\tgame.getPlayingmap().changeLocation(character.xOfFighter, character.yOfFighter+1, 'e');\n\t\t\t}\n\t\t}\n\t}", "public String getStarter(){\n\t\treturn hatAngefangen;\n\t}", "public static String findPieceOriginal(String piece)\n\t{\n\t\tfor(int rows = 0; rows < 8; rows++)\n\t\t{\n\t\t\tfor(int cols = 0; cols < 8; cols++)\n\t\t\t{\n\t\t\t\tif(initialOccuMap[rows][cols].equals(piece))\n\t\t\t\t\treturn posMap[rows][cols];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static String findPiece(String piece)\n\t{\n\t\tfor(int rows = 0; rows < 8; rows++)\n\t\t{\n\t\t\tfor(int cols = 0; cols < 8; cols++)\n\t\t\t{\n\t\t\t\tif(occuMap[rows][cols].equals(piece))\n\t\t\t\t\treturn posMap[rows][cols];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public int headFor(Coordinate place) {\n\n\t\tif (place == null) {\n\t\t\tSystem.out.println(\"ERROR: can't move toward nonexistant location\");\n\t\t\treturn -1;\n\t\t}\n\n\t\t// first, record from where the agent is starting\n\t\tstartPoint = this.geometry.getCoordinate();\n\t\tgoalPoint = null;\n\n\t\tif (!(edge.getTo().equals(node) || edge.getFrom().equals(node))) {\n\t\t\tSystem.out.println((int) world.schedule.getTime() + \"\\tMOVE_ERROR_mismatch_between_current_edge_and_node\");\n\t\t\treturn -2;\n\t\t}\n\n\t\t///////////////////// FINDING THE GOAL ////////////////////\n\t\t// set up goal information\n\t\ttargetDestination = world.snapPointToRoadNetwork(place);\n\n\t\tGeoNode destinationNode = world.snapPointToNode(targetDestination);\n\t\tif (destinationNode == null) {\n\t\t\tSystem.out.println((int) world.schedule.getTime() + \"\\tMOVE_ERROR_invalid_destination_node\");\n\t\t\treturn -2;\n\t\t}\n\n\t\t// be sure that if the target location is not a node but rather a point along an\n\t\t// edge, that point is recorded\n\t\tif (destinationNode.geometry.getCoordinate().distance(targetDestination) > world.resolution)\n\t\t\tgoalPoint = targetDestination;\n\t\telse\n\t\t\tgoalPoint = null;\n\n\t\t///////////////// FINDING A PATH /////////////////////\n\n\t\tpath = pathfinder.astarPath(node, destinationNode, world.roads);\n\n\t\t// if it fails, give up\n\t\tif (path == null) {\n\t\t\treturn -1;\n\t\t}\n\n\t\t//////////////////// CHECK FOR BEGINNING OF PATH ///////////////////\n\t\t// we want to be sure that we're situated on the path *right now*, and that if\n\t\t// the path doesn't include the link we're on at this moment that we're both\n\t\t// a) on a link that connects to the startNode\n\t\t// b) pointed toward that startNode\n\t\t// Then, we want to clean up by getting rid of the edge on which we're already\n\t\t// located\n\n\t\t// Make sure we're in the right place, and face the right direction\n\t\tif (edge.getTo().equals(node))\n\t\t\tdirection = 1;\n\t\telse if (edge.getFrom().equals(node))\n\t\t\tdirection = -1;\n\t\telse {\n\t\t\tSystem.out.println((int) world.schedule.getTime() + \"MOVE_ERROR_mismatch_between_current_edge_and_node_2\");\n\t\t\treturn -2;\n\t\t}\n\n\t\t// reset stuff\n\t\tif (path.size() == 0 && targetDestination.distance(geometry.getCoordinate()) > world.resolution) {\n\t\t\tpath.add(edge);\n\t\t\tnode = (GeoNode) edge.getOtherNode(node);\n\t\t}\n\n\t\t//////////////////// CHECK FOR END OF PATH //////////////\n\n\t\tif (goalPoint != null) {\n\n\t\t\tListEdge myLastEdge = world.getClosestEdge(goalPoint, world.resolution, world.networkEdgeLayer, world.fa);\n\n\t\t\tif (myLastEdge == null) {\n\t\t\t\tSystem.out.println((int) world.schedule.getTime() + \"\\tMOVE_ERROR_goal_point_is_too_far_from_any_edge\");\n\t\t\t\treturn -2;\n\t\t\t}\n\n\t\t\t// make sure the point is on the last edge\n\t\t\tEdge lastEdge;\n\t\t\tif (path.size() > 0)\n\t\t\t\tlastEdge = path.get(0);\n\t\t\telse\n\t\t\t\tlastEdge = edge;\n\n\t\t\tPoint goalPointGeometry = world.fa.createPoint(goalPoint);\n\t\t\tif (!lastEdge.equals(myLastEdge)\n\t\t\t\t\t&& ((MasonGeometry) lastEdge.info).geometry.distance(goalPointGeometry) > world.resolution) {\n\t\t\t\tif (lastEdge.getFrom().equals(myLastEdge.getFrom()) || lastEdge.getFrom().equals(myLastEdge.getTo())\n\t\t\t\t\t\t|| lastEdge.getTo().equals(myLastEdge.getFrom()) || lastEdge.getTo().equals(myLastEdge.getTo()))\n\t\t\t\t\tpath.add(0, myLastEdge);\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println((int) world.schedule.getTime()\n\t\t\t\t\t\t\t+ \"\\tMOVE_ERROR_goal_point_edge_is_not_included_in_the_path\");\n\t\t\t\t\treturn -2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// set up the coordinates\n\t\tthis.startIndex = segment.getStartIndex();\n\t\tthis.endIndex = segment.getEndIndex();\n\n\t\treturn 1;\n\t}", "public String outputDepthFirstSearch() {\n // output string buffer\n StringBuilder output = new StringBuilder();\n outputDepthFirstSearch(root, output);\n return output.toString();\n }", "public String getNeighbourhood() {\n return neighbourhood;\n }", "public String location(int locx, int locy) {\n if ((WASTELEFT <= locx && locx < WASTERIGHT)\n && (WASTETOP <= locy && locy < WASTEBOTTOM)) {\n return \"waste\";\n }\n if ((STOCKLEFT <= locx && locx < STOCKRIGHT)\n && (RESERVETOP <= locy && locy < RESERVEBOTTOM)) {\n return \"reserve\";\n }\n if (RESERVETOP <= locy && locy < RESERVEBOTTOM) {\n if (FIRSTLEFT <= locx && locx < FIRSTRIGHT) {\n return \"f1\";\n }\n if (SECONDLEFT <= locx && locx < SECONDRIGHT) {\n return \"f2\";\n }\n if (THIRDLEFT <= locx && locx < THIRDRIGHT) {\n return \"f3\";\n }\n if (FOURTHLEFT <= locx && locx < FOURTHRIGHT) {\n return \"f4\";\n }\n }\n if ((FIRSTLEFT <= locx && locx < FIRSTRIGHT)\n && (WASTETOP <= locy && locy <= WASTETOP\n + (_game.tableauSize(FIRSTPILE) - 1)\n * DIFFERENCE + CARD_HEIGHT)) {\n return \"t1\";\n }\n if ((SECONDLEFT <= locx && locx < SECONDRIGHT)\n && (WASTETOP <= locy && locy <= WASTETOP\n + (_game.tableauSize(SECONDPILE) - 1)\n * DIFFERENCE + CARD_HEIGHT)) {\n return \"t2\";\n }\n if ((THIRDLEFT <= locx && locx < THIRDRIGHT)\n && (WASTETOP <= locy && locy <= WASTETOP\n + (_game.tableauSize(THIRDPILE) - 1)\n * DIFFERENCE + CARD_HEIGHT)) {\n return \"t3\";\n }\n if ((FOURTHLEFT <= locx && locx < FOURTHRIGHT)\n && (WASTETOP <= locy && locy <= WASTETOP\n + (_game.tableauSize(FOURTHPILE) - 1)\n * DIFFERENCE + CARD_HEIGHT)) {\n return \"t4\";\n }\n return \"\";\n }", "private static int findMaxPointsFromBottomRightToTopLeft(char[][] matrix, int startingCellX, int startingCellY, int endCellX, int endCellY, boolean[][] visited) {\n if (!inRange(matrix, startingCellX, startingCellY)) {\n return 0;\n }\n\n if (visited[endCellX][endCellY]) {\n return 0;\n }\n\n char ch = matrix[endCellX][endCellY];\n\n visited[endCellX][endCellY] = true;\n\n if (ch == '#') {\n return 0;\n }\n\n if (startingCellX == endCellX && startingCellY == endCellY) {\n if (ch == '#' || ch == '.') {\n return 0;\n }\n return 1; // if '*'\n }\n\n if (ch == '*') {\n\n int maxPointsFromUp = findMaxPointsFromBottomRightToTopLeft(matrix, startingCellX, startingCellY, endCellX - 1, endCellY, visited);\n int maxPointsFromLeft = findMaxPointsFromBottomRightToTopLeft(matrix, startingCellX, startingCellY, endCellX, endCellY - 1, visited);\n\n if (maxPointsFromLeft < maxPointsFromUp) {\n if (inRange(matrix, endCellX, endCellY - 1)) {\n visited[startingCellX][startingCellY + 1] = false;\n }\n } else {\n if (inRange(matrix, endCellX - 1, endCellY)) {\n visited[endCellX - 1][endCellY] = false;\n }\n }\n\n int maxPoints = 1 + Math.max(maxPointsFromLeft, maxPointsFromUp);\n return maxPoints;\n\n } else if (ch == '.') {\n\n int maxPointsFromUp = findMaxPointsFromBottomRightToTopLeft(matrix, startingCellX, startingCellY, endCellX - 1, endCellY, visited);\n int maxPointsFromLeft = findMaxPointsFromBottomRightToTopLeft(matrix, startingCellX, startingCellY, endCellX, endCellY - 1, visited);\n\n if (maxPointsFromLeft < maxPointsFromUp) {\n if (inRange(matrix, endCellX, endCellY - 1)) {\n visited[startingCellX][startingCellY + 1] = false;\n }\n } else {\n if (inRange(matrix, endCellX - 1, endCellY)) {\n visited[endCellX - 1][endCellY] = false;\n }\n }\n\n int maxPoints = Math.max(maxPointsFromLeft, maxPointsFromUp);\n\n return maxPoints;\n } else { // if ch == '#'\n return 0;\n }\n }", "public String findFromToEnd(int end) {\n StringBuilder sb = new StringBuilder() ;\n ArrayList paths = new ArrayList() ;\n while (end != start) {\n\n paths.add(\"From \" + pred[end] + \" go to \" + end + \"\\n\") ;\n end = pred[end] ;\n\n }\n int count = paths.size() ;\n while (count > 0) {\n sb.append(paths.get(count-1)) ;\n count-- ;\n }\n return sb.toString() ;\n\n }", "public String toString(){\n //KEY --------\n // WHITE WALL = WW\n // WHITE ROAD = WR\n // WHITE CAPSTONE = WC\n // BLACK WALL = BW\n // BLACK ROAD = BR\n // BLACK CAPSTONE = BC\n // EMPTY = \"blank\"\n\n StringBuilder builder = new StringBuilder();\n\n /*TOP ROW*/ builder.append(\"\\t\"); for(int i = 0; i < SIZE; i++){ builder.append(i + \"\\t\");} builder.append(\"\\n\\n\");\n /*REST OF THE ROWS*/ \n for(int x = 0; x < SIZE; x++){\n builder.append(x + \"\\t\");\n for(int y = 0; y < SIZE; y++){\n TakStack current = stacks[y][x]; \n if(!current.isEmpty()){\n builder.append(getPieceString(current.top()));\n }\n builder.append(\"\\t\");\n }\n builder.append(\"\\n\\n\");\n }\n\n\n //BUILDER RETURN\n return builder.toString();\n }", "String getLocation();", "String getLocation();", "String getLocation();", "public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}", "public static String getStart(String town){\n\t\treturn Character.toString(town.charAt(0));\n\t}", "java.lang.String getLocation();", "public Optional<String> getWinner() {\n for (int win = 0; win < 8; win++) {\n String line = null;\n switch (win) {\n case 0:\n line = boardArray[0][0] + boardArray[0][1] + boardArray[0][2];\n break;\n case 1:\n line = boardArray[1][0] + boardArray[1][1] + boardArray[1][2];\n break;\n case 2:\n line = boardArray[2][0] + boardArray[2][1] + boardArray[2][2];\n break;\n case 3:\n line = boardArray[0][0] + boardArray[1][0] + boardArray[2][0];\n break;\n case 4:\n line = boardArray[0][1] + boardArray[1][1] + boardArray[2][1];\n break;\n case 5:\n line = boardArray[0][2] + boardArray[1][2] + boardArray[2][2];\n break;\n case 6:\n line = boardArray[0][0] + boardArray[1][1] + boardArray[2][2];\n break;\n case 7:\n line = boardArray[0][2] + boardArray[1][1] + boardArray[2][0];\n break;\n }\n if (line.equals(\"XXX\")) {\n return Optional.of(\"X\");\n } else if (line.equals(\"OOO\")) {\n return Optional.of(\"O\");\n }\n }\n return Optional.empty();\n }", "private static String generatePiecePlacement(final Tile[][] matrix) {\n String piecePlacement = \"\";\n for (int rowIndex = 0; rowIndex < matrix.length; rowIndex++) {\n // Initiate tally of empty squares.\n int emptySquares = 0;\n \n for (int columnIndex = 0; columnIndex < matrix[rowIndex].length; columnIndex++) {\n Tile tile = matrix[rowIndex][columnIndex];\n \n // We've reached a Piece!\n if (tile.isOccupied()) {\n // Append a tally of the empty squares up to this Piece.\n if (emptySquares > 0) {\n piecePlacement += emptySquares;\n emptySquares = 0;\n }\n \n // Append the current Piece.\n piecePlacement += tile.getPiece().getLetter();\n } else {\n // Track another empty square.\n emptySquares += 1;\n \n // Append a tally of the empty squares up to the end of the row.\n if (columnIndex == matrix[rowIndex].length - 1) {\n piecePlacement += emptySquares;\n }\n }\n }\n \n // Mark the row as finished.\n if (rowIndex != matrix.length - 1) {\n piecePlacement += \"/\";\n }\n }\n \n return piecePlacement;\n }", "private Stack<MapLocation> returnPath(MapLocation goal, MapLocation start) {\n\t\tStack<MapLocation> path = new Stack<MapLocation>();\n\n\t\tMapLocation iter = goal;\n\t\twhile (iter.cameFrom != null) {\n\t\t\tpath.add(iter.cameFrom);\n\t\t\titer = iter.cameFrom;\n\t\t}\n\t\t// to remove start\n\n\t\tif (path.isEmpty()) {\n\t\t\treturn path;\n\t\t}\n\n\t\tpath.pop();\n\n\t\treturn path;\n\t}", "public void solve() {\n // TODO\n // This function should use next. You should also create and use any\n // other helper fuctions you find helpful here.\n \t// get start position \t\n \tSquare s = sea.getStart();\n \texploreList.add(s);\n \twhile(this.exploreList.size() != 0) {\n \t\tSquare c = step();\n \t\tif(c.hasNemo()) {\n \t\t\tsetPath(c);\n \t\t\tfoundNemo = true;\n \t\t\tbreak;\n \t\t}\n \t}\n }", "public char[][] mazeTraversal(char[][] maze, int x, int y){\n\n // Using the try catch to find the 'end' of the maze. Or when the maze hits the bounds of the char array.\n try{\n // this will test all valid moves. If they are valid, it replaces the current position with 'x' and moves\n // the cursor 'A' to the next position. Prints maze and recursively calls mazeTraversal.\n\n // if down is a valid move\n if(maze[x][y-1] == '.'){\n maze[x][y] = 'x';\n maze[x][y-1] = 'A';\n print(maze);\n mazeTraversal(maze, x, y-1);\n }\n\n // if right is a valid move\n if(maze[x+1][y] == '.'){\n maze[x][y] = 'x';\n maze[x+1][y] = 'A';\n print(maze);\n mazeTraversal(maze, x+1, y);\n }\n\n // if up is a valid move\n if(maze[x][y+1] == '.'){\n maze[x][y] = 'x';\n maze[x][y+1] = 'A';\n print(maze);\n mazeTraversal(maze, x, y+1);\n }\n\n // if left is a valid move\n if(maze[x-1][y] == '.'){\n maze[x][y] = 'x';\n maze[x-1][y] = 'A';\n print(maze);\n mazeTraversal(maze, x-1, y);\n }\n\n // if no moves are available or the cursor approaches a dead end, the current position is replaced with '0'\n // and prints the maze again. This will remove the cursor until a next valid move is available.\n // Returns the current maze.\n maze[x][y] = '0';\n print(maze);\n return maze;\n }catch(Exception e){\n // If the maze approaches the 'end' of the maze, or approaches a point where the cursor is at the bounds,\n // then the catch will initiate. Assuming the maze is done. Ending the program.\n System.out.println(\"The Maze is traversed. Thank you for playing.\");\n maze[x][y] = 'x';\n print(maze);\n System.exit(0);\n }\n return maze;\n }", "public String[] search() {\n\t\t\n\t\troot.setScore(0);\n\t\tleaves = 0;\n\t\t\n\t\t/*\n\t\t * Interrupt the think() thread so we can have the updated game tree\n\t\t */\n\t\t\n\t\tString[] move = new String[2];\n\t\t\n\t\t// Find the max or min value for the white or black player respectively\n\t\tfloat val = alphaBeta(root, max_depth, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, player);\n\t\t\n\t\t// Retrieve the move that has the min/max vlaue\n\t\tArrayList<Node> moves = root.getChildren();\n\t\tfor(Node n : moves) {\n\t\t\tif(Float.compare(n.value, val) == 0) {\n\t\t\t\tint[] m = new int[6];\n\t\t\t\tint encodedM = n.move;\n\t\t\t\t\n\t\t\t\t// Decode the move\n\t\t\t\tfor(int i = 0; i < 6; i++) {\n\t\t\t\t\tm[i] = encodedM & 0xf;\n\t\t\t\t\tencodedM >>= 4;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Convert the array into a string array with the format [0] => \"a7-b7\", [1] => \"b5\"\n\t\t\t\tmove[0] = ((char)(m[0] + 97)) + \"\" + (m[1]) + \"-\" + ((char)(m[2] + 97)) + \"\" + (m[3]);\n\t\t\t\tmove[1] = ((char)(m[4] + 97)) + \"\" + (m[5]);\n\t\t\t\t\n\t\t\t\t// Play the move on the AI's g_board, set the root to this node and break out of the loop\n\t\t\t\tg_board.doMove(n.move);\n\t\t\t\t\n\t\t\t\t// Reset the root rather than set it to a branch since we can currently only achieve a depth of 2-ply\n\t\t\t\troot.getChildren().clear();\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(leaves <= 2000) {\n\t\t\tmax_depth++;\n\t\t}\n\t\t\n\t\t/*\n\t\t * Start the think() thread\n\t\t */\n\t\t\n\t\treturn move;\n\t}", "private String toStringHelper(int index, String soFar) {\n \t\tif (getNode(index) == null) {\n \t\t\treturn \"\";\n \t\t} else {\n \t\t\tString toReturn = \"\";\n \t\t\tint rightChild = getRightOf(index);\n \t\t\ttoReturn += toStringHelper(rightChild, \" \" + soFar);\n \t\t\tif (getNode(rightChild) != null) {\n \t\t\t\ttoReturn += soFar + \" /\";\n \t\t\t}\n \t\t\ttoReturn += \"\\n\" + soFar + getNode(index) + \"\\n\";\n \t\t\tint leftChild = getLeftOf(index);\n \t\t\tif (getNode(leftChild) != null) {\n \t\t\t\ttoReturn += soFar + \" \\\\\";\n \t\t\t}\n \t\t\ttoReturn += toStringHelper(leftChild, \" \" + soFar);\n \t\t\treturn toReturn;\n \t\t}\n \t}" ]
[ "0.5752087", "0.55916876", "0.5414591", "0.538177", "0.53691995", "0.5342015", "0.5331154", "0.5284268", "0.52768105", "0.5253013", "0.52279747", "0.52034074", "0.5115846", "0.5075489", "0.50551623", "0.5038899", "0.50282556", "0.5028229", "0.49969798", "0.49953896", "0.49946788", "0.49808595", "0.49777558", "0.49728188", "0.4955129", "0.49526554", "0.49509746", "0.49379718", "0.49316183", "0.4927945", "0.49268582", "0.49190542", "0.4905334", "0.4905334", "0.4905334", "0.4905334", "0.4905334", "0.4905334", "0.4905334", "0.4905334", "0.49049422", "0.48818642", "0.48742822", "0.4867715", "0.4867552", "0.48445106", "0.48431873", "0.48417234", "0.4841477", "0.48391366", "0.4833553", "0.48304844", "0.48263675", "0.48092237", "0.47996747", "0.4789785", "0.47829154", "0.47775912", "0.4773491", "0.47724107", "0.47712407", "0.47672093", "0.47647962", "0.4764402", "0.47638068", "0.47590116", "0.4757913", "0.47503853", "0.47449347", "0.4736696", "0.47325554", "0.47290897", "0.47215995", "0.4719583", "0.47162583", "0.47143406", "0.47056255", "0.47019666", "0.4699317", "0.4696016", "0.4695199", "0.4695164", "0.46941534", "0.468811", "0.46844026", "0.46835348", "0.46834302", "0.4679395", "0.4679395", "0.4679395", "0.4669473", "0.4667885", "0.46657693", "0.46580184", "0.46541622", "0.4652802", "0.46526062", "0.46510682", "0.4643952", "0.46420354" ]
0.7019583
0
for(Entry pl : nearby.entrySet())
Place getNextPlace(Place next) { if (!visited.contains(next.goNorth()) && !(next.goNorth()).isWall()){ soln.append("N"); visited.add(next.goNorth()); //nearby.clear(); return next.goNorth(); } else if (!visited.contains(next.goEast()) && !next.goEast().isWall()){ soln.append("E"); visited.add(next.goEast()); //nearby.clear(); return next.goEast(); } else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){ soln.append("N"); visited.add(next.goNorth()); //nearby.clear(); return next.goNorth(); } else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){ soln.append("N"); visited.add(next.goNorth()); //nearby.clear(); return next.goNorth(); //nearby.clear(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }", "public HashMap getProbEqkRuptureIdentifiersNearSite() {\n //initializing the list for containing the EqkRuptures\n HashMap probRupIdentifierList = new HashMap();\n\n int numSources = eqkRupForecast.getNumSources();\n //creating a ArrayList to hold the rupture indices for a given site and eqkrupforecast.\n for (int sourceIndex = 0; sourceIndex < numSources; ++sourceIndex)\n probRupIdentifierList.put(new Integer(sourceIndex), new ArrayList());\n\n\n //Going over each and every source in the forecast\n for (int sourceIndex = 0; sourceIndex < numSources; ++sourceIndex) {\n // get the ith source\n ProbEqkSource source = eqkRupForecast.getSource(sourceIndex);\n int numRuptures = source.getNumRuptures();\n\n //going over all the ruptures in the source\n for (int rupIndex = 0; rupIndex < numRuptures; ++rupIndex) {\n ProbEqkRupture rupture = source.getRupture(rupIndex);\n\n AbstractEvenlyGriddedSurface rupSurface = new EvenlyGridCenteredSurface((EvenlyGriddedSurface) rupture.getRuptureSurface());\n\n //getting the iterator for all points on the rupture\n ListIterator it = rupSurface.getAllByRowsIterator();\n //looping over all the rupture pt locations and if any of those lies\n //within the provided distance range then include the rupture in the list.\n while (it.hasNext()) {\n Location ptLoc = (Location) it.next();\n if (region.contains(ptLoc)) {\n ArrayList rupIndicesList = (ArrayList) probRupIdentifierList.get(new\n Integer(sourceIndex));\n rupIndicesList.add(new Integer(rupIndex));\n break;\n }\n }\n }\n }\n return probRupIdentifierList;\n }", "public static void main(String[] args){\n\n TreeMap<Student, String> tmap = new TreeMap<>(new newComparator());\n tmap.put(new Student(\"aaaa\",12), \"Beijing\");\n tmap.put(new Student(\"bbbb\",12), \"Guangzhou\");\n tmap.put(new Student(\"dddd\",16), \"Zhuzhou\");\n tmap.put(new Student(\"cccc\",11), \"Shanghai\");\n tmap.put(new Student(\"aaaa\",19), \"Hongkong\");\n\n Set<Map.Entry<Student, String>> es = tmap.entrySet();\n Iterator<Map.Entry<Student, String>> it = es.iterator();\n\n\n /*\n while(it.hasNext()){\n Student stu = it.next();\n String location = map.get(stu);\n System.out.println(stu +\" --------- \"+location);\n }\n */\n\n while(it.hasNext()){\n Map.Entry<Student, String> me = it.next();\n Student stu = me.getKey();\n String addr = me.getValue();\n System.out.println(stu+\" ::: \"+ addr);\n\n }\n\n\n }", "Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();", "HashMap<GamePiece, Integer> distanceMap(GamePiece from) {\n ArrayDeque<GamePiece> worklist = new ArrayDeque<GamePiece>();\n HashMap<GamePiece, Integer> distances = new HashMap<GamePiece, Integer>();\n ArrayList<GamePiece> seen = new ArrayList<GamePiece>();\n distances.put(from, 0);\n worklist.add(from);\n\n while (worklist.size() > 0) {\n GamePiece next = worklist.removeFirst();\n\n if (seen.contains(next)) {\n // if seen has the next element don't do anything with it\n }\n else {\n for (String s : this.directions) {\n if (next.hasNeighbor(s) && next.connected(s) && !seen.contains(next.neighbors.get(s))) {\n distances.put(next.neighbors.get(s), distances.get(next) + 1);\n worklist.addFirst(next.neighbors.get(s));\n }\n }\n seen.add(next);\n }\n }\n return distances;\n }", "public ArrayList<Record> near()\n {\n int count = 0;\n ArrayList<Record> closest = new ArrayList<>();\n System.out.println(\"Community Centres that are 5km or less to your location are: \");\n for(Record i: cCentres)\n {\n //latitude and longitude for each centre\n double lat2 = Double.parseDouble(i.getValue(4));\n double lon2 = Double.parseDouble(i.getValue(3));\n ;\n //distance\n double dist = calcDist(lat2, lon2, cCentres);\n if(dist<=5)\n {\n System.out.println(i + \", Distance: \" + dist + \" km\");\n closest.add(i);\n }\n }\n return closest;\n }", "Iterator<Map.Entry<String, Integer>> getNextPair(){\r\n return entrySet.iterator();\r\n }", "private static void showMap() {\n\t\tSet<Point> pointSet = map.keySet();\n\t\tfor (Point p : pointSet) {\n\t\t\tSystem.out.println(map.get(p));\n\t\t}\n\t}", "public ArrayList getEqkRupturesNearSite() {\n\n //initializing the list for containing the EqkRuptures\n ArrayList probEqkList = new ArrayList();\n int numSources = eqkRupForecast.getNumSources();\n\n //Going over each and every source in the forecast\n for (int sourceIndex = 0; sourceIndex < numSources; ++sourceIndex) {\n // get the ith source\n ProbEqkSource source = eqkRupForecast.getSource(sourceIndex);\n int numRuptures = source.getNumRuptures();\n\n //going over all the ruptures in the source\n for (int rupIndex = 0; rupIndex < numRuptures; ++rupIndex) {\n ProbEqkRupture rupture = source.getRupture(rupIndex);\n\n AbstractEvenlyGriddedSurface rupSurface = new EvenlyGridCenteredSurface((EvenlyGriddedSurface)rupture.getRuptureSurface());\n\n\n //getting the iterator for all points on the rupture\n ListIterator it = rupSurface.getAllByRowsIterator();\n //looping over all the rupture pt locations and if any of those lies\n //within the provided distance range then include the rupture in the list.\n while (it.hasNext()) {\n Location ptLoc = (Location) it.next();\n if (region.contains(ptLoc)) {\n probEqkList.add(rupture.clone());\n break;\n }\n }\n }\n }\n return probEqkList;\n }", "public static void main(String[] args) {\n HashMap<Integer, String> Hm = new HashMap<Integer, String>();\n Hm.put(0, \"USA\");\n Hm.put(1, \"UK\");\n Hm.put(2, \"India\");\n Hm.put(3, \"Maldives\");\n \n Set sn=Hm.entrySet();\n Iterator i= sn.iterator(); \n while(i.hasNext()) {\n Map.Entry mp=(Map.Entry)i.next();\n System.out.println(mp.getKey());\n System.out.println(mp.getValue());\n }\n \n\t}", "@Override\n public Iterator<Entry<Integer, T>> iterator() {\n List<Entry<Integer, T>> pairs = new ArrayList<Entry<Integer, T>>(count);\n\n for(int i = 0; i < count; i++) {\n pairs.add(new MapEntry<T>(extractKey(buckets[i]), (T)data[i]));\n }\n\n return pairs.iterator();\n }", "private boolean contain(Map<Double, Integer> map, double temp) {\n \tSet<Double> set = map.keySet();\r\n\t\tIterator<Double> it = set.iterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tdouble t = it.next();\r\n\t\t\tdouble tt = t-temp;\r\n\t\t\tif(Math.abs(tt)<0.0000001){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public int infectNeighbours(Map map);", "@Override\n\tpublic Set<Entry<K, V>> entrySet() {\n\t\tSet<Entry<K, V>> entrySet = map.entrySet();\n\t\tListSet<Entry<K, V>> listSet = new ListSet<Map.Entry<K,V>>();\n\t\tfor (K key : keys) {\n\t\t\t\n\t\t\tfor (Entry<K, V> entry : entrySet) {\n\t\t\t\tif (entry.getKey().equals(key)) {\n\t\t\t\t\tlistSet.add(entry);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn listSet;\n\t}", "@Test\n public void testSmallPillarNeighbors(){\n //test pillar at (0,0)\n pillar = smallPillarMap.get(Maze.position(0,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (1,0)\n pillar = smallPillarMap.get(Maze.position(1,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n\n //test pillar at (2,0)\n pillar = smallPillarMap.get(Maze.position(2,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n\n //test pillar at (0,1)\n pillar = smallPillarMap.get(Maze.position(0,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 2)));\n\n //test pillar at (1,1)\n pillar = smallPillarMap.get(Maze.position(1,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(4, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (2,1)\n pillar = smallPillarMap.get(Maze.position(2,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 0)));\n\n //test pillar at (0,2)\n pillar = smallPillarMap.get(Maze.position(0,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (1,2)\n pillar = smallPillarMap.get(Maze.position(1,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n\n //test pillar at (2,2)\n pillar = smallPillarMap.get(Maze.position(2,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n }", "public void mDeptLocationMembers() {\n \n PersistenceManager pm = PMF.get().getPersistenceManager();\n // dept iterator\n System.out.println(\"111 mDeptLocations inside mDeptLocationMembers: \" + mDeptLocations.size());\n Iterator iterDept = mDeptLocations.entrySet().iterator();\n while (iterDept.hasNext()) {\n Entry<Long, List<Location>> pairsDept = (Entry<Long, List<Location>>)iterDept.next();\n if (!pairsDept.getValue().isEmpty()) {\n // location iterator\n for (Location l : pairsDept.getValue()) {\n // member iterator\n List<Member> mLocationMembers = new ArrayList<Member>(); \n Iterator iterMember = mMemberCurrentLocation.entrySet().iterator();\n while (iterMember.hasNext()) {\n Entry<Long, Tracking> pairsMember = (Entry<Long, Tracking>)iterMember.next(); \n // determine members, regardless of dept, at this location\n if (l.getid().equals(pairsMember.getValue().getlocationId())) {\n Member m = pm.getObjectById(Member.class, pairsMember.getKey());\n mLocationMembers.add(m);\n System.out.println(\"m: \" + m.getlastName());\n System.out.println(\"mLocationMembers qty: \" + mLocationMembers.size());\n } \n }\n mDeptLocationMembers.put(l.getid(), mLocationMembers); \n }\n }\n }\n System.out.println(\"mDeptLocationMembers TOTAL qty: \" + mDeptLocationMembers.size());\n System.out.println(\"Exit: mDeptLocationMembers\");\n\n }", "public static void main(String[] args) {\n\n\t\tHashMap<String,String> hm = new HashMap<String, String>();\n\t\t\n\t\thm.put(\"e\",\"a1\");\n\t\thm.put(\"b\",\"a1\");\n\t\thm.put(\"a\",\"a2\");\n\t\t \n\t\thm.put(\"a\",\"a5\");\n\t\t\n\t\tSet s = hm.entrySet();\n\t\tIterator it = s.iterator();\n\t\t\n\t\tfor(Map.Entry me : hm.entrySet())\n\t\t\tSystem.out.println(me.getKey()+\" \"+me.getValue());\n\t\t\n\t\t\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry mentry = (Map.Entry) it.next();\n\t\t\tSystem.out.println(mentry.getKey() +\" \"+mentry.getValue());\n\t\t\t\n\t\t}\n\t\t\n\tMap<String,String> thmp = \tnew TreeMap<String,String> (hm);\n\tSystem.out.println();\n\tfor(Map.Entry g : thmp.entrySet())\n\t\tSystem.out.println(g.getKey()+\" \"+g.getValue());\n\t\n\t\n\tSystem.out.println(hm.containsKey(\"a\")+\" \"+hm.containsValue(\"a5\"));\n\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\r\n public Iterable<V> neighbors(V vertexName) {\r\n try {\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n while(vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if(vertexName.compareTo(v.vertexName) == 0)\r\n return v.destinations;\r\n }\r\n vertexIterator.next();\r\n return null;\r\n }\r\n catch(NoSuchElementException e) {\r\n throw e;\r\n }\r\n }", "private ArrayList<Integer> getCityEdges(HashMap<Integer,Integer> table){\n ArrayList<Integer> edges = new ArrayList<Integer>();\n edges.addAll(table.keySet());\n return edges;\n }", "private Iterator getEntries(){\r\n\t\tSet entries = items.entrySet();\r\n\t\treturn entries.iterator();\r\n\t}", "public static <T> Pair<ArrayList<T>, Double> relativeHabitFilter(Map<T, Double> habitStrength){\n\t\t//System.out.print(\"rHabitFilter is called on size:\" + habitStrength.size());\n\t\tMap<T, Double> sorted= Helper.sortByValue(habitStrength);\n\t\tArrayList<T> keys =new ArrayList<T>(sorted.keySet());\n\t\t\n\t\t//System.out.println(habitStrength);\n\t\t//System.out.println(sorted);\n\t\t\n\t\tdouble bestDifference = 0;\n\t\tdouble bestSplit = 0;\n\t\tfor(int i = 0; i < keys.size()-1; i++){\n\t\t\tMap<T, Double> left = new HashMap<T, Double>();\n\t\t\tMap<T, Double> right =new HashMap<T, Double>(habitStrength);\n\t\t\tfor(int j =0; j <= i; j++){ //Fill maps left and right\n\t\t\t\tT key = keys.get(j);\n\t\t\t\tleft.put(key, sorted.get(key));\n\t\t\t\tright.remove(key);\n\t\t\t\t//System.out.print(\"loopmakemaps\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble difference = Helper.avarageDouble(right.values()) - Helper.avarageDouble(left.values());\n\t\t\tif(difference > bestDifference){\n\t\t\t\tbestDifference = difference;\n\t\t\t\tbestSplit = i;\n\t\t\t}\n\t\t\t//System.out.print(\"loopfindbest\");\n\t\t}\n\t\t\n\t\tArrayList<T> newCandidates =new ArrayList<T>();\n\t\tfor(int j = keys.size()-1; j > bestSplit; j--){\n\t\t\tnewCandidates.add(keys.get(j));\n\t\t\t//System.out.print(\"loophere\");\n\t\t}\n\t\t\n\t\t//System.out.println(\"I made it! Difference:\" + bestDifference + \"newCandidates\" + newCandidates);\n\t\t\n\t\treturn new ImmutablePair<ArrayList<T>, Double>(newCandidates, bestDifference);\n\t}", "private void addAllAbove(@NonNull final Location searchLoc, final int limit) {\n int currX = searchLoc.getScX();\n int currY = searchLoc.getScY();\n int currZ = searchLoc.getScZ();\n \n while (currZ <= limit) {\n currX -= MapDisplayManager.TILE_PERSPECTIVE_OFFSET;\n currY += MapDisplayManager.TILE_PERSPECTIVE_OFFSET;\n currZ++;\n final long foundKey = Location.getKey(currX, currY, currZ);\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }\n }", "public native IterableIterator<Tuple<K, V>> entries();", "Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n return world.keySet();\n }", "private void addAllNeighbours(@NonNull final Location searchLoc) {\n for (int x = -1; x < 2; x++) {\n for (int y = -1; y < 2; y++) {\n if ((x == 0) && (y == 0)) {\n continue;\n }\n final long foundKey = Location.getKey(searchLoc.getScX() + x, searchLoc.getScY() + y,\n searchLoc.getScZ());\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }\n }\n \n final long foundKey = Location.getKey(searchLoc.getScX(), searchLoc.getScY(), searchLoc.getScZ() + 1);\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }", "public static void main(String[] args) {\n LinkedHashMap<Integer, Pracownik> mapa = new LinkedHashMap<>();\n Pracownik[] pracownicy = {\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\")\n };\n\n for(Pracownik pracownik: pracownicy){\n mapa.put(pracownik.getID(),pracownik);\n }\n System.out.println(mapa);\n\n mapa.remove(3);\n\n\n mapa.put(4,new Pracownik(\"Asia\"));\n mapa.put(3,new Pracownik(\"Patryk\"));\n\n\n\n mapa.entrySet();\n System.out.println(mapa);\n for(Map.Entry<Integer,Pracownik> wpis: mapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n\n\n }\n System.out.println(\"---------------------------------------------------------------\");\n TreeMap<Integer,Pracownik> mapaPosotrowana = new TreeMap<Integer, Pracownik>(mapa);\n\n Map<Integer,Pracownik> subMapa = mapaPosotrowana.subMap(0,4);\n\n for(Map.Entry<Integer,Pracownik> wpis: subMapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n if(subMapa.isEmpty()){\n System.out.println(\"PUSTO\");\n }else{\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n }\n\n }\n\n Map<Date, Event> exampleMap;\n\n\n\n\n\n\n\n\n\n }", "@Test\n\tpublic void testHashMap() {\n\n\t\t/*\n\t\t * Creates an empty HashMap object with default initial capacity 16 and default\n\t\t * fill ratio \"0.75\".\n\t\t */\n\t\tHashMap hm = new HashMap();\n\t\thm.put(\"evyaan\", 700);\n\t\thm.put(\"varun\", 100);\n\t\thm.put(\"dolly\", 300);\n\t\thm.put(\"vaishu\", 400);\n\t\thm.put(\"vaishu\", 300);\n\t\thm.put(null, 500);\n\t\thm.put(null, 600);\n\t\t// System.out.println(hm);\n\n\t\tCollection values = hm.values();\n//\t\tSystem.out.println(values);\n\n\t\tSet entrySet = hm.entrySet();\n\t\t// System.out.println(entrySet);\n\n\t\tIterator iterator = entrySet.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry entry = (Map.Entry) iterator.next();\n\t\t\t// System.out.println(entry.getKey()+\":\"+entry.getValue());\n\t\t}\n\n\t}", "HashSet<Square> pieceLocations(Piece side) {\r\n assert side != EMPTY;\r\n HashSet<Square> squareSides = new HashSet<Square>();\r\n for (Square mapSquare : map.keySet()) {\r\n if (get(mapSquare) == side) {\r\n squareSides.add(mapSquare);\r\n }\r\n }\r\n return squareSides;\r\n }", "@Override\n public Iterable<V> adjacentTo(V from)\n {\n if (from.equals(null)){\n throw new IllegalArgumentException();\n }\n Iterator graphIterator = graph.entrySet().iterator();\n \t Map.Entry graphElement = (Map.Entry) graphIterator.next();\n \t V vert = (V)graphElement.getKey();\n \t while (graphIterator.hasNext() && vert != from){\n \t\tgraphElement = (Map.Entry) graphIterator.next();\n \t\tvert = (V)graphElement.getKey();\n \t }\n \t ArrayList <V> edges = graph.get(vert);\n \t //Iterable <V> e = edges;\n \t return edges;\n }", "@Override\r\n public Iterable<V> vertices() {\r\n LinkedList<V> list = new LinkedList<>();\r\n for(V v : map.keySet())\r\n list.add(v);\r\n return list;\r\n }", "protected abstract Set<T> findNeighbors(T node, Map<T, T> parentMap);", "Iterator<BoardPosition> possibleMovingPositions(BoardPosition from, Game game, Map<BoardPosition, Piece> pieceMap);", "public static void main(String[] args) {\n Person.insertToPeopleMap(new Person(39105153322l,\"Romas\",\"Garkas\"));\n Person.insertToPeopleMap(new Person(38512013245l,\"Arnas\",\"Lionginas\"));\n Person.insertToPeopleMap(new Person(48603142299l,\"Maryte\",\"Melninkaite\"));\n Person.insertToPeopleMap(new Person(49009103377l,\"Dalia\",\"Morka\"));\n Person.insertToPeopleMap(new Person(49009103377l,\"Milda\",\"Morkiene\"));\n\n\n for (Map.Entry<Long, List<Person>> personEntry : Person.getPeople().entrySet()){\n for (Person person : personEntry.getValue()){\n System.out.println(\"A.K.: \" + person.getCitizenCode() + \" Vardas: \" + person.getName() + \" Pavarde: \" + person.getSurname());\n }\n }\n }", "Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n ArrayList<Long> verticesIter = new ArrayList<>();\n verticesIter.addAll(adj.keySet());\n return verticesIter;\n }", "public HashSet<Position> getNeighborPos() { return neighborPos; }", "public static void main(String[] args) {\n\n Map map = new HashMap();\n map.put(1, \"Raja\");\n map.put(1, \"hjihihi\");\n map.put(3, \"Aadherai\");\n map.put(4, \"ram\");\n\n // traversing the map by using set\n Set set = map.entrySet();\n\n Iterator itr = set.iterator();\n while(itr.hasNext()){\n\n // System.out.println(itr);\n\n Map.Entry entry= (Map.Entry)itr.next(); // converting to Map.Entry so that we can get key & value seperately\n\n System.out.println(entry.getKey()+\" \"+entry.getValue());\n }\n }", "public List<Long> getAlleKontonummern() {\n return new LinkedList<>(kontoMap.keySet());\n }", "public static void main(String[] args) {\n TreeMap<student, String> treeMap = new TreeMap<>();\n treeMap.put(new student(\"张三\", 21), \"北京\");\n treeMap.put(new student(\"王五\", 21), \"上海\");\n treeMap.put(new student(\"李四\", 18), \"南京\");\n treeMap.put(new student(\"小明\", 21), \"荷兰\");\n\n Set<Map.Entry<student, String>> entrySet = treeMap.entrySet();\n Iterator<Map.Entry<student, String>> it = entrySet.iterator();\n while (it.hasNext()) {\n Map.Entry me = it.next();\n student stu = (student) me.getKey();\n System.out.print(stu.getName() + \" \" + stu.getAge() + \" \");\n System.out.println(me.getValue());\n\n }\n\n }", "private void addAllBelow(@NonNull final Location searchLoc, final int limit) {\n int currX = searchLoc.getScX();\n int currY = searchLoc.getScY();\n int currZ = searchLoc.getScZ();\n \n while (currZ >= limit) {\n currX += MapDisplayManager.TILE_PERSPECTIVE_OFFSET;\n currY -= MapDisplayManager.TILE_PERSPECTIVE_OFFSET;\n currZ--;\n final long foundKey = Location.getKey(currX, currY, currZ);\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }\n }", "public static void main(String[] args) {\nTreeMap<Integer, String> treeMap=new TreeMap<Integer, String>();\ntreeMap.put(25, \"qwert\");\ntreeMap.put(24, \"poiu\");\nfor(Entry<Integer, String> m:treeMap.entrySet()) {\n\tSystem.out.println(m.getKey()+ \" \"+m.getValue());\n}\n\t}", "private void ShowNearbyPlaces(List<HashMap<String, String>> nearbyPlacesList) {\n for (int i = 0; i < nearbyPlacesList.size(); i++) {\n Log.d(\"onPostExecute\",\"Entered into showing locations\");\n MarkerOptions markerOptions = new MarkerOptions();\n HashMap<String, String> googlePlace = nearbyPlacesList.get(i);\n double lat = Double.parseDouble(googlePlace.get(\"lat\"));\n double lng = Double.parseDouble(googlePlace.get(\"lng\"));\n String placeName = googlePlace.get(\"place_name\");\n String vicinity = googlePlace.get(\"vicinity\");\n LatLng latLng = new LatLng(lat, lng);\n markerOptions.position(latLng);\n markerOptions.title(placeName);\n markerOptions.snippet(vicinity);\n\n if (this.mKind == \"police\")\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE));\n else if (this.mKind == \"hospital\")\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE));\n\n mMap.addMarker(markerOptions);\n }\n mMap.animateCamera(CameraUpdateFactory.zoomTo(12));\n }", "@Override\n\t\t\t\tpublic List<KinderGarten> chercherParZone(Double longi, Double lat,Double rayon) {\n\t\t\t\t\tList<KinderGarten> list = new ArrayList<>();\n\t\t\t\t\tList<KinderGarten> list2 =(List<KinderGarten>) kindergartenRepo.findAll();\n\t\t\t\t\tfor(int i=0;i<list2.size();i++)\n\t\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(calculDis(longi,lat,list2.get(i).getLongi(),list2.get(i).getLatitude()));\n\t\t\t\t\t\tif(calculDis(longi,lat,list2.get(i).getLongi(),list2.get(i).getLatitude()) <= rayon)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlist.add(list2.get(i));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// long/lat/r\n\t\t\t\t\t//coord bd Ariana long:10.182733 lat: 36.900635 // long:10.804493 lat2 :36.460875\n\t\t\t\t\t\n\t\t\t\t\t//test 1 Ariana 10.1852049/36.8989212/1 \n\t\t\t\t\t\n\t\t\t\t\t//test 2 A GHANA 10.181863/36.806459/1 // long2:10.182039 lat2: 36.806021 \n\t\t\t\t\t//\n\t\t\t\t\treturn list;\n\t\t\t\t}", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n GridlandMetro ts = new GridlandMetro();\n long rows = s.nextLong();\n long cols = s.nextLong();\n long numTracks = s.nextLong();\n HashMap<Long, List<Pair>> map_t = new HashMap();\n long numLampposts = 0L;\n\n\n for(long j=0; j<numTracks; j+=1L){\n\n long current_row = s.nextLong();\n long c1 = s.nextLong();\n long c2 = s.nextLong();\n if(!map_t.containsKey(current_row))\n map_t.put(current_row, new ArrayList<Pair>());\n map_t.get(current_row).add(ts.new Pair(c1,c2));\n\n }\n\n for(long i=(map_t.keySet().size()+1); i<=rows; i++)\n numLampposts += cols;\n\n for(Long current_key:map_t.keySet()){\n Collections.sort(map_t.get(current_key));\n long current_max = 1L;\n for(int i=0; i<map_t.get(current_key).size(); i++){\n if(current_max < map_t.get(current_key).get(i).start)\n numLampposts += map_t.get(current_key).get(i).start - current_max;\n if(current_max <= map_t.get(current_key).get(i).end)\n current_max = map_t.get(current_key).get(i).end + 1L;\n }\n numLampposts += cols-current_max+1;\n }\n\n\n\n\n System.out.println(numLampposts);\n }", "public Iterable<Point2D> nearest(Point2D p, int k) {\n if (k == 0) {\n throw new NullPointerException();\n }\n \n if (p == null) {\n throw new NullPointerException();\n }\n MinPQ<Point2D> pq = new<Point2D> MinPQ(p.distanceToOrder());\n \n for (Point2D s: bst.keys()) {\n if (!s.equals(p)) {\n //Point2D near = nearest(p);\n pq.insert(s);\n }\n \n }\n \n Queue kpq = new Queue(); \n \n for (int j = 0; j < k; j++) {\n kpq.enqueue(pq.delMin());\n }\n return kpq;\n }", "LinkedHashMap<Long, City> getAllCitiesMap();", "@Override\n\tpublic Map getPointsForHotArea(String terminalId) {\n\t\tMap map = new HashMap();\n\t\tString lngs = \"\";\n\t\tString lats = \"\";\n\t\ttry {\n\t\t\tList<PositionData> info_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc limit 2000\");\n\t\t\tfor(int i=0;i<info_list.size();i++){\n\t\t\t\tif(info_list.get(i).getInfo().contains(\"GPS状态:GPS不定位;\")){\n\t\t\t\t\tinfo_list.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tList<PositionData> position_list = new ArrayList<PositionData>();\n\t\t\tfor(int i=0;i<(info_list.size()>2000?2000:info_list.size());i++){\n\t\t\t\tposition_list.add(info_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=0;i<position_list.size();i++){\n\t\t\t\tString point_latitude = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\tpoint_latitude = point_latitude.substring(0,point_latitude.indexOf(\";\"));\n\t\t\t\tpoint_latitude = point_latitude.split(\":\")[1];\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart1 = point_latitude.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart1 = \"0.\" + tempStrPart1;\n\t\t\t\tdouble tempD1 = Double.parseDouble(tempStrPart1)/60*100;\n\t\t\t\tpoint_latitude = Integer.parseInt(point_latitude.split(\"\\\\.\")[0]) + tempD1 + \"\";\n\t\t\t\tlats += point_latitude + \",\";\n\t\t\t\t\n\t\t\t\tString point_longitute = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\tpoint_longitute = point_longitute.substring(0,point_longitute.indexOf(\";\"));\n\t\t\t\tpoint_longitute = point_longitute.split(\":\")[1];\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart2 = point_longitute.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart2 = \"0.\" + tempStrPart2;\n\t\t\t\tdouble tempD2 = Double.parseDouble(tempStrPart2)/60*100;\n\t\t\t\tpoint_longitute = Integer.parseInt(point_longitute.split(\"\\\\.\")[0]) + tempD2 + \"\";\n\t\t\t\tlngs += point_longitute + \",\";\n\t\t\t}\n\t\t\tmap.put(\"lngs\",lngs.subSequence(0, lngs.lastIndexOf(\",\")));\n\t\t\tmap.put(\"lats\",lats.subSequence(0, lats.lastIndexOf(\",\")));\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn map;\n\t}", "public List<Location> neighbors (Location pos);", "private void reachable() {\r\n\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus()) {\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\t\tbfs(v);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public HashMap<String, NeonValue> getMap();", "@Test\n public void test10() {\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n cashRegister.addPennies(199);\n map1.put(1,199);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addDimes(2);\n map1.put(10,2);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addDimes(3);\n map1.put(10,5);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addFives(10);\n map1.put(500,10);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addNickels(4);\n map1.put(5,4);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addOnes(1);\n map1.put(100,1);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addQuarters(1);\n map1.put(25,1);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addTens(5);\n map1.put(1000,5);\n assertEquals(map1, cashRegister.getContents());\n }", "@Override\n\tpublic boolean on(GetMapObjectsEvent t) {\n\t\t\n\t\tPlayer player = t.getPlayer();\n\t\tS2LatLng pos = player.s2LatLngPos();\n\t\tWorld world = t.getGame().getWorld();\n\t\tGameSettings settings = t.getGame().getSettings();\n\t\tlong ts = System.currentTimeMillis();\n\t\tFunction<UniqueLocatable, MapObjectInfo> f = u -> getMapObjectInfo(u, settings, ts, player, pos);\n\t\t\n\t\tfor(int i=0;i<t.size();i++){\n\t\t\tWorldCell cell = world.getCell(t.cellIds[i]);\n\t\t\tif(cell == null)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\t// Don't let them scan cells too far away\n\t\t\t// TODO: Make the limit configurable!\n\t\t\tif(cell.distanceTo(pos) > 1000)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tt.cells[i] = new CellInfo(ts, Iterators.filter(Iterators.transform(cell.objects().iterator(), f), e -> e != null));\n\t\t}\n\t\t\n\t\tt.status = MapObjectsStatus.SUCCESS;\n\t\treturn true;\n\t}", "public ArrayList< LocationHandler >findNear ( double lat, double lon){\n\t\tArrayList< LocationHandler> locationList = new ArrayList< LocationHandler>();\n\t\tString selectQuery = \"SELECT \"+ table_location +\".*, \" +\n\t\t\t\t\"(( \" + lat +\" - \" + table_location+\".\"+ key_latitude +\") * (\" + lat +\" - \" + table_location+\".\"+ key_latitude +\") + \" +\n\t\t\t\t\"(\" + lon +\" - \" + table_location+\".\"+ key_longitude +\") * (\" + lon +\" - \" + table_location+\".\"+ key_longitude +\"))\" +\n\t\t\t\t\" AS distance \"+ \n\t\t\t\t\" FROM \" + table_location + \" LEFT JOIN \" + table_locationType + \" ON \" +\n\t\t\t\ttable_location +\".\"+key_type + \" = \" + table_locationType+ \".\" +key_base_id +\n\t\t\t\t\" ORDER BY distance\";\n\t\t//\t\t\t\t\t\" ORDER BY \" + \"ABS( \" + table_location +\".\" +key_latitude + \" - \" + lon + \") \" + \" AND \" \n\t\t//\t\t\t\t\t + \"ABS( \" + table_location +\".\"+ key_longitude + \" - \" + lat + \") \" + \" DESC\";\n\t\tLog.i(TAG, \"near \" + selectQuery);\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tLocationHandler locationHandlerArray = new LocationHandler();\n\t\t\t\tlocationHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tlocationHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tlocationHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tlocationHandlerArray.setLongitude(cursor.getDouble(3)); \n\t\t\t\tlocationHandlerArray.setLatitude(cursor.getDouble(4)); \n\t\t\t\tlocationHandlerArray.setName(cursor.getString(5)); \n\t\t\t\tlocationHandlerArray.setType(cursor.getString(6));\n\t\t\t\tlocationHandlerArray.setSearchTag(cursor.getString(7));\n\t\t\t\tlocationHandlerArray.setAmountables(cursor.getDouble(8));\n\t\t\t\tlocationHandlerArray.setDescription(cursor.getString(9));\n\t\t\t\tlocationHandlerArray.setBestSeller(cursor.getString(10));\n\t\t\t\tlocationHandlerArray.setWebsite(cursor.getString(11));\n\t\t\t\tlocationList.add(locationHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tdb.close();\n\t\treturn locationList;\n\t}", "public static Map<Integer,Planet> getPlanetsByOrder() { return planetsByOrder; }", "private void mapNeighborPrecincts(Map<Integer, Precinct> allPrecincts) {\r\n\t\tMap<Integer, Region> currNeighbors;\r\n\t\tMap<Integer, Region> remappedNeighbors;\r\n\t\tPrecinct rmNeighbor;\r\n\t\tfor (Precinct precinct : allPrecincts.values()) {\r\n\t\t\tcurrNeighbors = precinct.getNeighborRegions(); // lazy loaded\r\n\t\t\tif (currNeighbors == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tremappedNeighbors = new HashMap<Integer, Region>();\r\n\t\t\tfor (Region neighbor : currNeighbors.values()) {\r\n\t\t\t\tif (!(neighbor instanceof Precinct)) {\r\n\t\t\t\t\tthrow new IllegalStateException();\r\n\t\t\t\t}\r\n\t\t\t\trmNeighbor = allPrecincts.get(neighbor.getId());\r\n\t\t\t\tif (rmNeighbor == null) {\r\n\t\t\t\t\tthrow new IllegalStateException();\r\n\t\t\t\t}\r\n\t\t\t\tremappedNeighbors.put(rmNeighbor.getId(), rmNeighbor);\r\n\t\t\t}\r\n\t\t\tprecinct.setNeighborRegions(remappedNeighbors);\r\n\t\t}\r\n\t}", "private void erstelleListenMap(){\n farbenMap = new TreeMap<>();\n symbolMap = new TreeMap<>();\n\n for(Symbol symbol:Symbol.values()){\n\n switch (symbol) // sortiert ihn in die entsprechende Liste ein\n {\n case ka_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,karos);\n break;\n case ks_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kreise);\n break;\n case kr_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kreuze);\n break;\n case st_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,sterne);\n break;\n case qu_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kleeblaetter);\n break;\n\n case ka_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,karos);\n break;\n case ks_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kreise);\n break;\n case kr_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kreuze);\n break;\n case st_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,sterne);\n break;\n case qu_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,karos);\n break;\n case ks_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kreise);\n break;\n case kr_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kreuze);\n break;\n case st_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,sterne);\n break;\n case qu_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,karos);\n break;\n case ks_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kreise);\n break;\n case kr_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kreuze);\n break;\n case st_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,sterne);\n break;\n case qu_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,karos);\n break;\n case ks_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kreise);\n break;\n case kr_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kreuze);\n break;\n case st_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,sterne);\n break;\n case qu_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,karos);\n break;\n case ks_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kreise);\n break;\n case kr_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kreuze);\n break;\n case st_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,sterne);\n break;\n case qu_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kleeblaetter);\n break;\n }\n\n }\n }", "public static void main(String[] args) {\n\t\tString2Int.put(\"Location1\", new Integer(0));\n\t\tString2Int.put(\"Location2\", new Integer(1));\n\t\tString2Int.put(\"Location3\", new Integer(2));\n\t\tString2Int.put(\"Location4\", new Integer(3));\n\t\t\n\t\t\n\t\t// populate it\n\t\tInt2String.put(new Integer(0), \"Location1\");\n\t\tInt2String.put(new Integer(1), \"Location2\");\n\t\tInt2String.put(new Integer(2), \"Location3\");\n\t\tInt2String.put(new Integer(3), \"Location4\");\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> NHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> NHMap = new ArrayList<Integer[]>();\n\t\tInteger[] NHMapedge1 ={String2Int.get(\"Location1\"),100,30};\n\t\tInteger[] NHMapedge2 ={String2Int.get(\"Location2\"),20,40};\n\t\tInteger[] NHMapedge3 ={String2Int.get(\"Location4\"),30,15};\n\t\tInteger[] NHMapedge4 ={String2Int.get(\"Location3\"),140,60};\n\t\t//edges.add(edge);\n\t\tNHMap.add(NHMapedge1);\n\t\tNHMap.add(NHMapedge2);\n\t\tNHMap.add(NHMapedge3);\n\t\tNHMap.add(NHMapedge4);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> EHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> EHMap = new ArrayList<Integer[]>();\n\t\tInteger[] EHMapedge1 ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10,30};\n\t\tInteger[] EHMapedge2 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20,40};\n\t\tInteger[] EHMapedge3 ={String2Int.get(\"Location4\"),String2Int.get(\"Location4\"),30,50};\n\t\tInteger[] EHMapedge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location2\"),40,60};\n\t\t//edges.add(edge);\n\t\tEHMap.add(EHMapedge1);\n\t\tEHMap.add(EHMapedge2);\n\t\tEHMap.add(EHMapedge3);\n\t\tEHMap.add(EHMapedge4);\n\t\t\n\t\tArrayList<Integer[]> edges = new ArrayList<Integer[]>();\n\t\tInteger[] edge ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10};\n\t\tInteger[] edge1 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20};\n\t\tInteger[] edge2 ={String2Int.get(\"Location1\"),String2Int.get(\"Location3\"),30};\n\t\tInteger[] edge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location4\"),40};\n\t\tInteger[] edge5 ={String2Int.get(\"Location4\"),String2Int.get(\"Location3\"),40};\n\t\t\n\t\t\n\t\tedges.add(edge);\n\t\tedges.add(edge1);\n\t\tedges.add(edge2);\n\t\tedges.add(edge4);\n\t\tedges.add(edge5);\n\t\t\n\t\t\n \n\t //int[][] adj_matrix = MapArrayList(edges1);\n int[][] adj_matrix = MapArrayList(edges);\n\t\tfor(int i=0;i<5;i++){\n\t\t\t//System.out.println(\"\");\n\t\t\tfor(int j=0;j<5;j++){\n\t\t\t\t\n\t\t\t\t//System.out.print(adj_matrix[i][j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//dijkstra(edges1);\n\t\t//System.out.print(edges2);\n\t\t//System.out.println(\"Ehtesham\");\n\t\tArrayList<ArrayList<Integer>> finalpaths = dijkstra(adj_matrix);\n\t\t for (ArrayList<Integer> item : finalpaths) { \n\t\t\t System.out.println(\"\");\n\t\t\t \tfor(Integer node: item)\n\t\t\t \t{\t\n\t\t\t \t\tSystem.out.print(Int2String.get(node)+\"->\");\n\t\t\t \t}\n\t\t\n\t\t }\n\t\t int cost = 210;\n\t\t int time = 190;\n\t\t //ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(finalp1aths1);\n\t\t ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(NHMap,EHMap,finalpaths,cost,time);\n\t\t System.out.println(\"\");\n\t\t System.out.println(\"-----------------------------Final answer-------------------------------\");\n\t\t for (ArrayList<Integer> item : finalp1aths1) { \n\t\t\t\tSystem.out.println(item);\n\t\t\t\t\n\t\t }\n\t\t\t\t \n\t}", "public static void main(String[] args) {\n\t\tSet<Puppy> set = new LinkedHashSet<Puppy>(10);\n\t\t\n\t\t// this DS which can hold other object\n\t\tPuppy puppy1=new Puppy(\"Tommy\",10 );\n\t\tPuppy puppy2=new Puppy(\"AHH\", 12);\n\t\tPuppy puppy3=new Puppy(\"MYY\", 5);\n\t\tPuppy puppy4=new Puppy(\"NANY\", 3);\n\t\tPuppy puppy5=new Puppy(\"NANY\", 3);\n\t\t\n\t\t//dog4 and dog5 are duplicate elements\n\t\tset.add(puppy1);\n\t\tset.add(puppy2);\n\t\tset.add(puppy3);\n\t\tset.add(puppy4);\n\t\tset.add(puppy5);\n\t\t\n\t\tSystem.out.println(\"puppy4 . hashCode () = \"+puppy4.hashCode());\n\t\tSystem.out.println(\"puppy5 . hashCode () = \"+puppy5.hashCode());\n\t\t\n\t\tIterator<Puppy> iterator=set.iterator();\n\t\t\n\t\tSystem.out.println(\"Accessing data using Iterator interface!\");\n\t\twhile(iterator.hasNext()){\n\t\t\tPuppy puppy=iterator.next();\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"____________-----\");\n\t\tfor(Puppy puppy:set){\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\tPuppy puppy6=new Puppy(\"NANY\", 3);\n\t\t\n\t\tboolean b=set.contains(puppy6);\n\t\tif(b){\n\t\t\tSystem.out.println(\"puppy6 found in set!\"+puppy6);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Run it\");\n\t\t /* final Entry<K,V> getEntry(Object key) {\n\t\t int hash = (key == null) ? 0 : hash(key.hashCode());\n\t\t for (Entry<K,V> e = table[indexFor(hash, table.length)];\n\t\t e != null;\n\t\t e = e.next) {\n\t\t Object k;\n\t\t if (e.hash == hash &&\n\t\t ((k = e.key) == key || (key != null && key.equals(k))))\n\t\t return e;\n\t\t }\n\t\t return null;\n\t\t } */\n\t\t b=set.contains(puppy1);\n\t\tif(b){\n\t\t\tSystem.out.println(b+\"is found in set!\");\n\t\t}\n\t\t\n\n\t}", "private HashSet<Position> getInRange(int p_r, Distance p_d)\n {\n HashSet<Position> s = new HashSet<Position>();\n\n for (int x = 0; x <= p_r; x++)\n {\n int y = 0;\n Position p = new Position(this.x + x, this.y + y);\n\n while (p_d.inside(this, p, p_r))\n {\n s.add(p);\n s.add(new Position(this.x - x, this.y + y));\n s.add(new Position(this.x + x, this.y - y));\n s.add(new Position(this.x - x, this.y - y));\n p = new Position(this.x + x, this.y + ++y);\n }\n }\n return s;\n }", "private TreeMap<String, Integer> debugMap (Set <String> keys, TreeMap <String, ArrayList<String>> lists) {\r\n \t//Create debug TreeMap\r\n \tTreeMap<String, Integer> toReturn = new TreeMap<String, Integer>();\r\n \t//Iterate through Set of keys created in makeGuess, passed as parameter\r\n \tIterator<String> it = keys.iterator();\r\n \twhile (it.hasNext()) {\r\n \t\tString temp = it.next();\r\n \t\t//Add pattern as key, size as value\r\n \t\ttoReturn.put(temp, lists.get(temp).size());\r\n \t}\r\n \treturn toReturn;\r\n }", "public void pleitegeierSperren() {\n kontoMap.values().stream()\n .filter(konto -> konto.getKontostand() < 0)\n .forEach(Konto::sperren);\n }", "public Iterator<Entry<Integer, HashMap<String, Double>>> iterator() {\r\n\t\treturn structure.entrySet().iterator();\r\n\t}", "private Map<Square, List<Player>> checkRocketJump()\n {\n Player dummie = new Player(null,null,null,false);\n\n Map<Square, List<Player>> squareColorIdListHashMap = new HashMap<>();\n List<Player> playersSeen = new ArrayList<>();\n List<Player> playersSeenCopy = new ArrayList<>();\n\n List<Square> targetSquares = new ArrayList<>();\n targetSquares.addAll(player.getSquare().getGameBoard().getArena().squareReachableNoWall(player.getSquare().getX() , player.getSquare().getY(),2)); //Obtain all players that can be targets\n targetSquares.remove(player.getSquare());\n\n //i will set a dummie player in all the possible squares at distance 2 and i will check if there is still at least 1 target for the basic mode\n for(Square squareIterate : targetSquares)\n {\n playersSeen = new ArrayList<>();\n playersSeenCopy = new ArrayList<>();\n dummie.setSquare(squareIterate);\n\n playersSeen.addAll(dummie.playerThatSee(player.getSquare().getGameBoard()));\n playersSeen.remove(dummie);\n playersSeen.remove(player);\n\n playersSeenCopy.addAll(playersSeen);\n\n for (Player playerIterate : playersSeen)\n {\n if (playerIterate.getSquare() == dummie.getSquare())\n playersSeenCopy.remove(playerIterate);\n }\n\n if (!playersSeenCopy.isEmpty())\n {\n squareColorIdListHashMap.put(squareIterate, playersSeenCopy);\n }\n }\n\n return squareColorIdListHashMap; //Returns all targets\n\n }", "private void fillMap(TreeMap<Double, String> userlist, TreeMap<Double, String> ret) \r\n \t{\t\t\t\r\n \t\tSortedSet<Double> sortedKeys = (SortedSet<Double>) userlist.keySet();\r\n \t\tDouble prozent = getProzent(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString()));\r\n \t\tret.put(prozent, userlist.get(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString())));\r\n \t\tuserlist.remove(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString()));\r\n \t\t\r\n \t\tfor(int i = userlist.keySet().size() - 1; i >= 0; i--)\r\n \t\t{\t\r\n \t\t\tret.put(getProzent(Double.valueOf(sortedKeys.toArray()[i].toString())) + prozent, userlist.get(Double.valueOf(sortedKeys.toArray()[i].toString())));\r\n \t\t\tprozent += getProzent(Double.valueOf(sortedKeys.toArray()[i].toString()));\r\n \t\t\tuserlist.remove(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString()));\r\n \t\t}\r\n \t}", "public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}", "private void printResult()\n\t{\n\t\t java.util.Iterator<Entry<String, Guest>> it = guestMapList.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pair = (Map.Entry)it.next();\n Guest guest = (Guest) pair.getValue();\n if(guest.isInvited())\n \t \tSystem.out.println(\"guest \"+guest.getName()+\" should invited!!\");\n it.remove(); // avoids a ConcurrentModificationException\n }\n\t}", "public Iterable<K> neighbors(K v)\n {\n \tList<K> list=new ArrayList<K>();\n \tList<HashMap<K, Integer>> adj = adjLists.get(v);\n \tfor (HashMap<K,Integer> A:adj){\n \t\tfor (K vertex:A.keySet()){\n \t\t\tlist.add(vertex);\n \t\t}\n \t}\n\treturn new ArrayList<K>(list);\n }", "public Lo<K> keys() { return this.entries.map(kvp -> kvp.left); }", "public Iterable<K> neighbors(K v)\n {\n \n return adjMaps.get(v).keySet();\n }", "void modusponens(){\n\t\tHashMap<String,HashSet<Hypothesis> > temp_lhs_hypo = new HashMap<String,HashSet<Hypothesis> >();\n\t\tHashSet<Hypothesis> new_hypos = new HashSet<Hypothesis>();\n\t\t\n\t\t//Utils.println(\"hypothesis list\");\n\t\tIterator it = hypothesis.entrySet().iterator();\n\t while (it.hasNext()) {\n\t Map.Entry pairs = (Map.Entry)it.next();\n\t String A = (String)pairs.getKey();\n\t //Utils.println(\"hypothesis A : \"+A);\n\t HashSet<Hypothesis> A_B = new_lhs_hypo.get(A);\n\t if(A_B == null) {\n\t \t//Utils.println(\"No match\");\n\t \tcontinue;\n\t \t}\n\t else{\n\t \t//Utils.println(\"Matched: \"+A_B.size());\n\t \tIterator bit = A_B.iterator();\n\t \twhile (bit.hasNext()) {\n\t \t Hypothesis A_B_hypo = (Hypothesis)bit.next();\n\t\t \tHypothesis mp_hypo = makeHypothesis(A_B_hypo.rhs, 1, -1, A, A_B_hypo.expression);\n\t\t \tif(mp_hypo!=null) {\n\t\t \t\tnew_hypos.add(mp_hypo);\n\t\t\t \tif(hypothesis.containsKey(mp_hypo.expression)) {\n\t\t\t \t\t//Utils.println(\"Existing MP result: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t\t \t\t//already existing\n\t\t\t\t }else{// new hypothesis has resulted\n\t\t\t\t \t//Utils.println(\"New MP result: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t\t\t }\n\t\t \t}else{\n\t\t \t\t//Utils.println(\"MP Not Valid: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t \t}\n\t\t }\n\t }\n\t }\n\t \n\t //Utils.println(\"new hypothesis list\");\n\t it = new_lhs_hypo.entrySet().iterator();\n\t while (it.hasNext()) {\n\t Map.Entry pairs = (Map.Entry)it.next();\n\t HashSet<Hypothesis> hypos = (HashSet<Hypothesis>) pairs.getValue();\n\t Iterator<Hypothesis> Ait = hypos.iterator();\n\t while(Ait.hasNext()){\n\t \tString A = ((Hypothesis)Ait.next()).expression;\n\t \t//Utils.println(\"hypothesis A : \"+A);\n\t \tHashSet<String> B_set = lhs_hypo.get(A);\n\t \tif(B_set == null){\n\t \t\t//Utils.println(\"No match\");\n\t \t\tcontinue;\n\t \t\t}\n\t \telse{\n\t \t\t//Utils.println(\"Matched: \"+B_set.size());\n\t \t\tIterator Bit = B_set.iterator();\n\t\t \twhile(Bit.hasNext()){\n\t\t \t\tString B_str = (String) Bit.next();\n\t\t \t\tString A_B_exp = Utils.expression(A, B_str);\n\t\t \t\tHypothesis mp_hypo = makeHypothesis(B_str, 1, -1, A, A_B_exp);\n\t\t \t\tif(mp_hypo!=null) {\n\t\t\t \t\tnew_hypos.add(mp_hypo);\n\t\t\t\t \tif(hypothesis.containsKey(mp_hypo.expression)) {\n\t\t\t\t \t\t//Utils.println(\"Existing MP result: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t\t \t\t//already existing\n\t\t\t\t\t }else{// new hypothesis has resulted\n\t\t\t\t\t \t//Utils.println(\"New MP result: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t\t\t }\n\t\t\t \t}else{\n\t\t\t \t\t//Utils.println(\"MP Not Valid: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t \t}\n\t\t \t}\n\t \t}\n\t \t\n\t }\n\t }\n\t \n\t //Utils.println(\"Size of new_hypos: \"+new_hypos.size());\n\t \n\t Iterator<Hypothesis> hit = new_hypos.iterator();\n\t while(hit.hasNext()){\n\t \tHypothesis mp_hypo = hit.next();\n\t \tboolean b = insertHypothesis(mp_hypo);\n\t \tif(b){\n\t \t\tHashSet<Hypothesis> temp_hypos = temp_lhs_hypo.get(mp_hypo.lhs);\n\t \tif(temp_hypos == null){\n\t \t\ttemp_hypos = new HashSet<Hypothesis>();\n\t \t\ttemp_hypos.add(mp_hypo);\n\t \t\ttemp_lhs_hypo.put(mp_hypo.lhs, temp_hypos);\n\t \t}else{\n\t \t\ttemp_hypos.add(mp_hypo);\n\t \t}\n\t \t//Utils.printHypothesis(mp_hypo);\n\t \t}\n\t }\n\t \n\n\t //Utils.println(\"Size of temp_lhs_hypo: \"+temp_lhs_hypo.size());\n\t \n\t new_lhs_hypo.clear();\n\t new_lhs_hypo = temp_lhs_hypo;\n\t if(new_lhs_hypo.size()!=0) modusponens();\n\t}", "public static void main(String[] args) {\n\t\tMap myMap = new HashMap();\r\n\t\tmyMap.put(91,\"India\");\r\n\t\tmyMap.put(65,\"Singapore\");\r\n\t\tmyMap.put(94, \"SriLanka\");\r\n\t\tmyMap.put(971, \"Dubai\");\r\n\t\tmyMap.put(91,\"India\");\r\n\t\tmyMap.put(98,\"India\");\r\n\t\tmyMap.put(null,\"India\");\r\n\t\tmyMap.put(null, \"SriLanka\");\r\n\t\tmyMap.put(99,null);\r\n\t\tmyMap.put(199,null);\r\n\t\t\r\n\t\tSystem.out.println(\"myMap :\"+myMap);\r\n\t\t\r\n\t\tSet keySet= myMap.keySet();\r\n\t\tSystem.out.println(\"keySet : \"+keySet);\r\n\t\t\r\n//\t\tfor (int i=0;i<keySet.size();i++) {\t\t\t\r\n//\t\t\tSystem.out.println(myMap.get(keySet));\r\n//\t\t}\r\n\t\tSystem.out.println(\"Using Iterator & while loop\");\r\n\t\tIterator itr = keySet.iterator();\r\n\t\twhile(itr.hasNext()) {\r\n\t\t\tSystem.out.println(myMap.get(itr.next()));\r\n\t\t}\r\n\t\tSystem.out.println(\"Using Enhanced for loop\");\r\n\t\tfor (Object object : keySet) {\r\n\t\t\tSystem.out.println(myMap.get(object));\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tMap<Integer,Employee> map = new HashMap<Integer, Employee>();\n\t\tMap<String, Employee> hashMap = new HashMap();\n\t\tMap<Employee, Integer> hashMap1 = new HashMap();\n\t\tfor (int i =1; i<=10; i++){\n\t\t\t\n\t\t\tmap.put(i, new Employee(i+3, \"Manish\"+(i+3)));\n\t\t}\n\t\tSystem.out.println(map);\n\t\t\n\t\tEmployee emp1 = new Employee(4, \"Manish3\");\n\t\t//Use of Contains\n\t\tSystem.out.println(map.containsValue(emp1)); \n\t\t\n\t\t//Key Set\n\t\tSystem.out.println(map.keySet());\n\t\t\n\t\t//retrieve entry set\n\t\tSystem.out.println(map.entrySet());\n\t\t\n\t\t//map.forEach(action);; TO DO- need to understand this method\n\t\t\n\n\t\t//Returns in sorted order when Key is natural (permitives or String or Enum)\n\t\thashMap.put(\"A\", new Employee(1, \"Manish\"));\n\t\thashMap.put(\"C\", new Employee(3, \"Gaurav\"));\n\t\thashMap.put(\"B\", new Employee(2, \"Vinay\"));\n\t\tSystem.out.println(hashMap);\n\t\t\n\t\t//maintains insertion order when key is Object type(dont have any natural order)\n\t\thashMap1.put(new Employee(1, \"Manish\"),1);\n\t\thashMap1.put(new Employee(3, \"Gaurav\"),3);\n\t\thashMap1.put(new Employee(2, \"Vinay\"),2);\n\t\tSystem.out.println(hashMap1);\n\t\tHashMap<Long, String> masterRoomPoolMapping = new HashMap<Long, String>();\n\t\tmasterRoomPoolMapping.put(new Long(123), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(124), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(125), \"Manish\");\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSet<Long> keySet = masterRoomPoolMapping.keySet();\n\t\tSet<Long> newKeySet = new HashSet<Long>();\n\t\tfor(Long key : keySet){\n\t\t\tnewKeySet.add(new Long(key));\n\t\t}\n\t\tSystem.out.println(\"newKeySet***************************************************\");\n\t\tif(newKeySet.contains(new Long(123)))\n\t\t\tnewKeySet.remove(new Long(123));\n\t\tfor(Long key : newKeySet){\n\t\t\tSystem.out.println(key);\n\t\t}\n\t\tSystem.out.println(\"keySet1***************************************************\");\n\t\tSet<Long> keySet1 = masterRoomPoolMapping.keySet();\n\t\tfor(Long key : keySet1){\n\t\t\tSystem.out.println(masterRoomPoolMapping.get(key));\n\t\t}\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSystem.out.println(masterRoomPoolMapping);\n\t}", "public HashMap<K,V> listAll();", "public void printDistance()\n\t{\n\t\tArrayList<Robot> ar=new ArrayList<Robot>();\n\t\tIterator<Robot> it;\n\t\tint i=1;//started index\n\t\t\n\t\tar.addAll(robotHM.values());//adding all\n\t\tCollections.sort(ar, new DistanceCompare());//sort by distance\n\t\tit=ar.iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tRobot r=it.next();\n\t\t\tSystem.out.println(i+\". \"+r.getName()+\" distance \"+r.getDistance());\n\t\t\ti++;\n\t\t}\n\t}", "@Override\n public int hashCode() {\n \tint result=super.hashCode();\n \tresult+=(latitude*1000); // *1000 to increase the chance that coordinates nearby have a different hashcode \n \tresult+=(longitude*1000); \n \tresult+=altitude;\n \treturn result;\n }", "Map<String, Long> hits();", "public static void QueryVector() {\n for(Entry<String, List<Double>> entry: wtgMap.entrySet()){\n List<Double> queryValue = new ArrayList();\n queryValue = entry.getValue();\n double temp = queryValue.get(totaldocument);\n\n query.add(temp);\n }\n }", "@Test\n public void testGetPillars(){\n largePillarMap = largeMaze.getPillars();\n assertEquals(25, largePillarMap.size());\n }", "public Set<Map.Entry<K, V>> entrySet() {\n System.out.println(\"SimpleTreeMap.entrySet()\");\n return mMap.entrySet();\n }", "private static <K, V> Set<Map.Entry<K, V>> getSortedEntrySet(Map<K, V> dict) {\n if (!(dict instanceof SortedMap<?, ?>)) {\n Map<K, V> tmp = new TreeMap<>(EvalUtils.SKYLARK_COMPARATOR);\n tmp.putAll(dict);\n dict = tmp;\n }\n\n return dict.entrySet();\n }", "public abstract java.util.Map<java.lang.Double, java.util.List<java.lang.Integer>> pnlListMap();", "@Override\n\tpublic HashMap<Integer, HashMap<Integer,VueElement>> chercherElementProche(VueElement ve, Hashtable<Integer,VueElement> voisins){\n\t\tHashMap<Integer, HashMap<Integer,VueElement>> resultat = new HashMap<>();\n\n\t\tint distPlusProche = 100;\n\t\tint refPlusProche = 0;\n\t\t/* Strategie du random */\t\t\t\n\t\tSet<Integer> tabref = voisins.keySet();\n\t\tInteger[] t = new Integer[tabref.size()];\n\t\tRandom r = new Random();\n\t\tint s = tabref.size();\n\t\ttabref.toArray(t);\n\t\tif(tabref.size() >= 1 && t[0]!=null)\n\t\t{\n\t\t\t/* On trouve un ele aleatoire dans la liste de voisins */\n\t\t\tint l = r.nextInt(s);\n\t\t\trefPlusProche=t[l];\n\t\t}\n\t\telse refPlusProche=0;\n\n\t\tHashMap<Integer,VueElement> cible = new HashMap<>();\n\t\tcible.put((Integer)refPlusProche, voisins.get(refPlusProche));\n\t\tresultat.put((Integer)distPlusProche, cible);\n\n\t\treturn resultat;\n\t}", "public static void main(String[] args) {\n\tMap <String, Integer>phones=new HashMap<>();\r\n\tphones.put(\"Mila\", 98232433);\r\n\tphones.put(\"Jenia\", 2834732);\r\n\tphones.put(\"Yerlan\", 77398274);\r\n\tphones.put(\"Mila\",1263584);\r\n\t//last one will override the first one\r\n\t\r\n\tIterator <String> iterator=phones.keySet().iterator();\r\n\twhile (iterator.hasNext()){\r\n\t\tString key=iterator.next();\r\n\t\tInteger value=phones.get(key);\r\n\t\tSystem.out.println(key+\" \"+value);\r\n\t}\r\n\t\r\n\t//store keys in Set\r\n\tSet<String> keys=phones.keySet();\r\n\tfor (String key : keys) {\r\n\t\tSystem.out.println(key);\r\n\t}\r\n\t//store values in Collection\r\n Collection <Integer> val=phones.values();\r\n for (Integer values : val) {\r\n \tSystem.out.println(values);\r\n\t\t\r\n\t}\r\n \r\n Set<Entry<String,Integer>> entry=phones.entrySet();\r\n for (Entry<String, Integer> entry2 : entry) {\r\n\t\t//System.out.println(entry2);\r\n\t\tSystem.out.println(entry2.getKey()+\" \"+entry2.getValue());\r\n\t}\r\n}", "void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);", "public void showMarketPerHome(){\n for(Map.Entry<Long, Property> entry : propertyInfo.entrySet()){\n Long zip = entry.getKey();\n Property curPro = entry.getValue();\n System.out.println(zip+\" \"+ curPro.calAvgMarket());\n }\n }", "public Iterable<MapElement> elements() {\n return new MapIterator() {\n\n @Override\n public MapElement next() {\n return findNext(true);\n }\n \n };\n }", "private void setAllLocalResults() {\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = mapExpressionsToOrderedPairs();\n // get only the values(ordered tuples) and save them in a list for next() calls\n keyValuePairs.forEach((key, valueList) -> valueList.forEach((value) -> _localTupleResults.add(value)));\n\n _child.close();\n if (_localTupleResults.size() == 0) {\n this._hasNext = false;\n } else {\n this._hasNext = true;\n }\n }", "public Map <Double, Double> curvasEntreDosPuntos(double kminicial, double kmfinal)\n\t{\n\t\tMap <Double, Double> curvas = new TreeMap <Double, Double>();\n\t\tIterator<Map.Entry<Double, Double>> it = mapavelocidadesmaximas.entrySet().iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tMap.Entry<Double, Double> dato = it.next();\n\t\t\tif (dato.getKey() >= kminicial && dato.getKey() < kmfinal)\t\n\t\t\t\tcurvas.put(dato.getKey(), dato.getValue());\n\t\t}\n\t\t\n\t\treturn curvas;\n\t}", "public void findIsolatedGenes(){\n\t\tHashMap isolated = new HashMap();\n\t\t//for each chromosome\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenesAll = (UCSCGeneLine[])genesAll.get(chrom);\n\t\t\tUCSCGeneLine[] chrGenesSelect = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenesSelect.length);\n\t\t\tArrayList isolatedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenesSelect.length; i++){\n\t\t\t\t//expand size of gene\n\t\t\t\tint start = chrGenesSelect[i].getTxStart() - extension;\n\t\t\t\tint end = chrGenesSelect[i].getTxEnd() + extension;\n\t\t\t\t//scan all, allow one hit\n\t\t\t\tint hits = 0;\n\t\t\t\tfor (int j =0; j< chrGenesAll.length; j++){\n\t\t\t\t\tif (intersects (chrGenesAll[j], start, end)) {\n\t\t\t\t\t\thits++; \n\t\t\t\t\t\tif (hits >1) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//save?\n\t\t\t\tif (hits < 2){\n\t\t\t\t\tisolatedGenes.add(chrGenesSelect[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenesSelect = new UCSCGeneLine[isolatedGenes.size()];\n\t\t\tisolatedGenes.toArray(chrGenesSelect);\n\t\t\tSystem.out.println(\"\\tIsolated \"+chrom+\"\\t\"+ chrGenesSelect.length);\n\t\t\tisolated.put(chrom, chrGenesSelect);\n\t\t}\n\t\tgenesSelect = isolated;\n\t\t//clean up\n\t\tgenesAll = null;\n\t\tSystem.gc();\n\t}", "public final Iterator<Entry<K, V>> mo7887a() {\n if (this.f6747g == null) {\n this.f6747g = this.f6748h.f6577g.entrySet().iterator();\n }\n return this.f6747g;\n }", "public Set<GeographicPoint> getVertices()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\tSet<GeographicPoint> ans = new HashSet<GeographicPoint> ();\n\t\tfor (GeographicPoint curr : map.keySet()) {\n\t\t\tif (!ans.contains(curr)) {\n\t\t\t\tans.add(curr);\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}", "public int size ()\n {\n return this.entryMap.size ();\n }", "public static void main(String[] args) {\n HashMap<String, Double> hm = new HashMap<String, Double>();\n\n //put elements to the map\n hm.put(\"John Doe\", new Double(3434.34));\n hm.put(\"Tom Smith\", new Double(123.22));\n hm.put(\"Lane Baker\", new Double(1378.00));\n hm.put(\"Tod Hall\", new Double(99.22));\n hm.put(\"Ralph Smith\", new Double(-19.08));\n\n //get a set of the entries\n java.util.Set<Map.Entry<String, Double>> set = hm.entrySet();\n\n //Display the set\n for (Map.Entry<String, Double> me:set){\n System.out.print(me.getKey() + \": \");\n System.out.println(me.getValue());\n }\n System.out.println();\n\n //Deposit 1000 into Jon Doe's account\n double balance = hm.get(\"John Doe\");\n hm.put(\"John Doe\", balance + 1000);\n\n System.out.println(\"John Doe's new balanve: \" + hm.get(\"John Doe\"));\n\n\n }", "public static HashMap<String, HashMap<Integer, Integer>> binHiggsData(HashMap<String, ArrayList<Double>> energyMap){\r\n\r\n\t\t//hashmap. Keys: detector name. Value: the hashmap above\r\n\t\tHashMap<String, HashMap<Integer, Integer>> bothDetectorsBinnedData = new HashMap<String, HashMap<Integer, Integer>>();\r\n\r\n\t\t//arraylist of the detector in the map so we can loop through all of them \r\n\t\tArrayList<String> detectorList = new ArrayList<String>();\r\n\t\tdetectorList.addAll(energyMap.keySet());\r\n\r\n\t\t//loop through all of the detectors (in this case, just GG and ZZ)\r\n\t\tfor (String detector : detectorList){\r\n\r\n\t\t\t//initialise values - this needs to be done in this for loop to reset for each detector\r\n\t\t\tint currentValueBin;\r\n\t\t\tint currentFreq;\t\r\n\t\t\tint newFreq;\r\n\t\t\tdouble currentValueBinD;\r\n\r\n\t\t\t//hashmap. Keys: each bin minimum. Value: number of readings in that bin\r\n\t\t\tHashMap<Integer, Integer> numberOfReadingsInEachBin = new HashMap<Integer, Integer>();\r\n\r\n\t\t\t//find the current list of data for this detector\r\n\t\t\tArrayList<Double> currentData = energyMap.get(detector);\r\n\r\n\t\t\tArrayList<Integer> flooredValues = new ArrayList<Integer>();\r\n\r\n\t\t\t//loop through all of the data in the set for this detector\r\n\t\t\tfor (double currentE : currentData){\r\n\r\n\t\t\t\t//round the value down, this is what the bin will be\r\n\t\t\t\tcurrentValueBinD = Math.floor(currentE);\r\n\t\t\t\tcurrentValueBin = (int) currentValueBinD;\r\n\r\n\t\t\t\tflooredValues.add(currentValueBin);\r\n\r\n\r\n\t\t\t\t//look for this value in the hashmap of bins and frequency\r\n\t\t\t\tInteger frequency = numberOfReadingsInEachBin.get(currentValueBin);\r\n\r\n\r\n\r\n\t\t\t\t//if this bin hasn't been put into the hashmap yet, put it in\r\n\t\t\t\tif (frequency == null){\r\n\t\t\t\t\tnumberOfReadingsInEachBin.put(currentValueBin, 1);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//if it has, add one to the frequency\r\n\t\t\t\telse{\r\n\t\t\t\t\tcurrentFreq = numberOfReadingsInEachBin.get(currentValueBin);\r\n\t\t\t\t\tnewFreq = currentFreq +1;\r\n\t\t\t\t\tnumberOfReadingsInEachBin.put(currentValueBin, newFreq);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//System.out.println(Collections.min(currentData));\r\n\r\n\t\t\t//if there have been frequencies of zero, they won't have been added, add them now\r\n\t\t\tfor (int i = Collections.min(flooredValues); i < Collections.max(flooredValues); i++){\r\n\t\t\t\tInteger currentReadings = numberOfReadingsInEachBin.get(i);\r\n\r\n\t\t\t\tif (currentReadings == null){\r\n\r\n\t\t\t\t\tnumberOfReadingsInEachBin.put(i, 0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//put the detector and the corresponding frequency data into the hashmap\r\n\t\t\tbothDetectorsBinnedData.put(detector, numberOfReadingsInEachBin);\r\n\r\n\t\t}\r\n\t\treturn bothDetectorsBinnedData;\r\n\t}", "static <K,V extends Comparable<? super V>> SortedSet<Map.Entry<K,V>> entriesSortedByValues(Map<K,V> map) {\n\t\t SortedSet<Map.Entry<K,V>> sortedEntries = new TreeSet<Map.Entry<K,V>>(\n\t\t new Comparator<Map.Entry<K,V>>() {\n\t\t @Override public int compare(Map.Entry<K,V> e1, Map.Entry<K,V> e2) {\n\t\t int res = e1.getValue().compareTo(e2.getValue());\n\t\t return res != 0 ? res : 1;\n\t\t }\n\t\t }\n\t\t );\n\t\t sortedEntries.addAll(map.entrySet());\n\t\t return sortedEntries;\n\t\t}", "public Iterable<K> keys(K lo, K hi);", "public void updateMap(HashMap<Coordinate, MapTile> currentView) {\n\t\t\tfor (Coordinate key : currentView.keySet()) {\n\t\t\t\tif (!map.containsKey(key)) {\n\t\t\t\t\tMapTile value = currentView.get(key);\n\t\t\t\t\tmap.put(key, value);\n\t\t\t\t\tif (value.getType() == MapTile.Type.TRAP) {\n\t\t\t\t\t\tTrapTile value2 = (TrapTile) value; // downcast to find type\n\t\t\t\t\t\tif (value2.getTrap().equals(\"parcel\") && possibleTiles.contains(key)) {\n\t\t\t\t\t\t\tparcelsFound++;\n\t\t\t\t\t\t\tparcels.add(key);\n\t\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\t\tphase = \"search\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"lava\")) {\n\t\t\t\t\t\t\tlava.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"health\")) {\n\t\t\t\t\t\t\thealth.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"water\")) {\n\t\t\t\t\t\t\twater.add(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (value.getType() == MapTile.Type.FINISH) {\n\t\t\t\t\t\texitFound = true;\n\t\t\t\t\t\texit.add(key);\n\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\tphase = \"search\";\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}", "public Map<Actor, Location> getAllActors(GameMap gameMap) {\n\n Map<Actor, Location> dinosaursList = new HashMap<>();\n for (int x: gameMap.getXRange()) {\n for (int y: gameMap.getYRange()) {\n Location location = gameMap.at(x,y);\n Actor actor = gameMap.getActorAt(location);\n if (location.containsAnActor() ) {\n dinosaursList.put(actor,location);\n }\n }\n }\n return dinosaursList;\n }", "private static int compareGoListOverlap(HashMap<String, Double> un_GoMap, HashMap<String, Double> wn_GoMap) {\n\t\tint overlap = 0; \n\t\t/* iterate over significant GO Terms in weighted Network, count those found also in unweighted network*/ \n\t\tfor(String GO: wn_GoMap.keySet()) {\n\t\t\tif(un_GoMap.containsKey(GO)) {\n\t\t\t\toverlap += 1;\n\t\t\t}\n\t\t}\n\t\treturn overlap;\n\t}", "public ReducedCellInfo[] getEntries(double delta)\r\n {\r\n\r\n ReducedCellInfo compareTo = DataBase[0];\r\n\r\n Vector< ReducedCellInfo > V = new Vector< ReducedCellInfo >( );\r\n\r\n for( int i = 1 ; i < 45 ; i++ )\r\n\r\n if ( DataBase[i].distance( compareTo ) < delta )\r\n V.addElement( DataBase[i] );\r\n\r\n return V.toArray( new ReducedCellInfo[ 0 ] );\r\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn loc.hashCode();\n\t}", "public Iterator iterator() {\n\t\treturn map.keySet().iterator();\n\t}" ]
[ "0.5994861", "0.58525455", "0.5847192", "0.5719184", "0.5667903", "0.56573343", "0.55882925", "0.55856705", "0.55525905", "0.555201", "0.5546689", "0.55276024", "0.55246043", "0.5498978", "0.54595107", "0.54427993", "0.54106456", "0.53779733", "0.53589", "0.5354589", "0.5341634", "0.5334085", "0.5331311", "0.530057", "0.5282909", "0.52561915", "0.524671", "0.5240482", "0.5239576", "0.523269", "0.5221743", "0.5202743", "0.5194519", "0.5185151", "0.51712924", "0.5171057", "0.51688236", "0.5168604", "0.51631606", "0.5156783", "0.5152568", "0.5137881", "0.5133962", "0.5123994", "0.5115006", "0.5104305", "0.510339", "0.50898856", "0.5089327", "0.5083572", "0.5080891", "0.5079349", "0.5077517", "0.5076492", "0.50707614", "0.5064521", "0.5056278", "0.5053458", "0.5051626", "0.5051602", "0.50462705", "0.50454295", "0.50399274", "0.50361615", "0.50332", "0.5032173", "0.5030795", "0.502937", "0.5018903", "0.5013764", "0.50124776", "0.50111014", "0.5008823", "0.5003579", "0.50024873", "0.5000234", "0.4995644", "0.4988613", "0.4984165", "0.4978244", "0.49708503", "0.49698037", "0.496595", "0.49658406", "0.495806", "0.49573138", "0.49559525", "0.4953004", "0.49522072", "0.49504936", "0.49501777", "0.49492723", "0.49418083", "0.49378443", "0.49361297", "0.4934021", "0.49336985", "0.4932675", "0.49316606", "0.4923448", "0.4923417" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_refresh) { SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); int mosqueKey = preferences.getInt("mosque", 0); if(ConnectivityReceiver.isConnected()){ if (mosqueKey == 0) getWebsite0(); if (mosqueKey == 1) getWebsite1(); if (mosqueKey == 2) getWebsite2(); if (mosqueKey == 3) getWebsite3(); if (mosqueKey == 4) getWebsite4(); if (mosqueKey == 5) getWebsite5(); Toast.makeText(this, "Syncing online...", Toast.LENGTH_LONG).show(); }else{ Toast.makeText(this, "NO INTERNET", Toast.LENGTH_LONG).show(); } return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79036397", "0.78051436", "0.77656627", "0.7726445", "0.7630767", "0.76211494", "0.75842685", "0.75296193", "0.74868536", "0.74574566", "0.74574566", "0.7437983", "0.7422003", "0.7402867", "0.7391276", "0.73864174", "0.7378494", "0.73696834", "0.736246", "0.7355139", "0.73449135", "0.7340738", "0.7329403", "0.7327573", "0.7325295", "0.7318255", "0.73159224", "0.7312879", "0.73033696", "0.73033696", "0.73008657", "0.7297531", "0.72929823", "0.7285663", "0.7282749", "0.72806233", "0.7277895", "0.72592133", "0.72592133", "0.72592133", "0.725875", "0.72585285", "0.7249446", "0.72242975", "0.72188604", "0.721602", "0.7203672", "0.720087", "0.71988416", "0.7192238", "0.7184499", "0.71768767", "0.71679133", "0.71665394", "0.7153183", "0.71526414", "0.71351266", "0.71341896", "0.71341896", "0.7128609", "0.7128064", "0.7123341", "0.7122453", "0.712232", "0.71210843", "0.7116595", "0.7116595", "0.7116595", "0.7116595", "0.7116421", "0.71161103", "0.71159387", "0.7114029", "0.71116006", "0.71088904", "0.71078885", "0.7104719", "0.70989364", "0.7097548", "0.7096198", "0.7092782", "0.7092782", "0.70853245", "0.7082456", "0.70802784", "0.70795983", "0.7073409", "0.70673656", "0.7060751", "0.70591253", "0.7058957", "0.7050524", "0.70371544", "0.70371544", "0.70350724", "0.70344317", "0.70344317", "0.7031844", "0.70303893", "0.70286727", "0.7017757" ]
0.0
-1
TODO Autogenerated method stub
public void onNothingSelected(AdapterView<?> arg0) { }
{ "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
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }", "private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }", "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }" ]
[ "0.78840077", "0.75487214", "0.74962974", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246" ]
0.0
-1
untuk menangkap response dari startActivityForResult
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == 1 && resultCode == RESULT_OK) { Cursor cursor = null; try { Uri uri = data.getData(); cursor = getContentResolver().query(uri, new String[]{ ContactsContract.CommonDataKinds.Phone.NUMBER}, null, null, null); if (cursor != null && cursor.moveToNext()) { String phone = cursor.getString(0); edtnohp.setText(phone); } } catch (Exception e) { e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n if(resultCode == ACTIVITY_FOR_RESULT_ID){\r\n setResult(ACTIVITY_FOR_RESULT_ID);\r\n finish();\r\n }\r\n }", "@Override\n public void handleResult(Intent data) {\n }", "@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tmDialog.cancel();\r\n\t\t\tIntent intent=new Intent();\r\n\t\t\tsetResult(11, intent);\r\n\t\t\tfinish();\r\n\t\t}", "public void retornaParaTelaAnterior() {\n Intent intentMessage=new Intent();\n setResult(CODE_NOVO_GASTO, intentMessage);\n finish();\n }", "@Override\n public void starryEyes(String result) {\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\",result);\n setResult(RESULT_OK,returnIntent);\n finish();\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode!= Activity.RESULT_OK){\n return;\n }\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n // TODO Auto-generated method stub\n if ((requestCode == request_code) && (resultCode == RESULT_OK)) {\n\n // Toast.makeText(this, intent.getStringExtra(\"resultado\"), Toast.LENGTH_LONG).show();\n inEquipo.setText(intent.getStringExtra(\"resultado\"));\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tswitch (requestCode) {\n\t\tcase 1:\n\t\t\tif(data != null){\n\t\t\t\tString result = data.getStringExtra(\"result\");\n\t\t\t\tif(result != null)\n\t\t\t\t\t//tv.setText(result);\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\tUri uri = Uri.parse(result); \n\t\t\t\tIntent it = new Intent(Intent.ACTION_VIEW, uri); \n\t\t\t\tstartActivity(it);\n\t\t\t}\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(requestCode == 1){\n\t\t\tif(resultCode == RESULT_OK){\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n Intent returnIntent = new Intent();\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }", "@Override\n public void onResult(Bundle bundle) {\n final String result = bundle.getString(DiabetesAppConnection.RESULT_KEY, \"\");\n\n if (result.equals(DiabetesAppConnection.RESULT_UNAUTHORIZED)) {\n mResult.setText(\"Unauthorized\");\n mReadData.setEnabled(false);\n mPushData.setEnabled(false);\n return;\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mResult.setText(\"PushData result = \" + result);\n }\n });\n }", "@Override\n\tpublic void finish() {\n\t Intent data = new Intent();\n\t\t data.putExtra(\"returnKey1\",id );\n \t setResult(2, data);\n\t\t super.finish();\n\t}", "protected void onActivityResult(int requestCode, int resultCode, Intent data){\n finish();\n startActivity(getIntent());\n }", "@Override\r\n\tprotected void onActivityResult(int arg0, int arg1, Intent arg2) {\n\t\tsuper.onActivityResult(arg0, arg1, arg2);\r\n\t\tif(arg0 == REQUEST_CODE_SUCCESS && arg1 == RESULT_OK){\r\n\t\t\tthis.finish();\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View v) {\n setResult(Activity.RESULT_OK, new Intent());\n finish();\n }", "@Override\n public void doInUI(Response response, Integer transfer) {\n if (response.isSuccess()) {\n Intent it = getIntent();\n setResult(Activity.RESULT_OK, it);\n finish();\n }\n }", "@Override\n public void doInUI(Response response, Integer transfer) {\n if (response.isSuccess()) {\n Intent it = getIntent();\n setResult(Activity.RESULT_OK, it);\n finish();\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == PayuConstants.PAYU_REQUEST_CODE) {\n getActivity().setResult(resultCode, data);\n getActivity().finish();\n }\n }", "@Override\r\n public void onClick(View v) {\n setResult(1);\r\n finish();\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 4 && resultCode == 4) {\n setResult(4);\n finish();\n } else if (requestCode == 4 && resultCode == 3) {\n setResult(3);\n finish();\n }\n }", "@Override\n\t\tpublic void onFinished(HttpResponseResult responseResult) {\n\t\t\tint result = responseResult.getStatusCode();\n\t\t\tdismiss();\n\t\t\tif(result == 200||result==201){\n\t\t\t\tnew AlertDialog.Builder(AccountForgetPSWActivity.this)\n\t\t\t\t\t.setTitle(R.string.alert_title)\n\t\t\t\t\t.setMessage(R.string.get_psw_finish)\n\t\t\t\t\t.setPositiveButton(R.string.ok, \n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tInputMethodManager imm = (InputMethodManager)getSystemService(\n\t\t\t\t\t\t\t\t\t\t\t \t\tContext.INPUT_METHOD_SERVICE); \n\t\t\t\t\t\t\t imm.hideSoftInputFromWindow(((EditText) findViewById(R.id.get_phone_editText))\n\t\t\t\t\t\t\t \t\t \t\t.getWindowToken(),0);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t UserManager.getInstance().getUser().setPassword(\"\");\n\t\t\t\t\t\t\t UserManager.getInstance().getUser().setUserKey(\"\");\n\t\t\t\t\t\t\t Intent intent = new Intent(AccountForgetPSWActivity.this, AccountSettingActivity.class);\n\t\t\t\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t).show();\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n// switch (resultCode) { //resultCode为回传的标记,我在第二个Activity中回传的是RESULT_OK\n// case Activity.RESULT_OK:\n// Bundle b=intent.getExtras(); //data为第二个Activity中回传的Intent\n// barCode = b.getString(\"code\");//str即为回传的值\n// mCallbackContext.success(barCode);\n// break;\n// default:\n// break;\n// }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == ACTIVITY_ONE_REQUEST && resultCode == RESULT_OK) {\n if (data.hasExtra(ACTIVITY_ONE_RESULT)) {\n String result = data.getExtras().getString(ACTIVITY_ONE_RESULT);\n Toast.makeText(MainActivity.this, result, Toast.LENGTH_SHORT).show();\n requestResult.setText(result);\n }\n }\n if (requestCode == ACTIVITY_TWO_REQUEST && resultCode == RESULT_OK) {\n /**\n * Possibly of returning two different results from Activity Two\n */\n if (data.hasExtra(ACTIVITY_TWO_RESULT)) {\n String result = data.getExtras().getString(ACTIVITY_TWO_RESULT);\n Toast.makeText(MainActivity.this, result, Toast.LENGTH_SHORT).show();\n requestResult.setText(result);\n }\n if (data.hasExtra(ACTIVITY_TWO_RESULT_DIFFERENT)) {\n String result = data.getExtras().getString(ACTIVITY_TWO_RESULT_DIFFERENT);\n Toast.makeText(MainActivity.this, result, Toast.LENGTH_SHORT).show();\n requestResult.setText(result);\n }\n }\n }", "@Override\n public void handleResult(com.google.zxing.Result rawResult) {\n if (rawResult.getText().length() < 4) {\n mScannerView.resumeCameraPreview(SimpleScanner.this);\n Toast.makeText(this, \"Wrong QR Code\", Toast.LENGTH_SHORT).show();\n } else {\n Result = rawResult.getText().substring(0, 4);\n MachineID = rawResult.getText().substring(Result.length());\n if (Result.equals(Verification)) {\n Intent i = new Intent(SimpleScanner.this, DetailBreakdownPage2.class);\n String currentResponseDateFinish = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\", Locale.getDefault()).format(new Date());\n i.putExtra(\"MachineID\", MachineID);\n i.putExtra(\"ResponseDateFinish\", currentResponseDateFinish);\n i.putExtra(\"Line\", Line);\n i.putExtra(\"Station\", Station);\n i.putExtra(\"PIC\", PIC);\n startActivity(i);\n } else {\n mScannerView.resumeCameraPreview(SimpleScanner.this);\n Toast.makeText(this, \"Station tidak sesuai\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n protected void onPostExecute(Void result) {\n Intent intent = new Intent(game_play.this, user_input.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK|Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n finish();\n }", "private void dodajZadanie() {\n Intent intent = new Intent(this, DodajEtap.class);\n startActivityForResult(intent, REQUEST_CODE);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.putExtra(\"Yes_or_No\",\"No\");\n setResult(RESULT_OK, intent);\n finish();\n }", "@Override\n public void onClick(View view) {\n Intent dummyInt = new Intent();\n dummyInt.putExtra(CardActivity.CARD, ca);\n setResult(2, dummyInt);\n finish();\n }", "private void setAnswerResult(boolean b){\n Intent i=new Intent();\n i.putExtra(Is_Cheated,b);\n setResult(RESULT_OK,i);\n\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n if (requestCode == 1001) {\n if (resultCode == getActivity().RESULT_OK) {\n //fetch the integer we passed into the dialog result which corresponds to the list position\n\n int nResult = data.getIntExtra(ResultsDialogActivity.POSITION, -99);\n\n\n if (nResult != -99) {\n try {\n mStrImageUrl = \"\";\n YelpResultsData.Business biz = mYelpResultsData.businesses.get(nResult);\n mNameField.setText(biz.name);\n mAddressField.setText(biz.location.address.get(0));\n mPhoneField.setText(PhoneNumberUtils.formatNumber(biz.phone));\n mYelpField.setText(biz.url);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n fetchPhoto(mPhotoView);\n }\n }\n if (resultCode == getActivity().RESULT_CANCELED) {\n //do nothing\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 1 && resultCode == RESULT_OK) {\n fade(rlMap);\n Map<String, Object> params = User.getToken(this);\n WebBridge.send(\"webservices.php?task=getStatusMap\", params, \"Cargando\", this, this);\n } else if (requestCode == 1 && resultCode != RESULT_OK) {\n clickBack(null);\n }\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\tswitch(requestCode){\r\n\t\tcase QUERYACTIVITYCODE:{\r\n\t\t\tif(resultCode==Activity.RESULT_OK){\r\n\r\n\t\t\t\ttv_query.setText(data.getStringExtra(\"codestr\"));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t//Toast.makeText(CircleActivity.this, \"未登录\", Toast.LENGTH_LONG).show();;\r\n\t\t\t\t;\r\n\t\t}\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n }", "@Override\n\tpublic void finish() {\n\t\tIntent data = new Intent();\n\t\t// Activity finished ok, return the data\n\t\t\n\t\t// TODO 2 put the data with the id returnValue\n\t\tdata.putExtra(RATING_OPTION, \"\"+rating.getProgress());\n\t\t\n\t\t// TODO 3 use setResult(RESULT_OK, intent);\n\t\t// to return the Intent to the application\n\t\tsetResult(RESULT_OK, data);\n\n\t\tsuper.finish();\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n default:\n break;\n }\n\n }", "@Override\n public void onResponse(Call<JsonObject> call, Response<JsonObject> response) {\n Intent intent = new Intent(QuestionActivity.this, QuestionSuccessActivity.class);\n startActivity(intent);\n ((Activity)context).finish();\n progressDialog.dismiss();\n\n }", "@Override\n public void onSuccess(Map<String, Object> retData) {\n startActivity(intent_main);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == REQUEST_CODE_LOGIN) {\n if (resultCode == RESULT_OK) {\n Intent mainIntent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(mainIntent);\n } else {\n String action = getApplicationContext().getResources().getString(R.string.message_action_failure, \"login\");\n Toast.makeText(this, action, Toast.LENGTH_SHORT).show();\n }\n }\n }", "void showResultActivity() {\n\n Intent intent = new Intent();\n intent.setClass(this, ScanResultActivity.class);\n startActivity(intent);\n finish();\n\n playEffect();\n }", "protected abstract void startActivityForResult(final T androidComponent,\n final Intent intent,\n final int requestCode);", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n //if qrcode reader\n if(code == 1){\n IntentResult qrcode = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (qrcode != null) {\n if (qrcode.getContents() != null) {\n String cut = qrcode.getContents();\n int corte = cut.indexOf(\"=\") + 1;\n final String code = cut.substring(corte, corte + 44);\n Intent readQRcode = new Intent(activity, VerNFe.class);\n readQRcode.putExtra(\"code\", code);\n overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);\n startActivity(readQRcode);\n } else {\n Toast.makeText(activity, R.string.toast_cancel_read_qrcode, Toast.LENGTH_SHORT).show();\n }\n drawerLayout.closeDrawers();\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }\n //if barcode reader\n else if (code == 2){\n IntentResult barcode = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (barcode != null) {\n if (barcode.getContents() != null) {\n String codigo_de_barras = barcode.getContents();\n Descontos d = new Descontos();\n d.pegaProdutoPorCodigoDeBarras(codigo_de_barras);\n } else {\n Toast.makeText(this, \"Leitura do código de barras cancelado\", Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(this, \"Erro ao ler código de barras do Produto\", Toast.LENGTH_LONG).show();\n }\n }\n\n }", "public void finishActivity(View view) {\n Intent result = new Intent(\"com.example.RESULT_ACTION\", Uri.parse(\"content://result_uri\"));\n result.putExtra(\"song\", songs.getSelectedItem().toString());\n setResult(Activity.RESULT_OK, result);\n finish();\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n try {\n String parametro = data.getStringExtra(\"parametro\");\n String valor = data.getStringExtra(\"valor\");\n Id = valor;\n String descripcion = data.getStringExtra(\"descripcion\");\n if (requestCode == 1) {\n EditText tecnico = (EditText) findViewById(R.id.tecnico);\n tecnico.setText(descripcion);\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n // if result code 100\n if (resultCode == 100) {\n // if result code 100 is received\n // means user edited/deleted player\n // reload this screen again\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }\n\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tif (requestCode == CODE_OK) {\n\t\t\tString result = data.getExtras().getString(\"result\");\n\t\t\tif (!result.equals(\"null\")) {\n\t\t\t\tMSShow.show(getApplicationContext(), result);\n\t\t\t\tLog.e(\"result\", result);\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n\tpublic void resultActivityCall(int requestCode, int resultCode, Intent data) {\n\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 1) {\n if (resultCode == RESULT_OK) {\n this.finish();\n }\n }\n }", "@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (result != null) {\n if (result.getContents() == null) {\n Log.d(\"MainActivity\", \"Cancelled scan\");\n makeToast(this, \"Cancelado\");\n } else {\n Log.d(\"MainActivity\", \"Scanned\");\n makeToast(this, \"Contactando con Salesforce, ISBN: \" + result.getContents());\n scanResult = result.getContents();\n\n if (scanResult != null) {\n try {\n getProducto(scanResult);\n } catch (Exception e) {\n Log.e(\"RequestError\", e.toString());\n makeToast(this, \"Ha ocurrido un error, intente nuevamente...\");\n } finally {\n sfResult = null;\n }\n }\n }\n } else {\n Log.d(\"MainActivity\", \"Weird\");\n // This is important, otherwise the result will not be passed to the fragment\n super.onActivityResult(requestCode, resultCode, data);\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tIntent reintent = new Intent();\n\t\tsetResult(601, reintent);\n\t\tfinish();\n\t}", "protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n super.onActivityResult(requestCode, resultCode, intent);\n\n // Check if result comes from the correct activity\n if (requestCode == REQUEST_CODE) {\n AuthenticationResponse response = AuthenticationClient.getResponse(resultCode, intent);\n\n switch (response.getType()) {\n // Successful response, token received\n case TOKEN:\n // Store access token for later use\n editor = getSharedPreferences(\"SPOTIFY\", 0).edit();\n editor.putString(\"token\", response.getAccessToken());\n editor.apply();\n\n // Move to genre list activity if authentication was successful\n Intent genreIntent = new Intent(SpotifyAuthActivity.this, GenreListActivity.class);\n startActivity(genreIntent);\n break;\n\n case ERROR:\n Toast.makeText(SpotifyAuthActivity.this, \"ERROR\", Toast.LENGTH_LONG);\n break;\n\n default:\n Toast.makeText(SpotifyAuthActivity.this, \"CANCELLED\", Toast.LENGTH_LONG);\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == 78 && resultCode == RESULT_OK ){\n\n user = data.getExtras().getString(\"usuarioP\");\n pass = data.getExtras().getString(\"contraseñaP\");\n correo = data.getExtras().getString(\"correoP\");\n\n // tTemporal2.setText(\"vengo de perfil\" + user + \"\\n\" + pass);\n }\n\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\r\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\t\t// TODO - fill in here\r\n\r\n\r\n\r\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n Log.d(LOG_TAG, \"onActivityResult\");\n if (resultCode == Activity.RESULT_OK) {\n Log.d(LOG_TAG, \"requestCode: \" + requestCode);\n switch (requestCode) {\n case 300:\n AdobeSelection selection = getSelection(intent);\n\n Intent data = new Intent();\n data.putExtras(intent);\n setResult(Activity.RESULT_OK,data);\n finish();\n\n break;\n }\n } else if (resultCode == Activity.RESULT_CANCELED) {\n //this.callbackContext.error(\"Asset Browser Canceled\");\n Log.d(LOG_TAG, \"Asset Browser Canceled\");\n finish();\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent arg2) {\n\t\tsuper.onActivityResult(requestCode, resultCode, arg2);\n\n\t\tswitch (resultCode) {\n\t\tcase 0:// finish\n\t\t\tCustomApplication.app\n\t\t\t\t\t.finishActivity(LessonFlashCardOpActivity.this);\n\t\t\tbreak;\n\t\tcase 1:// redo\n\t\t\tindex = 0;\n\t\t\tsetText();\n\t\t\tplay();\n\t\t\tgallery.setSelection(index);// 选中当前页面\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onClick(View arg0) {\n\n\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"merchantNumber\",merchantNamesList.get(position).getMerchantNumber());\n returnIntent.putExtra(\"merchantName\",merchantNamesList.get(position).getMerchantName());\n setResult(RESULT_OK, returnIntent);\n finish();\n }", "@Override\r\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\r\n\t\t if(result.equals(\"error\")){\r\n\t \t\tToast.makeText(getApplicationContext(), \"服务器忙,请重试\", 0).show(); \t\r\n\t\t }else{\r\n\t Intent intent=new Intent();\r\n\t\t intent.putExtra(\"qqnumber\", result);\r\n\t \tintent.setClass(RegistActivity.this, RegistSuccessActivity.class);\r\n\t\t\t startActivity(intent);\r\n\t\t\t RegistActivity.this.finish();\r\n\t\t\t }\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 27) {\n // Make sure the request was successful\n // Log.e(\"add rofo\",\" ad\"+adRofo);\n if (resultCode == RESULT_OK) {\n // Log.e(\"add rofo\",\" ad\"+adRofo);\n adRofo = true;\n }\n }else{\n super.onActivityResult(requestCode, resultCode, data);\n }\n }", "@Override\n public void handleResult(Result result) {\n Log.w(\"handleResult\", result.getText());\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Scan result\");\n builder.setMessage(result.getText());\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n\n\n //Resume scanning\n //mScannerView.resumeCameraPreview(this);\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (requestCode == FORGET && resultCode == FORGET) {\n\t\t\tsetResult(FORGET);\n\t\t\tfinish();\n\t\t\t\n\t\t}\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == RESULT_OK && resultCode == RESULT_OK) {\n // Fill the list view with the strings the recognizer thought it could have heard\n ArrayList<String> matches = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n\n if (matches.size() >= 0) {\n\n CURRENT_1 = 7;\n CURRENT_1_IMAGE = R.drawable.logo_user;\n showDialog(CHOOSE_METHOD_DIALOG);\n } else {\n\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\n\t\tif(requestCode == QUESTION_DETAIL_START_REQUEST && resultCode == QUESTION_DETAIL_END_REQUEST)\n {\n\t\t\tnew ApacheHttpThread().start();\n }\n\t\t\n\t\tif(requestCode == ADD_QUESTION_START_REQUEST && resultCode == ADD_QUESTION_END_REQUEST)\n {\n\t\t\t//Thread.sleep(6);\n\t\t\t new ApacheHttpThread().start();\n\t\t\t\n }\n\t\t\n\t\tif(requestCode == USER_LOGIN_START_REQUEST && resultCode == USER_LOGIN_END_REQUEST)\n {\n\t\t\tLog.d(\"user login start @@@\", \"666666\");\n\n\t\t\t// Toast.makeText(getActivity(), \"66666\", Toast.LENGTH_SHORT).show();\n\t\t\t// Thread.sleep(6);\n\t\t\t// new ApacheHttpThread().start();\n\t\t\tFragment homeContent = null;\n\t\t\thomeContent = new homeFragment();\n\n\t\t\tTestURLActivity fca = (TestURLActivity) getActivity();\n\t\t\tfca.switchContent(homeContent);\n\n }\n\t\t\n\t\tif(requestCode == QUESTION_DETAIL_START_REQUEST_2 && resultCode == QUESTION_DETAIL_END_REQUEST_2)\n {\n\t\t\tToast.makeText(getActivity(), \"77777\", Toast.LENGTH_SHORT).show();\n\t\t\t// Thread.sleep(6);\n\t\t\t// new ApacheHttpThread().start();\n\t\t\tFragment homeContent = null;\n\t\t\thomeContent = new homeFragment();\n\n\t\t\tTestURLActivity fca = (TestURLActivity) getActivity();\n\t\t\tfca.switchContent(homeContent);\n\t\t\t\n\t\t\t\n\t\t\tLog.d(\"question start @@@\", \"777777\");\n\n }\n\t\n\t\t\n\t}", "@Override\n public void OnSuccessfullResponse(String result) {\n String resultSet[] = result.split(\":\");\n switch (resultSet[0]){\n case \"topoffers\":\n GetPromotions promotionsTask = (GetPromotions) new GetPromotions(resultSet[1]);\n promotionsTask.setContext(this);\n promotionsTask.setListener(this);\n promotionsTask.execute();\n break;\n case \"aisle\":\n GetAisleRecommendationsTask aisleRecommendationsTask = (GetAisleRecommendationsTask) new GetAisleRecommendationsTask(resultSet[1]);\n aisleRecommendationsTask.setContext(this);\n aisleRecommendationsTask.setListener(this);\n aisleRecommendationsTask.execute();\n break;\n case \"thankyou\":\n default:\n Intent intent = new Intent(getApplicationContext(), ThankYouActivity.class);\n startActivity(intent);\n break;\n }\n\n }", "@Override\n public void onResponse(JSONObject response) {\n dialog.dismiss();\n try {\n String success = response.getString(\"success\");\n if(success.equals(\"1\")){\n String user_id = response.getString(\"user_id\");\n String role = response.getString(\"role\");\n editid.putString(\"user_id\",user_id);\n editid.putString(\"role\",role);\n editid.apply();\n Intent intent=new Intent(LoginClientActivity.this,codeActivity.class);\n intent.putExtra(\"type\",1);\n startActivity(intent);\n }\n else if(success.equals(\"0\")){\n Toast.makeText(LoginClientActivity.this, \"عفوا هذا الحساب موجود مسبقا\", Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n\n }\n\n }", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tSystem.out.println(responseText.charAt(2)+\"\");\n\t\t\n\t\tif((responseText.charAt(2)+\"\").equals(\"成\")){\n\t\t\tSystem.out.println(\"要跳转了\");\n\t\t\tcontext.startActivity(intent);\n\t\t}\n\t\tsuper.onPostExecute(result);\n\t}", "@Override\r\n\t\tprotected void onPostExecute(Integer result) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tsuper.onPostExecute(result);\r\n\r\n\t\t\tif (result == 1) {\r\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(\r\n\t\t\t\t\t\tgetActivity());\r\n\t\t\t\talert.setMessage(\"Load instruction performed\");\r\n\t\t\t\talert.setTitle(\"Success\");\r\n\t\t\t\talert.setPositiveButton(\"Okay\",\r\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\talert.show();\r\n\t\t\t} else if (result == 0) {\r\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(\r\n\t\t\t\t\t\tgetActivity());\r\n\t\t\t\talert.setMessage(\"Failed\");\r\n\t\t\t\talert.setTitle(\"try again\");\r\n\t\t\t\talert.show();\r\n\r\n\t\t\t}\r\n\r\n\t\t}", "public void volver(View v){\r\n Intent i = new Intent();\r\n i.putExtra(\"REGISTRADO\", false);\r\n setResult(RESULT_OK, i);\r\n finish();\r\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(isSuccesfull()){\r\n\t\t\t\t\tIntent intent=new Intent();\r\n\t\t\t\t\tintent.putExtra(\"region\", regionText);\r\n\t\t\t\t\tintent.putExtra(\"tree\", treeText);\r\n\t\t\t\t\tintent.putExtra(\"ar\", iar);\r\n\t\t\t\t\tintent.putExtra(\"db\", idb);\r\n\t\t\t\t\tintent.putExtra(\"dm\", idm);\r\n\t\t\t\t\tintent.putExtra(\"dw\", idw);\r\n\t\t\t\t\tintent.putExtra(\"de\", ide);\r\n\t\t\t\t\tintent.putExtra(\"calV\", Calculate.CalV(transformStringToInt(regionText), transformStringToInt(treeText), idb, idm, idw, ide, iar));\r\n\t\t\t\t\tsetResult(RESULT_OK, intent);\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(InputDialog.this);\r\n\t\t\t\t\tbuilder.setTitle(R.string.app_name).setNegativeButton(\"知道了\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).setMessage(\"请按规定输入\");\r\n\t\t\t\t\tDialog dialog=builder.create();\r\n\t\t\t\t\tdialog.show();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == REQUEST_CODE) {\n if (resultCode == RESULT_CANCELED) {\n Toast.makeText(this, \"Пользователь вышел из SecondActivity\", Toast.LENGTH_SHORT).show();\n } else if (resultCode == RESULT_OK) {\n\n // gets chosen menu and put it to textView\n if (data != null) {\n String text = data.getStringExtra(\"result\");\n if (text != null) {\n TextView tv = findViewById(R.id.order);\n tv.setText(text);\n }\n }\n }\n }\n // gets date that was chosen by user\n if (requestCode == REQUEST_CODE_TIME) {\n if (resultCode == RESULT_OK) {\n if (data != null) {\n String text = data.getStringExtra(\"result\");\n if (text != null) {\n TextView tv = findViewById(R.id.chosenTime);\n tv.setText(text);\n }\n }\n }\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tif (requestCode == 1 && resultCode == RESULT_OK) {\n\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.putExtra(\"type\", type);\n intent.putExtra(\"name\", edit_name.getText().toString());\n intent.putExtra(\"day\", edit_day.getText().toString());\n intent.putExtra(\"money\", edit_money.getText().toString());\n intent.putExtra(\"reason\", reason);\n intent.putExtra(\"position\",position);\n intent.putExtra(\"Yes_or_No\",\"Yes\");\n setResult(RESULT_OK, intent);\n\n finish();\n }", "@Override\r\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif (result != null && (Boolean) result) {\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putString(MainActivity.TAG, \"1000\");\r\n\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\tintent.setAction(ReciverContents.PaySuccess);\r\n\t\t\t\tactivcty.sendBroadcast(intent);\r\n\t\t\t}\r\n\r\n\t\t}", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode==RESULT_OK&&requestCode==ACTIVITY_DOS){\n\n String nom=data.getExtras().getString(\"nombreIntent\");\n String loc=data.getExtras().getString(\"localidadIntent\");\n String pro=data.getExtras().getString(\"provinciaIntent\");\n boolean bueno = data.getExtras().getBoolean(\"eleccionIntent\");\n if(bueno==true) {\n notificationExtendida(nom, \"De \" + loc + \", (\"+pro+\")\",nom,loc,pro,1);\n }else{\n msg1.setText(nom);\n msg2.setText(loc);\n msg3.setText(pro);\n }\n }\n else{\n Toast.makeText(getApplicationContext(),\"ERROR EN LA APLICACION\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onActivityResult (int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode)\n {\n case Values.REQ_ACT_2:\n {\n // si el resultado que viene del activity2 es OK\n if (resultCode == RESULT_OK)\n {\n // ponemos el texto que viene en el intent del activity2 en el edit text del activity1\n tvHello.setText(data.getStringExtra(Values.CLAVE_INTENT));\n\n // GUARDAR DATOS\n editor = sharedPref.edit();\n String valor = data.getStringExtra(Values.CLAVE_INTENT);\n editor.putString(getString(R.string.clave), valor);\n editor.apply();\n }\n break;\n }\n\n }\n\n\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\ttry\n\t\t{\n\t\t\tif ( requestCode == Constants.REQUEST_CODE_COMMON &&\n\t\t\t\t\tresultCode == RESULT_OK )\n\t\t\t{\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t\t\n\t\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t}\n\t\tcatch( Exception ex )\n\t\t{\n\t\t\twriteLog( ex.getMessage());\n\t\t}\n\t}", "@Override\r\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\r\n if (resultCode == Activity.RESULT_OK) {\r\n switch (requestCode) {\r\n\r\n case GO_LOGIN:\r\n initPersonalInfo();\r\n logout.setText(\"退出登录\");\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }", "@Override\n public void onClick(View view) {\n isFromResultActivity=false;\n finish();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 1) {\n if (resultCode == Activity.RESULT_OK && currentSelection == 4 && data.getBooleanExtra(\"hovno\", false)) {\n new LoadFetchDbFavs(getApplicationContext(), new LoadFetchDbFavsCompleteListener()).execute();\n }\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (requestCode == REQUEST_CODE) {\n\t\t\tif (null != data) {\n\t\t\t\tString n = data.getStringExtra(\"result_nick\");\n\t\t\t\tString re = data.getStringExtra(\"result_name\");\n\t\t\t\t// String se = data.getStringExtra(\"result_sex\");\n\t\t\t\tString s = data.getStringExtra(\"result_sign\");\n\t\t\t\tString t = data.getStringExtra(\"result_tel\");\n\t\t\t\tString q = data.getStringExtra(\"result_qq\");\n\t\t\t\tString e = data.getStringExtra(\"result_email\");\n\t\t\t\tString l = data.getStringExtra(\"result_level\");\n\t\t\t\tnick.setText(n);\n\t\t\t\tname.setText(re);\n\t\t\t\t// sex.setText(se);\n\t\t\t\ttel.setText(t);\n\t\t\t\tqq.setText(q);\n\t\t\t\temail.setText(e);\n\t\t\t\tlevel.setText(l);\n\t\t\t}\n\t\t}\n\t}", "public void on_code_read(String result){\n Intent intent = new Intent(ScanActivity.this, TargetActivity.class);\n intent.putExtra(\"result\", result);\n startActivity(intent);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n if (locationMangaer.isProviderEnabled(LocationManager.GPS_PROVIDER))\n {\n Intent IntEmergencia = new Intent(MainActivity.this, MapActivity_Pedido.class);\n startActivity(IntEmergencia);\n MainActivity.this.finish();\n }\n\n }", "@Override\n public void onClick(View view) {\n startActivityForResult(new Intent(getContext(),RegistrarNotas.class),REGISTER_FORM_REQUEST);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Main2Activity.this, EditPeliculesActivity.class);\n intent.putExtra(\"requestCode\", Constants.INTENT_CODE_PELICULA_NOVA);\n startActivityForResult(intent,Constants.INTENT_CODE_PELICULA_NOVA);\n }", "@Override\n public void onSuccess(int arg0, Header[] arg1, byte[] arg2) {\n CustomDialog.closeProgressDialog();\n JSONObject jsonObject;\n try {\n postState = true;\n jsonObject = new JSONObject(new String(arg2));\n String code = (String) jsonObject.get(\"code\");\n String str = (String) jsonObject.get(\"retinfo\");\n if (Constant.RESULT_CODE.equals(code)) {\n CustomToast.showShortToast(mContext, str);\n Intent i = new Intent();\n i.putExtra(\"flage\", true);\n setResult(2016, i);\n CrmVisitorSignAddInfoActivity.this.finish();\n } else {\n CustomToast.showShortToast(mContext, str);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\n protected void responseAction(){\n global.token = ((first_screen)parent).token;\n global.name = ((first_screen)parent).full_name;\n // intent.putExtra(\"token\", global.tokenList);\n //intent.putExtra(\"userId\", ((first_screen)parent).userId);\n System.out.println(\"firebase:\"+ FirebaseInstanceId.getInstance().getToken());\n //intent.putExtra(\"tokenStr\", ((first_screen)parent).tokenStr);\n System.out.println(\"got response from server: new user entered\");\n System.out.println(\"Refresh ID:\"+FirebaseInstanceId.getInstance().getId());\n int responseCode = this.parent.getCode(jsonResponse);\n System.out.println(\"got response code:\"+this.parent.getCode(jsonResponse));\n if(responseCode<=2) {\n\n //make sure aval is in the stack of pages\n //thus do startActivity twice\n Intent intent = new Intent(this.parent,availability_page.class);\n parent.startActivityForResult(intent, 7);\n }\n\n if(responseCode==2){\n Intent intent = new Intent(this.parent,homepage.class);\n parent.startActivityForResult(intent, 7);\n }\n else if(responseCode<1){\n parent.getPopup(parent.getMsg(jsonResponse));\n }\n // this.parent.finish();\n //this.parent.switchIntentOnResponse(responseCode,parent.getMsg(jsonResponse),intent,true);\n\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Intent returnIntent = new Intent();\n returnIntent.putParcelableArrayListExtra(\"palautettu_opeteltavat\", opeteltavatsanat);\n returnIntent.putExtra(\"jatketaanko\",false);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent resultIntent = new Intent();\n\t\t\t\tsetResult(Activity.RESULT_OK, resultIntent);\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\tpublic void finish() {\n\t\t\n\t\tIntent i=new Intent();\n\t\tBundle b=new Bundle();\n\t\tb.putString(\"Button\", ReturnString);\n\t\ti.putExtras(b);\n\t\t\n\t\tsetResult(RESULT_OK, i);\n\t\tsuper.finish();\n\t}", "@Override\r\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tIntent intent=new Intent(YanshoudanListActivity.this,CaptureActivity.class);\r\n\t\t\t\t\tstartActivityForResult(intent, QUERYACTIVITYCODE);\r\n\t\t\t\t}", "@Override\n protected void onPostExecute(String respuesta) {\n progressDialog.dismiss();\n Toast.makeText(context, respuesta, Toast.LENGTH_LONG).show();\n Intent intent = new Intent(MainActivity.this, VerResultados.class);\n\n intent.putExtra(\"RespuestaDelServer\", respuesta);\n startActivity(intent);\n\n\n }", "@Override\r\n\tpublic void finish() {\n\t\tIntent it = new Intent();\r\n\t\tit.putExtra(\"ROOM_ID\", roomID);\r\n\t\tit.putExtra(\"NAME_DEVICE\", nameDevice);\r\n\t\tit.putExtra(\"TYPE_DEVICE\", typeDevice);\r\n\t\tit.putExtra(\"PORT_DEVICE\", portDevice);\r\n\t\tit.putExtra(\"STATUS_DEVICE\", statusDevice);\r\n\t\tsetResult(RESULT_OK, it);\r\n\t\tsuper.finish();\r\n\t}", "@Override\r\n\tpublic void finish() {\n\t\tIntent I = new Intent();\r\n\t\tI.putExtra(\"songs_path\", sour);\r\n\t\tI.putExtra(\"songs_index\", index);\r\n\t\tI.putExtra(\"path_detail\", p);\r\n\t\tI.putExtra(\"name_song\", name_song);\r\n\t\tI.putExtra(\"length\", ind);\r\n\t\t//Toast.makeText(this, sour, 1000).show();\r\n\t\tsetResult(RESULT_OK,I);\r\n\t\tsuper.finish();\r\n\t}", "@Override\n\t\t\t public void resultLoaded(int err, String reason, String result) {\n\t\t\t \n\t\t\t\t dialog.cancel();\n\t\t\t\t \n\t\t\t\t if (err == 0) {//成功获取数据的情况\n\t\t\t\t\t \n\t\t\t\t\t try {\n\t\t\t\t\t\t \n\t\t\t\t\tJSONObject resultObject=new JSONObject(result);\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t if(resultObject.isNull(\"result\")){//判断车次是否存在\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tToast.makeText(getActivity(), \"航班不存在...\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t //成功获取到数据,在此处仅专递数据,并不对数据进行处理\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\t\t\t\tbundle.putString(\"result\", result);//将JSON数据直接传递过去\n\t\t\t\t\t\t\t\tbundle.putString(\"date\", flightDataShow.getText().toString().trim());//将日期传递过去\n\t\t\t\t\t\t\t\tIntent intent=new Intent(getActivity(),FlightResultActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"FlightBundle\", bundle);\n\t\t\t\t\t\t\t\t startActivity(intent);\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} catch (JSONException 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\t\t \n\t\t\t\t\t} else {//非成功获取数据\n\t\t\t\t\t\t\n\t\t\t\t\t\t Toast.makeText(getActivity(), \"数据获取失败...\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t \n\t\t\t }", "protected void onPostExecute(Integer resultado) {\n pd.dismiss();\n if (respuestaWS != null){\n \tif (respuestaWS.isResultado()){\n \t\tIntent intent = new Intent(Evento.this, Mapa.class);\n \t\tstartActivity(intent);\n \t}else{\n \t\tToast.makeText(getBaseContext(), respuestaWS.getMensaje(), Toast.LENGTH_SHORT).show();\n \t}\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\ttry {\n\t\t\t\n\t\t\tswitch(requestCode){\n\t\t\tcase(222):{\n\t\t\t\tif(resultCode==Activity.RESULT_OK){\n\t\t\t\t\tString selectedContact=data.getDataString();\n\t\t\t\t\ttvSecondActivity.setText(selectedContact.toString());\n\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW,Uri.parse(selectedContact));\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\ttvSecondActivity.setText(\"Selection CANCELLED\"+requestCode+\"\"+resultCode);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tToast.makeText(getBaseContext(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (result != null) {\n //if qrcode has nothing in it\n if (result.getContents() == null) {\n Toast.makeText(this, \"Result Not Found\", Toast.LENGTH_LONG).show();\n } else {\n //if qr contains data\n try {\n //converting the data to json\n JSONObject obj = new JSONObject(result.getContents());\n //setting values to textviews\n textViewName.setText(obj.getString(\"name\"));\n textViewAddress.setText(obj.getString(\"address\"));\n } catch (JSONException e) {\n e.printStackTrace();\n //if control comes here\n //that means the encoded format not matches\n //in this case you can display whatever data is available on the qrcode\n //to a toast\n Toast.makeText(this, result.getContents(), Toast.LENGTH_LONG).show();\n }\n }\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n\n\n Intent intent = new Intent(GuessTheImage.this, NamingFingers.class);\n // Bundle bundle = new Bundle();\n// bundle.putInt(\"ImageScore\", score);\n // bundle.putParcelable(\"result\", result);\n // intent.putExtras(bundle);\n if(result != null) {\n result.setNamingScore(score);\n intent.putExtra(\"result\", result);\n }\n startActivity(intent);\n\n //result.setNamingScore(score);\n\n // intent1.putExtra(\"result\",result );\n// Result tempResult = new Result();\n// tempResult.setNamingScore(score);\n//\n\n// result.setCommandsScore(1);\n// result.setComprehensionScore(1);\n// Patient patient = new Patient();\n// result.setPatient(patient);\n// result.getPatient().setFirstName(\"Brian\");\n\n // intent.putExtra(\"result\", result);\n // startActivity(intent);\n\n }", "@Override public void onActivityResult(int req, int res, Intent data) {\n switch (req) {\n case REQUEST_SELECT_CONTACT:\n if (res == RESULT_OK) {\n mContactId = data.getIntExtra(Contact.ID, Contact.INVALID_ID);\n }\n // Give up sharing the send_message if the user didn't choose a contact.\n if (mContactId == Contact.INVALID_ID) {\n finish();\n return;\n }\n prepareUI();\n break;\n default:\n super.onActivityResult(req, res, data);\n }\n }", "protected void onPostExecute(Object objResult) {\n \t\n // check to make sure we're dealing with a string\n if(objResult != null && objResult instanceof String) { \n String result = (String) objResult;\n if(result.contains(\"true\")) {\n \tstartActivity(new Intent(register.this, LBDCActivity.class));\n }\n else {\n \t\n }\n }\n Toast.makeText(register.this, \"Register successful!\", Toast.LENGTH_SHORT).show();\n dialog.dismiss();\n \n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif(requestCode== check && resultCode== RESULT_OK){\r\n\t\t\tArrayList<String> results = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);\r\n\t\t\tListView_Result.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,results));\r\n\r\n\t\t\t\r\n\t\t}\r\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t\r\n\t}" ]
[ "0.737012", "0.718286", "0.71740764", "0.7143285", "0.7118548", "0.7087971", "0.700313", "0.69948584", "0.69663805", "0.6953053", "0.69526136", "0.69510007", "0.6945234", "0.69275254", "0.692377", "0.6908998", "0.6908998", "0.68996567", "0.6890292", "0.6876878", "0.6858142", "0.6851392", "0.6837787", "0.6831649", "0.68194395", "0.6788945", "0.6788801", "0.67867297", "0.6781405", "0.6780932", "0.6773537", "0.67434496", "0.6737235", "0.6694546", "0.6676468", "0.66720116", "0.6666795", "0.666539", "0.6653565", "0.66528386", "0.6651978", "0.6649824", "0.66356283", "0.6632208", "0.6631638", "0.6623631", "0.6615841", "0.660839", "0.660802", "0.6606624", "0.66034234", "0.6584625", "0.6583352", "0.6573763", "0.65687126", "0.656441", "0.65631634", "0.6556598", "0.65521795", "0.65466374", "0.6543326", "0.6540605", "0.6524629", "0.6520643", "0.652063", "0.65185726", "0.65179545", "0.6501929", "0.64996994", "0.6495074", "0.6495064", "0.6488198", "0.6484644", "0.6484008", "0.6478552", "0.6470695", "0.6469997", "0.6469587", "0.6469549", "0.64645606", "0.64642024", "0.64616084", "0.6458323", "0.64549845", "0.64469165", "0.6446765", "0.6445889", "0.6438562", "0.6432643", "0.64295506", "0.64272547", "0.64232016", "0.6420984", "0.6416113", "0.6415975", "0.6412143", "0.6405791", "0.64042413", "0.6398229", "0.6396639", "0.6385757" ]
0.0
-1
Check that the index is within range.
public ShardLinkDetails getDetails(int index) { if (index > count) { throw new ArrayIndexOutOfBoundsException(index); } return detailsArray[index]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkRange(final int index) {\n if ((index > size) || (index < 0)) {\n return false;\n }\n return true;\n }", "public boolean rangeCheck(int index) {\n\t\tif (index >= 0 && index <= 7) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean checkIndexBounds(int idx) {\n return (idx >= 0) && (idx <= this.length);\n }", "public void assertIndexInRange(int index) {\n assert index >= 0;\n }", "private void checkRange(int index) {\n\t\tif (index < 0 || index >= array.length()) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Index \" + index + \" is out of bouds [0, \" + array.length() + \"]\");\n\t\t}\n\t}", "private boolean rangeCheck(int i){\n return i >= 0 && i < size;\n }", "private void checkRange(int index) {\n if ((index < 0 || index >= curSize))\n throw new IndexOutOfBoundsException(\"Index: \" + index + \" is out of bounds. Size = \" + size());\n }", "private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {\n\t\tif (fromIndex > toIndex)\n\t\t\tthrow new IllegalArgumentException(\"fromIndex(\" + fromIndex +\n\t\t\t\t\t\") > toIndex(\" + toIndex+\")\");\n\t\tif (fromIndex < 0)\n\t\t\tthrow new ArrayIndexOutOfBoundsException(fromIndex);\n\t\tif (toIndex > arrayLen)\n\t\t\tthrow new ArrayIndexOutOfBoundsException(toIndex);\n\t}", "public boolean isIndexInMyRange(String index) {\n\t\tif (this.getFromIndex().compareTo(this.getToIndex()) > 0) {\n\t\t\tif (index.compareTo(this.getFromIndex()) >= 0)\n\t\t\t\treturn true;\n\t\t\telse {\n\t\t\t\treturn (index.compareTo(this.getToIndex()) <= 0);\n\t\t\t}\n\t\t}\n\t\t// for the other nodes\n\t\telse\n\t\t\treturn (index.compareTo(this.getFromIndex()) >= 0 && index\n\t\t\t\t\t.compareTo(this.getToIndex()) <= 0);\n\n\t}", "private boolean checkRangeAddress(int address) {\r\n return (address >= startAddress && address < endAddress);\r\n }", "private void rangeCheck(int index) {\n if (index >= this.values.length) {\n throw new ArrayIndexOutOfBoundsException(\"Index of out bounds!\");\n }\n }", "private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}", "private boolean isInRange(int a, int b, int c) {\n return c >= a ;\n }", "private void RangeCheck(int index) {\r\n if (index >= size || index < 0)\r\n throw new IndexOutOfBoundsException(\"Index: \"+index+\", Size: \"+size);\r\n }", "private boolean checkRange(int rowIndex, int columnIndex) {\n return rowIndex >= 0 && rowIndex < matrix.length\n && columnIndex >= 0 && columnIndex < matrix[rowIndex].length;\n\n }", "public boolean indexCheck(int index) {\n return (index >= 0 && index <= size) ? true : false;\n }", "boolean isInInterval(int baseIndex);", "private boolean isInBound(int current, int bound){\n return (current >= 0 && current < bound);\n }", "private boolean validateIndex(int index)\n {\n return index >= 0;\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n Range range0 = Range.of((-2147483648L));\n Range range1 = Range.of(1845L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n assertFalse(boolean0);\n \n range0.getBegin();\n assertTrue(range0.isEmpty());\n }", "private static void checkFromToBounds(int paramInt1, int paramInt2, int paramInt3) {\n/* 386 */ if (paramInt2 > paramInt3) {\n/* 387 */ throw new ArrayIndexOutOfBoundsException(\"origin(\" + paramInt2 + \") > fence(\" + paramInt3 + \")\");\n/* */ }\n/* */ \n/* 390 */ if (paramInt2 < 0) {\n/* 391 */ throw new ArrayIndexOutOfBoundsException(paramInt2);\n/* */ }\n/* 393 */ if (paramInt3 > paramInt1) {\n/* 394 */ throw new ArrayIndexOutOfBoundsException(paramInt3);\n/* */ }\n/* */ }", "public boolean validIndex(int idx) {\n return idx >= 0 && idx < len;\n }", "public boolean inRange(Number n) {\n return n.compareTo(min) >= 0 && n.compareTo(max) <= 0;\n }", "public boolean checkValidIndex(int index) {\n return index >= 0 && index <= lines.getList().size();\n }", "protected boolean inValidRange(long windowIndex) {\n return windowIndex >= _oldestWindowIndex && windowIndex <= currentWindowIndex() - 1;\n }", "public void rangeCheck(int value) throws RangeException {\n\tSystem.out.println(\"In rangeCheck, value: \" + value);\n\tif (value < min || value > max) {\n\t throw new RangeException(min, max, value);\n\t}\n }", "private boolean outOfBounds(int nidx1){\n\t\treturn (nidx1 < 0 || nidx1 >= numofvert);\n\t}", "public static boolean inRange (Position defPos, Position atkPos, int range) {\n\t\tint defX = defPos.getX();\n\t\tint defY = defPos.getY();\n\t\t\n\t\tint atkX = atkPos.getX();\n\t\tint atkY = atkPos.getY();\n\t\t\n\t\tif (defX -range <= atkX &&\n\t\t\t\tdefX + range >= atkX)\n\t\t{\n\t\t\tif (defY -range <= atkY &&\n\t\t\t\t\tdefY+range >= atkY)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean cell_in_bounds(int row, int col) {\n return row >= 0\n && row < rowsCount\n && col >= 0\n && col < colsCount;\n }", "public boolean inRange(int row, int col) {\n\t /*if the given row and col is less than 0 or greater than the maximum number, return false*/\n\t if(row < 0 || row >= this.row || col < 0 || col >= this.col) {\n\t\t return false;\n\t }\n\t /*return true if it's valid*/\n\t else {\n\t\t return true;\n\t }\n }", "private boolean isInRange(int c) {\n switch (border) {\n case between:\n return min <= c && c <= max;\n case min:\n return min <= c;\n case max:\n return c <= max;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + border);\n }\n }", "private int checkRange(int number,int range){\n return (number+range)%range;\n }", "public static boolean checkRange(TechnicalData data0, TechnicalData data1, int index0, int index1) {\n\t\tif (data0.timeStamp(index0).equals(data1.timeStamp(index1))) return true;\n\t\treturn false;\n\t}", "public boolean inRange(){\n //System.out.println(\"inRange\");\n return Math.abs(GameView.instance.player.position.x - creationPoint.x) < GameView.instance.cameraSize * attackRange;\n }", "private boolean inBounds(int row, int col){\n if (row > -1 && row < 120 && col > -1 && col < 160)\n return true;\n return false;\n }", "private boolean inBounds(int row, int col)\n {\n return ((row >= 0) && (row < NUM_ROWS) &&\n (col >= 0) && (col < NUM_COLS)); \n }", "private int rangeCheck(int rowIndex) {\n\t\tif (rowIndex < 0) {\n\t\t\treturn 0;\n\t\t}\n\t\t// FIXME What about undefined container size ??\n\t\tint containerSize = container.size();\n\t\tif (rowIndex >= containerSize) {\n\t\t\treturn containerSize;\n\t\t}\n\t\treturn rowIndex;\n\t}", "private boolean outOfRange(double i, double e, int threshold) {\n\n\t\tdouble lowerBound = e / (double) threshold;\n\t\tdouble upperBound = e * (double) threshold;\n\n\t\treturn ((i < lowerBound) || (i > upperBound));\n\t}", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "private void checkRange(int i) throws IndexOutOfBoundsException {\n if (i < 0 || i >= size) {\n throw new IndexOutOfBoundsException();\n }\n }", "@Override\n\tpublic boolean isValidIndex(long index) {\n\t\ttry {\n\t\t\tif (isEmtpy || Long.compareUnsigned(index, maxOffset) > 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn memory.contains(getAddress(index));\n\t\t}\n\t\tcatch (IOException | AddressOutOfBoundsException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean allInRange(int start, int end) {\n \t\tfor (int i=0; i<data.length; i++) {\n \t\t\tint a=data[i];\n \t\t\tif ((a<start)||(a>=end)) return false;\n \t\t}\n \t\treturn true;\n \t}", "boolean validateOffset() {\n\t\t\tint num = entriesByIndex.size() + 1; // assuming 0, plus 1-N)\n\t\t\tfor (int index : entriesByIndex.keySet()) {\n\t\t\t\tif (index > num || index < 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public static boolean isInRange(int i, int topBoundary) {\n return 0 <= i && i < topBoundary;\n }", "private void check_range(int offset, int byte_count) throws BadRangeException {\n int end_block = get_end_block(offset, byte_count);\n if (offset < 0 ||\n byte_count < 0 ||\n (final_block != -1 && final_block == end_block &&\n (offset+byte_count) % Constants.FILE_BLOCK_SIZE > content.get(end_block).length()) ||\n (final_block != -1 && end_block > final_block))\n {\n throw new BadRangeException();\n }\n }", "private static final boolean isArrayValueAtIndexInsideOrInsideAdjacent(DataSet aDataSet, int i, int pointCount, double aMin, double aMax)\n {\n // If val at index in range, return true\n double val = aDataSet.getX(i);\n if (val >= aMin && val <= aMax)\n return true;\n\n // If val at next index in range, return true\n if (i+1 < pointCount)\n {\n double nextVal = aDataSet.getX(i + 1);\n if (val < aMin && nextVal >= aMin || val > aMax && nextVal <= aMax)\n return true;\n }\n\n // If val at previous index in range, return true\n if (i > 0)\n {\n double prevVal = aDataSet.getX(i - 1);\n if ( val < aMin && prevVal >= aMin || val > aMax && prevVal <= aMax)\n return true;\n }\n\n // Return false since nothing in range\n return false;\n }", "public boolean isInRange(int number){\n return (number >= min && number <= max);\n }", "static boolean checkbetween(int n) {\n if(n>9 && n<101){\n return true;\n }\n else {\n return false;\n }\n \n }", "private boolean isRangeValid() {\n\n\t\tboolean valid = true;\n\n\t\tif (getRange() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tLong.parseLong(getRange());\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\tvalid = valid || getRange().compareToIgnoreCase(CCLConstants.INDIRECT_RANGE_ALL) == 0;\n\n\t\treturn valid;\n\t}", "private boolean isValidIndex(final int theY, final int theX) {\n return 0 <= theY && theY < myGrid.length\n && 0 <= theX && theX < myGrid[theY].length;\n }", "private boolean arrayBounds (int index, int max) {\n\t\treturn (index >= 0 && index < max );\n\t}", "public int isInBounds(T a);", "public boolean containsRange(Range range) {\n/* 317 */ if (range == null) {\n/* 318 */ return false;\n/* */ }\n/* 320 */ return (containsLong(range.getMinimumLong()) && containsLong(range.getMaximumLong()));\n/* */ }", "private boolean validIndex(int index)\n {\n if(index >= 0 && index < songs.size())\n return true;\n else\n {\n System.out.println(\"not valid number as index\");\n return false;\n }\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n long long0 = 785L;\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 9223372036854775806L, (-128L));\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -129 would make range [9223372036854775805 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }", "protected final boolean rangeTestFailed(int value) {\n\tboolean test1 =\n\t (reqminSet && (reqminClosed? (value < reqmin): (value <= reqmin)))\n\t || (minSet && (minClosed? (value < min): (value <= min)));\n\tboolean test2 =\n\t (reqmaxSet && (reqmaxClosed? (value > reqmax): (value >= reqmax)))\n\t || (maxSet && (maxClosed? (value > max): (value >= max)));\n\treturn (test1 || test2);\n }", "private boolean isValid(int index) {\r\n return index >= 0 && index < dimension;\r\n }", "private boolean outOfBounds(long n) {\n return n < 0 || n >= getSize();\n }", "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}", "private void checkIndex(int pos, int max) {\n\t\tif (pos < 0 || pos >= max) {\n\t\t\tthrow new IndexOutOfBoundsException(\"The index must greater than 0 and less than \" + max + \", but was \" + pos);\n\t\t}\n\t}", "private boolean inRange(double num, double low, double high) {\n if (num >= low && num <= high)\n return true;\n\n return false;\n }", "void checkRange(Long value) throws TdtTranslationException {\r\n\t\tif (hasRange) {\r\n\t\t\tif ((value.compareTo(minimum) < 0)\r\n\t\t\t\t\t|| (value.compareTo(maximum) > 0)) {\r\n\t\t\t\tthrow new TdtTranslationException(\"Value {\" + value\r\n\t\t\t\t\t\t+ \"} out of range [{\" + minimum + \"},{\" + maximum\r\n\t\t\t\t\t\t+ \"}] in field \" + getId());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean isWithinStackCapacity(int index)\n {\n // if outside of bound of array, return false\n if(index < 0 || index >= values.length)\n {\n return false;\n }\n\n // if index wraps around adjust it.\n int contiguousIndex = index < start ? index + values.length : index;\n int end = start + capacity;\n return start <= contiguousIndex && contiguousIndex < end; \n }", "public boolean isInsideLimits(int value) {\n return value > lowerLimit && value < upperLimit;\n }", "boolean inViewport(final int index) {\n resetViewport(start);\n return index >= start && index <= end;\n }", "@Override\n public boolean isInBounds(int row, int col) {\n return row >= 0 && row < grid.length && col >= 0 && col < grid[0].length;\n }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test047() throws Throwable {\n Range range0 = Range.ofLength(0L);\n String string0 = range0.toString();\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.isSubRangeOf(range0);\n assertTrue(boolean0);\n }", "public static boolean checkRange(int x) {\n\n \n if (x >= 1 && x <= 9) { //check if input is between 1 and 9, inclusive\n return (true);\n }\n else {\n System.out.print(\"You did not enter an int in [1,9]; try again: \");\n return (false);\n \n }\n\n \n\n }", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.intersects(range1);\n assertFalse(boolean0);\n assertFalse(range1.isEmpty());\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n }", "private void checkBounds(final int row, final int col) {\n if (row <= 0 || row > size) {\n throw new IndexOutOfBoundsException(\n \"row index \" + row + \" out of bounds\"\n );\n }\n if (col <= 0 || col > size) {\n throw new IndexOutOfBoundsException(\n \"col index \" + col + \" out of bounds\"\n );\n }\n }", "public boolean isOutsideLimits(int value) {\n return value < lowerLimit || value > upperLimit;\n }", "private boolean isValid() {\n // If start is greater or equal to end then it's invalid\n return !(start.compareTo(end) >= 0);\n }", "public boolean outOfRange(){\r\n\t\t\treturn (shape.x <=0 ? true : false);\r\n\t\t}", "private boolean isOutOfBounds(int index) {\n return index < 0 || index >= this.size();\n }", "@Override\n public boolean isRange() {\n return false;\n }", "private int inRange(int x, int y) {\n\t\tif (x > 3 && y > 3 && x < max_x - 3 && y < max_y - 3) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "private boolean intervalContains(double target, int coordIdx) {\n double midVal1 = orgGridAxis.getCoordEdge1(coordIdx);\n double midVal2 = orgGridAxis.getCoordEdge2(coordIdx);\n boolean ascending = midVal1 < midVal2;\n return intervalContains(target, coordIdx, ascending, true);\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n Range range0 = Range.of((-2147483660L));\n assertFalse(range0.isEmpty());\n }", "boolean hasDestRange();", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n Range range0 = Range.of((-2147483648L));\n boolean boolean0 = range0.equals(range0);\n assertTrue(boolean0);\n assertFalse(range0.isEmpty());\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n // Undeclared exception!\n try { \n Range.of(3253L, 1198L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "public boolean isOutOfBound(int actionVal, int row, int col)\n\t\t{\n\t\t\tif( (actionVal == UP && row == 0) || ( actionVal == LEFT && col == 0) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if( (actionVal == DOWN && row == utilities.length-1) || (actionVal == RIGHT && col == utilities[0].length-1) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\t\n\t\t}", "private boolean isElementIndex(final long index) {\r\n\t\treturn index >= 0 && index < size;\r\n\t}", "boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Override\n\tpublic boolean checkBoundary(float x) {\n\t\tif (!(x >= MINRANGE && x <= MAXRANGE)) {\n\t\t\treturn false;\n\t\t}\n\t\t// if in the range [-512.03, 511.97]\n\t\treturn true;\n\t}", "private static boolean checkOccurrenceRange(int min1, int max1, int min2, int max2) {\n/* 1159 */ if (min1 >= min2 && (max2 == -1 || (max1 != -1 && max1 <= max2)))\n/* */ {\n/* */ \n/* 1162 */ return true;\n/* */ }\n/* 1164 */ return false;\n/* */ }", "private boolean indexIsValid(int index) {\n\t\tif (index > -1 && index < text.length())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@SuppressWarnings(\"unused\")\n public static boolean withinRange(float value, float startValue, float endValue) {\n return value == ScWidget.valueRangeLimit(value, startValue, endValue);\n }", "public abstract void selectIndexRange(int min, int max);", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n boolean boolean0 = range0.equals(\"number of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean0);\n \n Range range1 = Range.of((-2147483648L));\n List<Range> list0 = range1.complement(range0);\n assertEquals(0, list0.size());\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "private boolean isPositionIndex(final long index) {\r\n\t\treturn index >= 0 && index <= size;\r\n\t}", "public boolean overlapsRange(Range range) {\n/* 334 */ if (range == null) {\n/* 335 */ return false;\n/* */ }\n/* 337 */ return (range.containsLong(this.min) || range.containsLong(this.max) || containsLong(range.getMinimumLong()));\n/* */ }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n Range range0 = Range.of(4294967295L);\n Object object0 = new Object();\n range0.intersects(range0);\n // Undeclared exception!\n try { \n range0.isSubRangeOf((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Range range0 = Range.of(0L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem1);\n range0.iterator();\n Range.of((-1233L), 0L);\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem1, 0L, (-1233L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public boolean esValidoElIndice(int indice){\n return (indice > 0 && indice< tareas.size());\n }" ]
[ "0.74812347", "0.73574555", "0.7315617", "0.696245", "0.6954741", "0.69151044", "0.68962705", "0.6849372", "0.6820916", "0.680079", "0.6789501", "0.6779302", "0.67538184", "0.67291033", "0.66507286", "0.6613575", "0.6545564", "0.65190053", "0.6492721", "0.6490783", "0.6473894", "0.6443126", "0.64351714", "0.6368244", "0.63644785", "0.63618314", "0.6359068", "0.6350227", "0.63369656", "0.63361037", "0.63328105", "0.6287767", "0.6272914", "0.62725383", "0.62660253", "0.62657505", "0.6264187", "0.6259815", "0.6259012", "0.6255332", "0.6252801", "0.62470424", "0.62218004", "0.6208635", "0.6203649", "0.6196802", "0.6192769", "0.61901295", "0.6181197", "0.61731005", "0.61564195", "0.615583", "0.6155593", "0.6154777", "0.61251855", "0.61194175", "0.61005396", "0.60771024", "0.6063995", "0.6058526", "0.6056058", "0.6052574", "0.60523826", "0.60497063", "0.60351765", "0.60347456", "0.6028939", "0.6021086", "0.6014302", "0.6013058", "0.6008666", "0.5995523", "0.5988667", "0.59885347", "0.59790504", "0.5978031", "0.5977054", "0.5966537", "0.59651107", "0.59646463", "0.59641063", "0.59639645", "0.5960233", "0.5956843", "0.5948272", "0.5947", "0.59413743", "0.5929169", "0.5926307", "0.5920146", "0.59161633", "0.5915374", "0.59131867", "0.5912845", "0.59018356", "0.5900245", "0.5887801", "0.5885664", "0.5879646", "0.58789575", "0.5876942" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onResume() { super.onResume(); System.out.println("onResume..."); }
{ "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 protected void onStart() { super.onStart(); System.out.println("onStart..."); }
{ "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 protected void onStop() { super.onStop(); System.out.println("onStop..."); }
{ "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